extract-i18n generates wrong interpolation equiv-text in v11
See original GitHub issue🐞 bug report
Is this a regression?
This was working in Angular v10.2.3.
Description
Angular doesn’t seem to generate the correct interpolation equiv-text
attributes anymore in Angular v11. When running extract-i18n it previously generated for example:
<source>(<x id="INTERPOLATION" equiv-text="{{ start }}"/>–<x id="INTERPOLATION_1" equiv-text="{{ calculatedEnd }}"/> / <x id="INTERPOLATION_2" equiv-text="{{ totalCount }}"/> results)</source>
now it generates:
<source>(<x id="INTERPOLATION" equiv-text="amMap): void { "/>–<x id="INTERPOLATION_1" equiv-text="usually be a pa"/> / <x id="INTERPOLATION_2" equiv-text="ince it doesn't"/> results)</source>
I have no clue where e.g. the equiv-text ince it doesn't
is coming from, that string doesn’t even exist in my app at all.
🌍 Your Environment
Angular Version:
Angular CLI: 11.0.0
Node: 12.16.3
OS: win32 x64
Angular: 11.0.0
... animations, cli, common, compiler, compiler-cli, core
... elements, forms, language-service, localize
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1100.0 (cli-only)
@angular-devkit/build-angular 0.1100.0
@angular-devkit/core 11.0.0 (cli-only)
@angular-devkit/schematics 11.0.0
@schematics/angular 11.0.0
@schematics/update 0.1100.0
ng-packagr 11.0.2
rxjs 6.6.3
typescript 4.0.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:46 (36 by maintainers)
Top Results From Across the Web
angular - Problem extracting equiv-text in XLIFF files with ng ...
When I run ng extract-i18n, in the generated xlf file, the "equiv-text" attribute of INTERPOLATION and ICU tokens is wrong.
Read more >Work with translation files - Angular
The extract-i18n command creates a source language file named messages.xlf in the root directory of your project. For more information about the XML ......
Read more >Localizing your app - Angular
Internationalization (i18n) is the process of designing and preparing your app to be usable in different locales around the world.
Read more >Fixed Problem Reports - Siemens PLM
This fix is in V11. 391174. The problem with an internal error being generated when attempting to change the color of an occurrence...
Read more >Trans Component - react-i18next documentation
How to get the correct translation string? · 1. use React Developer Tools to inspect the <Trans> component instance and look at the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This fix should appear in the next patch release 11.0.6, which should be released this week or next.
The PR and issue were closed because we merged in the fix from it.