Skip to content
New issue

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

V3 --> V4? #37

Closed
hatton opened this issue Dec 28, 2023 · 0 comments
Closed

V3 --> V4? #37

hatton opened this issue Dec 28, 2023 · 0 comments

Comments

@hatton
Copy link

hatton commented Dec 28, 2023

Are there plans for a V3 --> V4 codemod? The major breaking change I see is that the effective meaning of t has changed, so that where it used to just do the translation, now it gives you a hash. If I understand correctly, we need to add const { i18n } = useLingui(); and replace

t`hello`

with

i18n._(msg(`hello`))

(ref). But perhaps that last step is just a regex search replace, and there's no need for a codemod?

@andrii-bodnar andrii-bodnar closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants