enum
Use this enum at bootstrap as an option of bootstrapModule
to define the strategy that the compiler should use in case of missing translations:
enum MissingTranslationStrategy { Error: 0 Warning: 1 Ignore: 2 }
See the i18n guide for more information.
Member | Description |
---|---|
Error: 0 | |
Warning: 1 | |
Ignore: 2 |
import { MissingTranslationStrategy } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module'; platformBrowserDynamic().bootstrapModule(AppModule, { missingTranslation: MissingTranslationStrategy.Error });
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/core/MissingTranslationStrategy