-
Notifications
You must be signed in to change notification settings - Fork 378
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
Unicode characters are removed from .po when they are in msgstr #1098
Comments
https://github.com/lingui/js-lingui/pull/1032/files What do you think? |
I m not sure, because my issue is not for char in the key or message extracted by the macro logic, but in po files The issue here is that running the CLI to discover new translation keys corrupt the current dictionary which is kind of worse I guess? |
Macro is the responsible of generating the final translation. |
Ho ok I did not understand that. With that name I supposed it was only the part responsible for extraction from code (babel-macros / Macro). Also the tests from the commit you linked shows a test with extraction key, not value from dictionary. Then yeah it might be linked, worth the shot |
Describe the bug
When using po format and adding some unicode char like
\xA0
inmsgstr
it works at runtime, but running the CLI to extract messages remove all of those charTo Reproduce
Save it, extract again, boom,
\xA0
is goneExpected behavior
Should keep this char
Additional context
Add any other context about the problem here.
lingui --version
3.10.4npm list @babel/core
7.14.6.babelrc
) or framework you use (Create React App, Meteor, etc.)I tried to play with jsesc configuration, all kind... no luck :(
The text was updated successfully, but these errors were encountered: