-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Update Lingui to 5.1.1 #7138
base: main
Are you sure you want to change the base?
Update Lingui to 5.1.1 #7138
Conversation
I used @lingui/codemods to run the bulk replacement of imports. Running it based on the first commit should get the same result as my second commit. |
Hey, there is also a new accessibilityLabel: _(msg`Hashtag: #${tag}`),
accessibilityHint: _(msg`Long press to open tag menu for #${tag}`), to this const { t } = useLingui()
//
accessibilityLabel: t`Hashtag: #${tag}`,
accessibilityHint: t`Long press to open tag menu for #${tag}`, |
This might require a decision from the developers. Currently, there is almost no situation where If we need to change |
@timofei-iatsenko Thank you for your patient assistance, I would like to know if it’s possible to still use |
@auroursa it is completely optional, so you can leave it as it was before. |
Considering the issue in #7195, I will wait for support date,time format to be merged before testing the new version of lingui. This will no longer introduce new polyfills and will attempt to resolve #6728 again. |
@auroursa did I understand you correctly that you hope that support date,time format will resolve the issue with Chinese and you will not need the polyfills? |
@timofei-iatsenko I think it seems to be this way, but if I have misunderstood anything, please feel free to let me know. |
@auroursa that PR just adds new features, they are still based on Intl API, so polyfiils are needed. |
Thank you. I will focus this PR on upgrading lingui, and the date format-related issues will be driven forward by reintroducing polyfills. |
nitpick from my side, you probably need to update this documentation https://github.com/bluesky-social/social-app/blob/main/docs/localization.md |
Ping @surfdude29 here, I’m not sure if you’d be interested in improving the localization documentation, but perhaps we could work on it together? Not just the Lingui use case, recently there have been some localization PRs complaining that the documentation is a bit outdated. |
There are some new features here that I'm really interested in, with Print Placeholder Values, this allows us to know exactly what the placeholders are.
Before this,
{0} of {1}
was difficult to translate.After updates, translators can more easily understand
{0}
iscurrentTime
and{1}
isduration
without having to check the source code.The first commit is more like a regular upgrade, with no major changes.
The second commit removed
@lingui/macro
according to the migration guide and updated all related imports. We can stick to the first commit for now, but since@lingui/macro
is deprecated and will be removed in the next major version, we may need to address this later.EDIT: A patch is no longer necessary, as this issue has been resolved in lingui 4.7.1.