1...
2import { NgModule, LOCALE_ID } from '@angular/core';
3import { registerLocaleData } from '@angular/common';
4import localeFr from '@angular/common/locales/fr';
5registerLocaleData(localeFr);
6
7
8@NgModule({
9 imports: [...],
10 declarations: [...],
11 bootstrap: [...],
12 providers: [
13 { provide: LOCALE_ID, useValue: 'fr-FR'},
14 ]
15})
16export class AppModule {}
17