2017-11-02 17:22:09 -04:00
|
|
|
// #docregion
|
|
|
|
import { enableProdMode, TRANSLATIONS, TRANSLATIONS_FORMAT } from '@angular/core';
|
|
|
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
|
|
|
|
|
|
import { AppModule } from './app/app.module';
|
|
|
|
import { environment } from './environments/environment';
|
|
|
|
|
|
|
|
if (environment.production) {
|
|
|
|
enableProdMode();
|
|
|
|
}
|
|
|
|
|
|
|
|
// use the require method provided by webpack
|
|
|
|
declare const require;
|
|
|
|
// we use the webpack raw-loader to return the content as a string
|
2019-08-27 04:07:38 -04:00
|
|
|
const translations = require('raw-loader!./locale/messages.fr.xlf').default;
|
2017-11-02 17:22:09 -04:00
|
|
|
|
|
|
|
platformBrowserDynamic().bootstrapModule(AppModule, {
|
|
|
|
providers: [
|
|
|
|
{provide: TRANSLATIONS, useValue: translations},
|
|
|
|
{provide: TRANSLATIONS_FORMAT, useValue: 'xlf'}
|
|
|
|
]
|
|
|
|
});
|