-
Notifications
You must be signed in to change notification settings - Fork 176
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
Problem when ICU messages contains html tags #310
Comments
pull request #311 added |
The `ignoreTag` option was added specifically for this use case. See also: - https://formatjs.io/docs/intl-messageformat/#intlmessageformat-constructor - formatjs/formatjs#1699
The `ignoreTag` option was added specifically for this use case. See also: - https://formatjs.io/docs/intl-messageformat/#intlmessageformat-constructor - formatjs/formatjs#1699
I created a new pull-request that fixes this issue using The escaping that @shtumi proposed in #311 might work too but I believe that using the
See: https://formatjs.io/docs/intl-messageformat/#intlmessageformat-constructor |
The `ignoreTag` option was added specifically for this use case. See also: - https://formatjs.io/docs/intl-messageformat/#intlmessageformat-constructor - formatjs/formatjs#1699
This issue can be closed |
When I have translation id like this:
it doesn't work in js with
because official documentation of intl-messageformat says that tags should be quoted (because if not it assume b is variable.
https://formatjs.io/docs/intl-messageformat/
So it should be like:
But when I try this format in twig:
then I face to error:
An exception has been thrown during the rendering of a template ("Invalid message format (error #65801): msgfmt_create: message formatter creation failed: U_UNMATCHED_BRACES").
The text was updated successfully, but these errors were encountered: