angular-cn/aio/content/examples/i18n/doc-files/app.locale_data.ts

8 lines
248 B
TypeScript

// #docregion import-locale
import { registerLocaleData } from '@angular/common';
import localeFr from '@angular/common/locales/fr';
// the second parameter 'fr-FR' is optional
registerLocaleData(localeFr, 'fr-FR');
// #enddocregion import-locale