Skip to content
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

ng i18n --ivy, incorrect value in "equiv-text" #39164

Closed
1 of 15 tasks
Niklas187 opened this issue Oct 7, 2020 · 2 comments
Closed
1 of 15 tasks

ng i18n --ivy, incorrect value in "equiv-text" #39164

Niklas187 opened this issue Oct 7, 2020 · 2 comments

Comments

@Niklas187
Copy link

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

not really, but it works correct without the new "--ivy" flag

Description

If you do have a i18n translation with an interpolation and then run "ng xi18n --ivy" the generated xlf file does not have the correct value in the "equiv-text" attribute.

Example:
<x id="INTERPOLATION" equiv-text="&quot;\uFFFD0\uFFFD&quot;"/>

🔬 Minimal Reproduction

  1. git clone https://github.com/Niklas187/ng-xi18n-ivy-bug.git
  2. npm i
  3. npm run ex

🔥 Exception or Error

In the xlf file i would expect:
<x id="INTERPOLATION" equiv-text="{{interpolationValue}}}"/>

🌍 Your Environment


> ng "version"


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 10.1.0
Node: 12.16.0
OS: win32 x64

Angular: 10.1.3
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1001.3
@angular-devkit/build-angular     0.1001.3
@angular-devkit/build-optimizer   0.1001.3
@angular-devkit/build-webpack     0.1001.3
@angular-devkit/core              10.1.3
@angular-devkit/schematics        10.1.0
@angular/cli                      10.1.0
@ngtools/webpack                  10.1.3
@schematics/angular               10.1.0
@schematics/update                0.1001.0
rxjs                              6.6.3
typescript                        4.0.3
webpack                           4.44.1

@alan-agius4 alan-agius4 transferred this issue from angular/angular-cli Oct 7, 2020
@ngbot ngbot bot added this to the needsTriage milestone Oct 7, 2020
@petebacondarwin
Copy link
Member

This is a duplicate of #38711 which was fixed by #39006 and should be available in the 10.1.5 release.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants