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

8 lines
293 B
TypeScript
Raw Normal View History

// #docregion import-locale-extra
import { registerLocaleData } from '@angular/common';
import localeFr from '@angular/common/locales/fr';
import localeFrExtra from '@angular/common/locales/extra/fr';
registerLocaleData(localeFr, 'fr-FR', localeFrExtra);
// #enddocregion import-locale-extra