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
Extractor no longer extracts the location if i18n is without parameters #38705
Milestone
Comments
|
I'll investigate this today. |
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Sep 4, 2020
Previously, the location of a translation message, in XLIFF 2, was only rendered if there were also notes for meaning or description. Now the location will be rendered even if the other metadata is not provided. Fixes angular#38705
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Sep 4, 2020
Previously, the location of a translation message, in XLIFF 2, was only rendered if there were also notes for meaning or description. Now the location will be rendered even if the other metadata is not provided. Fixes angular#38705
|
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
First of all, congratuliations for Angular 10.1, It finally complated the I18N features and you now can localize templates and the source code. I wrote an API that enables loading the translations on runtime that you can use to create a single deployment that can serve any number of languages.
Then for the bug I found in 10.1.0.
Is this a regression?
Yes. This used to work in Angular 10.
Description
If you use i18n attribute without any parameter (i.e. meaning or comment) the extractor tool does not extract location.
You can find a repo here.
Use this template
Run XLIFF 2,0 extraction.
ng xi18n --format=xlf2 --output-path src/locale --ivyYou will get the following XLIFF
The first unit is without location note!
Angular Version:
The text was updated successfully, but these errors were encountered: