-
Notifications
You must be signed in to change notification settings - Fork 393
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
i18n._ function removes unrecognized macros #1278
Labels
Comments
nmoinvaz
changed the title
i18n._ function removes unavailable macros
i18n._ function removes unrecognized macros
Aug 18, 2022
Worse case, it looks like according to PEG, it should be possible using a literal to bypass parsing.
Translates to "code {hello}" |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Fixed, starting from next version i18n._("code '{hello}'") Should work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
i18n._
removes macros that are unrecognized. This prevents programs that also parse macros in strings from handling them after Lingui loads them.To Reproduce
Using the following code:
The string returned is
code
.Expected behavior
It should return
code {hello}
because novalues
object was passed toi18n._
.Alternatives ideas
The text was updated successfully, but these errors were encountered: