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
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.
The text was updated successfully, but these errors were encountered:
jaska45
changed the title
Extractor no longer extract location if i18n is without parameters
Extractor no longer extracts the location if i18n is without parameters
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.
Fixesangular#38705
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.
Fixesangular#38705
#38713)
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#38705
PR Close#38713
馃悶 bug report
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.
馃敩 Minimal Reproduction
You can find a repo here.
Use this template
Run XLIFF 2,0 extraction.
ng xi18n --format=xlf2 --output-path src/locale --ivy
You will get the following XLIFF
The first unit is without location note!
馃實 Your Environment
Angular Version:
The text was updated successfully, but these errors were encountered: