@ngx-translate/core#MissingTranslationHandler TypeScript Examples
The following examples show how to use
@ngx-translate/core#MissingTranslationHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: app.module.ts From Elastos.Essentials.App with MIT License | 5 votes |
export class CustomMissingTranslationHandler implements MissingTranslationHandler {
handle(params: MissingTranslationHandlerParams) {
//Logger.warn("Translations", "Missing translation:", params)
}
}
Example #2
Source File: app.module.ts From Elastos.Essentials.App with MIT License | 5 votes |
@NgModule({
declarations: [
AppComponent
],
entryComponents: [
AppComponent
],
imports: [
LauncherModule,
/*
* Sub-apps INIT (only - for bundle size / perf) modules
*/
WalletInitModule,
HiveManagerInitModule,
IdentityInitModule,
ContactsInitModule,
DIDSessionsInitModule,
ScannerInitModule,
CRCouncilVotingInitModule,
CRProposalVotingInitModule,
SettingsInitModule,
DPoSVotingInitModule,
DPoSRegistrationInitModule,
DeveloperToolsInitModule,
/*
* Generic modules
*/
BrowserModule,
BrowserAnimationsModule,
//HttpClientModule,
//SharedComponentsModule,
IonicModule.forRoot({
mode: 'ios',
scrollAssist: false,
scrollPadding: false,
navAnimation: iosTransitionAnimation
}),
AppRoutingModule,
//FormsModule,
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: (TranslateLoaderFactory)
},
missingTranslationHandler: { provide: MissingTranslationHandler, useClass: CustomMissingTranslationHandler },
}),
IonicStorageModule.forRoot({
name: '__essentials.db',
driverOrder: ['sqlite', 'indexeddb', 'localstorage', 'websql']
}),
BrowserAnimationsModule,
],
providers,
bootstrap: [AppComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class AppModule { }