-
Notifications
You must be signed in to change notification settings - Fork 27.1k
i18n ignore leading and trailing spaces #13114
Copy link
Copy link
Open
Labels
area: i18nIssues related to localization and internationalizationIssues related to localization and internationalizationfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under considerationstate: Needs Design
Milestone
Description
I'm submitting a ... (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
now ng-xi18n will generate xliff including spaces, for example there is an element
<p i18n>
复制
</p>
it will generate
<source>
复制
</source>it's really weak to rely on spaces since they could changed Unintentionally or even by IDE reformat code.
Expected behavior
ignore leading and tailing spaces
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: i18nIssues related to localization and internationalizationIssues related to localization and internationalizationfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issuesfeature: under considerationFeature request for which voting has completed and the request is now under considerationFeature request for which voting has completed and the request is now under considerationstate: Needs Design