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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
localize-translate throws 'undefined' error when string contains braces #38569
Comments
Yeah - so the |
How to escape braces so end-users can see them on UI? |
The approach in templates is to use interpolation: something like:
In application code, I think you could do something similar like:
|
I just tried this with the latest versions of Angular and Angular-CLI (
I get a similar error if I use the CLI to do the localization:
This seems like a better error message than the This leads us onto the #38377 issue, which is about making this error message more helpful. |
I checked 10.1.0-rc.0 - the error is more informative now. Thanks |
Great. I am working on improving the error further. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃悶 bug report
Affected Package
The issue is caused by package @angular/localize^10.1.0-next.7Description
In ts code I use i18n:then I extract xlf and translate it:
then I run
localize-translate
and getundefined
error:馃敟 Exception or Error
馃實 Your Environment
Angular Version:
The text was updated successfully, but these errors were encountered: