Files
angular__angular/aio/content/guide/i18n-optional-manual-runtime-locale.md
T
4javier d1e5ef51b6 docs: fix link to unpkged locales (#46379)
Add trailing slash to url
PR Close #46379
2022-06-15 14:05:14 -07:00

1.4 KiB

Set the runtime locale manually

The initial installation of Angular already contains locale data for English in the United States (en-US). The Angular CLI automatically includes the locale data and sets the LOCALE_ID value when you use the --localize option with ng build command.

To manually set the runtime locale of an application to one other than the automatic value, complete the following actions.

  1. Search for the Unicode locale ID in the language-locale combination in the @angular/common/locales/ directory.
  2. Set the LOCALE_ID token.

The following example sets the value of LOCALE_ID to fr for French.

@reviewed 2022-02-28