]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Remove I18N from main.ts
authorTiago Melo <tmelo@suse.com>
Tue, 1 Oct 2019 13:11:59 +0000 (13:11 +0000)
committerRicardo Dias <rdias@suse.com>
Thu, 10 Oct 2019 15:03:31 +0000 (16:03 +0100)
With AOT I18N there is no need to provide I18N from the main.ts file.

Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/main.ts

index 58d59427369690eaa9aa99b06194a62b85e884bd..741c9eb862fed45d5440272daae7a40101bfe50f 100644 (file)
@@ -2,7 +2,6 @@ import { enableProdMode } from '@angular/core';
 import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
 
 import { AppModule } from './app/app.module';
-import { i18nProviders } from './app/locale.helper';
 import { environment } from './environments/environment';
 
 if (environment.production) {
@@ -10,7 +9,5 @@ if (environment.production) {
 }
 
 platformBrowserDynamic()
-  .bootstrapModule(AppModule, {
-    providers: i18nProviders
-  })
+  .bootstrapModule(AppModule)
   .catch((err) => console.log(err));