-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: i18nIssues related to localization and internationalizationIssues related to localization and internationalizationstate: has PRtype: bug/fix
Milestone
Description
(See #38711 (comment) for original report)
Extraction of i18n messages from the following template HTML:
<ng-container i18n="Update @@update"> <b>{{value1}}:</b> current {{value2}} to new {{value3}} </ng-container>
Without ivy: (ctype attributes removed for clarity)
<source>
<x id="START_BOLD_TEXT" equiv-text="<b>"/>
<x id="INTERPOLATION" equiv-text="{{value1}}"/>:
<x id="CLOSE_BOLD_TEXT" equiv-text="</b>"/> current
<x id="INTERPOLATION_1" equiv-text="{{value2}}"/> to new
<x id="INTERPOLATION_2" equiv-text="{{value3}}"/>
</source>
With ivy:
<source>
<x id="START_BOLD_TEXT" equiv-text="<b>{{value1}}"/>
<x id="INTERPOLATION" equiv-text="{{value1}}"/>:
<x id="CLOSE_BOLD_TEXT" equiv-text="</b> "/> current
<x id="INTERPOLATION_1" equiv-text="{value2}} "/> to new
<x id="INTERPOLATION_2" equiv-text="{value3}} "/>
</source>
It seems that there is some offsetting going on, which is making the start and end points in the equiv-text appear in the wrong place. I'll need to debug into this but since these equiv-text attributes are primarily to aid the translator's job, it will not be high on my priority list. Hopefully I can take a look at it later next week or the week after.
janousek, examan and lucagouty
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: i18nIssues related to localization and internationalizationIssues related to localization and internationalizationstate: has PRtype: bug/fix