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

6 lines
189 B
TypeScript

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