Skip to content

fix(ivy): i18n - turn on legacy message-id support by default #33053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

petebacondarwin
Copy link
Contributor

For v9 we want the migration to the new i18n to be as
simple as possible.

Previously the developer had to positively choose to use
legacy messsage id support in the case that their translation
files had not been migrated to the new format by setting the
legacyMessageIdFormat option in tsconfig.json to the format
of their translation files.

Now this setting has been changed to enableI18nLegacyMessageFormat
as is a boolean that defaults to true. The format is then read from
the i18nInFormat option, which was previously used to trigger translations
in the pre-ivy angular compiler.

@petebacondarwin petebacondarwin 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 labels Oct 9, 2019
@petebacondarwin petebacondarwin requested review from a team as code owners October 9, 2019 11:35
@ngbot ngbot bot modified the milestone: needsTriage Oct 9, 2019
@petebacondarwin petebacondarwin 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 Oct 9, 2019
@AndrewKushnir
Copy link
Contributor

@AndrewKushnir AndrewKushnir added the action: presubmit The PR is in need of a google3 presubmit label Oct 9, 2019
@petebacondarwin petebacondarwin force-pushed the i18n-legacy-message-id-default-on branch from 524da8c to aa9c328 Compare October 9, 2019 20:27
For v9 we want the migration to the new i18n to be as
simple as possible.

Previously the developer had to positively choose to use
legacy messsage id support in the case that their translation
files had not been migrated to the new format by setting the
`legacyMessageIdFormat` option in tsconfig.json to the format
of their translation files.

Now this setting has been changed to `enableI18nLegacyMessageFormat`
as is a boolean that defaults to `true`. The format is then read from
the `i18nInFormat` option, which was previously used to trigger translations
in the pre-ivy angular compiler.
@petebacondarwin petebacondarwin force-pushed the i18n-legacy-message-id-default-on branch from aa9c328 to bec1b53 Compare October 9, 2019 20:48
@AndrewKushnir AndrewKushnir removed the action: presubmit The PR is in need of a google3 presubmit label Oct 9, 2019
@mhevery mhevery closed this in f640a4a Oct 10, 2019
@petebacondarwin petebacondarwin deleted the i18n-legacy-message-id-default-on branch October 11, 2019 09:14
@angular-automatic-lock-bot
Copy link

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 Nov 11, 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.

4 participants