We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From:
import { t } from "@lingui/core/macro"; import { useLingui } from "@lingui/react"; export const Avatar = (props) => { const { i18n } = useLingui(); return ( <div> {t(i18n)`Hello world`} </div> ) }
To:
import { useLingui } from "@lingui/react/macro"; export const Avatar = (props) => { const { t } = useLingui(); return ( <div> {t`Hello world`} </div> ) }
It shouldn't be too hard, if i find some time and you'll agree i could work on it
The text was updated successfully, but these errors were encountered:
Hi @semoal, there is a GritQL-based codemod that already covers this case - https://gist.github.com/AndrewIngram/299a7370ac636478cc9600872d306031
Sorry, something went wrong.
No branches or pull requests
From:
To:
It shouldn't be too hard, if i find some time and you'll agree i could work on it
The text was updated successfully, but these errors were encountered: