fix(ivy): i18n - turn on legacy message-id support by default (#33053)
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. PR Close #33053
This commit is contained in:

committed by
Miško Hevery

parent
5ede5b7807
commit
f640a4a494
@ -11,7 +11,7 @@ import {ParseSourceSpan} from '../parse_util';
|
||||
export class Message {
|
||||
sources: MessageSpan[];
|
||||
id: string = this.customId;
|
||||
/** The id to use if there is no custom id and if `i18nLegacyMessageIdFormat` is true */
|
||||
/** The id to use if there is no custom id and if `i18nLegacyMessageIdFormat` is not empty */
|
||||
legacyId?: string = '';
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user