You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe. ng-extract-i18n-merge handles certain characters as HTML Character Entities. Most prominent here is ng-extract-i18n-merge inserting " for ".
The translation platform we use, Weblate, uses the characters directly. So it inserts ". There is no need to use HTML Character Entities in Angular and Weblate replaces " with " automatically. This leads to an annoying back and forth, which fills up commit diffs.
Weblate removes " and inserts "
ng-extract-i18n-merge removes " and inserts "
Weblate removes " and inserts "
... and so on ...
See screenshot below.
Describe the solution you'd like
A switch in angular.json to disable ng-extract-i18n-merge's use of HTML Character Entities for "builder": "ng-extract-i18n-merge:ng-extract-i18n-merge" would be nice.
Additional context
Also in the screen shot is seen ng-extract-i18n-merge misunderstanding <source> changes and resetting the translation to "new". This issue is unrelated to this one and reported in: #75
Screenshots
Version (please complete the following information):
Angular: [e.g. 13.3.0]
OS: [e.g. Win10]
nodejs: [e.g. 16.20.2]
ng-extract-i18n-merge version: [e.g. 2.7.1]
The text was updated successfully, but these errors were encountered:
@FrostKiwi this is essentially the behavior of Angulars extract-i18n, which generally makes sense - see #7.
This library could only convert quoted entities back - but this seems brittle, as angular probably does not expect unquoted special chars in the translation files..
I'd suggest, this is rather a bug / feature request for Weblate, that it should keep quoted characters and do no conversion!?
Is your feature request related to a problem? Please describe.
ng-extract-i18n-merge
handles certain characters as HTML Character Entities. Most prominent here isng-extract-i18n-merge
inserting"
for"
.The translation platform we use, Weblate, uses the characters directly. So it inserts
"
. There is no need to use HTML Character Entities in Angular and Weblate replaces"
with"
automatically. This leads to an annoying back and forth, which fills up commit diffs."
and inserts"
ng-extract-i18n-merge
removes"
and inserts"
"
and inserts"
See screenshot below.
Describe the solution you'd like
A switch in
angular.json
to disableng-extract-i18n-merge
's use of HTML Character Entities for"builder": "ng-extract-i18n-merge:ng-extract-i18n-merge"
would be nice.Additional context
Also in the screen shot is seen
ng-extract-i18n-merge
misunderstanding<source>
changes and resetting the translation to"new"
. This issue is unrelated to this one and reported in: #75Screenshots
Version (please complete the following information):
The text was updated successfully, but these errors were encountered: