I studied the new i18n feature in Angular 9. https://angular.io/guide/i18n
How to translate text in TypeScript, e.g. SnackBar messages?
I studied the new i18n feature in Angular 9. https://angular.io/guide/i18n
How to translate text in TypeScript, e.g. SnackBar messages?
The better way of translationId is:
and you have to manually add it to your messages.xx.xlf (for example messages.fr.xlf and so on)
Check this blog https://blog.ninja-squad.com/2019/12/10/angular-localize/
And
don't forgot re serve your angular application.
UPDATE FOR ID
https://github.com/angular/angular/blob/252966bcca91ea4deb0e52f1f1d0d3f103f84ccd/packages/localize/init/index.ts#L31