Files
angular__angular/aio/content/guide/i18n-optional-import-global-variants.md
George Kalpakas 22ef5e0e60 docs(common): fix links to locales in i18n guides (#45661)
In PR #42230, the locale file generation process was modified so that
generated locale files are no longer checked into the repository. Update
a few links in the docs that pointed to the previously checked in files
to point to other places where the files exist.

PR Close #45661
2022-04-19 09:17:34 -07:00

1.1 KiB

Import global variants of the locale data

The Angular CLI automatically includes locale data if you run the ng build command with the --localize option.

ng build --localize

The @angular/common package on npm contains the locale data files. Global variants of the locale data are available in @angular/common/locales/global.

import example for French

The following example imports the global variants for French (fr).

@reviewed 2022-02-28