-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
area: i18nIssues related to localization and internationalizationIssues related to localization and internationalizationfreq2: mediumregressionIndicates than the issue relates to something that worked in a previous versionIndicates than the issue relates to something that worked in a previous versionstate: has PRtype: bug/fixwindowsIssue related to Microsoft's Windows operating systemIssue related to Microsoft's Windows operating system
Milestone
Description
馃悶 bug report
Is this a regression?
Yes. This used to work in 10.0 and earlier.
Description
Extractor no longer extracts the parameter/expression of the interpolated string into disp attribute
馃敩 Minimal Reproduction
Repo is here.
Write an interpolated string that has any parameter. For example
<p i18n>My name is {{name}}</p>
Then run the extractor
ng xi18n --format=xlf2 --output-path src/locale --ivy
The result XLIFF no longer contain disp attribute of it does not contain the parameter/expression used in the interpolated string
<segment>
<source>My name is <ph id="0" equiv="INTERPOLATION" disp=""\uFFFD0\uFFFD""/></source>
</segment>
This used to be
<segment>
<source>My name is <ph id="0" equiv="INTERPOLATION" disp="{{name}};"/></source>
</segment>
馃實 Your Environment
Angular Version:
Angular CLI: 10.1.0
Node: 12.9.1
OS: win32 x64
Angular: 10.1.0
... animations, cli, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.1001.0
@angular-devkit/build-angular 0.1001.0
@angular-devkit/build-optimizer 0.1001.0
@angular-devkit/build-webpack 0.1001.0
@angular-devkit/core 10.1.0
@angular-devkit/schematics 10.1.0
@ngtools/webpack 10.1.0
@schematics/angular 10.1.0
@schematics/update 0.1001.0
rxjs 6.6.2
typescript 4.0.2
webpack 4.44.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: i18nIssues related to localization and internationalizationIssues related to localization and internationalizationfreq2: mediumregressionIndicates than the issue relates to something that worked in a previous versionIndicates than the issue relates to something that worked in a previous versionstate: has PRtype: bug/fixwindowsIssue related to Microsoft's Windows operating systemIssue related to Microsoft's Windows operating system