Skip to content

fix(ivy): sanitize external i18n ids before generating const names - #28522

Closed
AndrewKushnir wants to merge 2 commits into
angular:masterfrom
AndrewKushnir:i18n_const_name_sanitization
Closed

AndrewKushnir wants to merge 2 commits into
angular:masterfrom
AndrewKushnir:i18n_const_name_sanitization

Conversation

@AndrewKushnir

Copy link
Copy Markdown
Contributor

Prior to this change there was no i18n id sanitization before we output goog.getMsg calls. Due to the fact that message ids are used as a part of const names, some characters were causing issues while executing generated code. This commit adds sanitization to i18n ids used to generate i18n-related consts.

PR Type

What kind of change does this PR introduce?

  • Bugfix

Does this PR introduce a breaking change?

  • Yes
  • No

@AndrewKushnir AndrewKushnir added type: bug/fix action: review The PR is still awaiting reviews from at least one requested reviewer area: i18n Issues related to localization and internationalization target: major This PR is targeted for the next major release comp: ivy labels Feb 4, 2019
@AndrewKushnir
AndrewKushnir requested review from a team and ocombe February 4, 2019 18:46
@ngbot ngbot Bot added this to the needsTriage milestone Feb 4, 2019
Prior to this change there was no i18n id sanitization before we output goog.getMsg calls. Due to the fact that message ids are used as a part of const names, some characters were bcausing issues while executing generated code. This commit adds sanitization to i18n ids used to generate i18n-related consts.
@AndrewKushnir
AndrewKushnir force-pushed the i18n_const_name_sanitization branch from b1d956c to 9d73260 Compare February 5, 2019 20:27
@AndrewKushnir

AndrewKushnir commented Feb 5, 2019 •

Copy link
Copy Markdown
Contributor Author

Presubmit

@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Feb 6, 2019
@matsko matsko closed this in 3f73dfa Feb 6, 2019
@angular-automatic-lock-bot

Copy link
Copy Markdown

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 Sep 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: i18n Issues related to localization and internationalization cla: yes target: major This PR is targeted for the next major release type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants