Skip to content

extract-i18n generates wrong interpolation equiv-text in v11 #39654

Description

@julkue

🐞 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: i18nIssues related to localization and internationalizationstate: has PR

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions