mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
d1e5ef51b6
Add trailing slash to url PR Close #46379
1.4 KiB
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.
- Search for the Unicode locale ID in the language-locale combination in the
@angular/common/locales/directory. - Set the
LOCALE_IDtoken.
The following example sets the value of LOCALE_ID to fr for French.
@reviewed 2022-02-28