Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export class MyMissingTranslationHandler implements MissingTranslationHandler {
handle(params: MissingTranslationHandlerParams) {
return params.key;
}
}
@NgModule({
declarations: [MyApp, Iframe],
imports: [
IonicModule.forRoot(MyApp),
IonicStorageModule.forRoot(),
BrowserModule,
HttpModule,
HttpClientModule,
AudioPlayerComponentModule,
Angulartics2RouterlessModule.forRoot([Angulartics2GoogleAnalytics]),
TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: HttpLoaderFactory,
deps: [HttpClient]
}
})
],
bootstrap: [IonicApp],
entryComponents: [MyApp, Iframe],
providers: [
{ provide: ErrorHandler, useClass: IonicErrorHandler },
{
provide: MissingTranslationHandler,
useClass: MyMissingTranslationHandler
},