mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
17 lines
567 B
TypeScript
17 lines
567 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 {}
|