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 |
|
... came here just to say that Bluesky might also benefit from https://lingui.dev/ref/metro-transformer 🙂 |
|
@vonovak Thanks for getting back to me. The new feature looks really helpful for our translators. I'll take a look and improve this PR. |
|
@auroursa could we do anything to help bluesky to be updated to the latest version of lingui? |
|
Superceded by #9905 - thank you though! |

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}iscurrentTimeand{1}isdurationwithout having to check the source code.The first commit is more like a regular upgrade, with no major changes.
The second commit removed
@lingui/macroaccording to the migration guide and updated all related imports. We can stick to the first commit for now, but since@lingui/macrois 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.