You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After upgrading to v3.6.0 (from v3.2.1), when I run lingui extract it seems to generate an invalid plurals. lingui compile trigger the error:
$ yarn translation:compile
Compiling message catalogs…
/home/armand/workspace/my-project/node_modules/@lingui/cli/api/compile.js:89
throw new Error("Can't parse message. Please check correct syntax: \"".concat(message, "\""));
^
Error: Can't parse message. Please check correct syntax: "{oneAge, plural, key {{oneAge}} zero {<0>0-1 years</0>} one {<1># year</1>} other {<2># years</2>}}"
at compile (/home/armand/workspace/my-project/node_modules/@lingui/cli/api/compile.js:89:11)
at /home/armand/workspace/my-project/node_modules/@lingui/cli/api/compile.js:45:51
at Array.map (<anonymous>)
at createCompiledCatalog (/home/armand/workspace/my-project/node_modules/@lingui/cli/api/compile.js:37:43)
at /home/armand/workspace/my-project/node_modules/@lingui/cli/lingui-compile.js:91:66
at Array.forEach (<anonymous>)
at /home/armand/workspace/my-project/node_modules/@lingui/cli/lingui-compile.js:61:14
at Array.forEach (<anonymous>)
at command (/home/armand/workspace/my-project/node_modules/@lingui/cli/lingui-compile.js:50:18)
at compile (/home/armand/workspace/my-project/node_modules/@lingui/cli/lingui-compile.js:135:12)
To Reproduce
Steps to reproduce the behavior, possibly with minimal code sample, e.g:
Describe the bug
After upgrading to v3.6.0 (from v3.2.1), when I run
lingui extract
it seems to generate an invalid plurals.lingui compile
trigger the error:To Reproduce
Steps to reproduce the behavior, possibly with minimal code sample, e.g:
Running
lingui extract
generate the folowing.po
file:In the previous lingui version it was extracted like this:
Expected behavior
The JSX
key
atrtibute should not be inserted in ICU message.Additional context
Add any other context about the problem here.
lingui --version
: 3.6.0npm list @babel/core
@babel/core@7.13.8.babelrc
) or framework you use (Create React App, Meteor, etc.)The text was updated successfully, but these errors were encountered: