social-app icon indicating copy to clipboard operation
social-app copied to clipboard

Update Lingui to 5.1.1

Open auroursa opened this issue 2 months ago • 12 comments

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.

image

After updates, translators can more easily understand {0} is currentTime and {1} is duration without having to check the source code.

image

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.

auroursa avatar Dec 17 '24 03:12 auroursa