22 lines
593 B
TypeScript
22 lines
593 B
TypeScript
|
|
import { BrowserModule } from '@angular/platform-browser';
|
||
|
|
import { LOCALE_ID, NgModule } from '@angular/core';
|
||
|
|
import { registerLocaleData } from '@angular/common';
|
||
|
|
import localeFr from '@angular/common/locales/fr';
|
||
|
|
|
||
|
|
import { AppComponent } from './app.component';
|
||
|
|
|
||
|
|
// adding this code to detect issues like https://github.com/angular/angular-cli/issues/10322
|
||
|
|
registerLocaleData(localeFr);
|
||
|
|
|
||
|
|
@NgModule({
|
||
|
|
declarations: [
|
||
|
|
AppComponent
|
||
|
|
],
|
||
|
|
imports: [
|
||
|
|
BrowserModule
|
||
|
|
],
|
||
|
|
providers: [{ provide: LOCALE_ID, useValue: 'fr' }],
|
||
|
|
bootstrap: [AppComponent]
|
||
|
|
})
|
||
|
|
export class AppModule { }
|