Skip to content

docs: make a note regarding i18n messageIdFormat#67858

Open
BodyCount wants to merge 1 commit intoangular:mainfrom
BodyCount:patch-1
Open

docs: make a note regarding i18n messageIdFormat#67858
BodyCount wants to merge 1 commit intoangular:mainfrom
BodyCount:patch-1

Conversation

@BodyCount
Copy link

@BodyCount BodyCount commented Mar 25, 2026

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

Make a clear statement that angular compiler option enableI18nLegacyMessageIdFormat has no effect when used with @angular/build:application bundler

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.dev application / infrastructure changes
  • Other... Please describe:

Other information

Option use in webpack builder - useLegacyIds = wco.tsConfig.options.enableI18nLegacyMessageIdFormat ?? true;

So I spent quite a few hours today trying to migrate application to angular 20 and it was hard to troubleshoot why IDs are being changed when extract-i18n is executed and how can I not lost project translations. Docs highlight that one can use enableI18nLegacyMessageIdFormat for backwards compatibility with old i18n ids (which were sha-like I believe).

But it is partially true - because the option itself works only with @angular-devkit/build-angular webpack bundler. Hope this note will help someone

@google-cla

This comment was marked as outdated.

@pullapprove pullapprove bot requested a review from josephperrott March 25, 2026 12:46
@JeanMeche JeanMeche requested a review from alan-agius4 March 25, 2026 12:56
@SkyZeroZx
Copy link
Contributor

Hi, thanks for your contribution

Could you amend the message to something like

docs: make a note regarding i18n messageIdFormat

to follow the commit message guidelines

@BodyCount BodyCount changed the title docs(angular-developer): make a note regarding i18n messageIdFormat docs: make a note regarding i18n messageIdFormat Mar 25, 2026
@leonsenft leonsenft added the area: docs Related to the documentation label Mar 25, 2026
@ngbot ngbot bot added this to the Backlog milestone Mar 25, 2026
@josephperrott josephperrott removed their request for review March 25, 2026 18:41
@BodyCount
Copy link
Author

Updated commit message to follow guidelines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: docs Related to the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants