Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// useValue: localStorage
// }
// }),
// TranslocoPersistTranslationsModule.init({
// loader: HttpLoader,
// storage: {
// provide: PERSIST_TRANSLATIONS_STORAGE,
// useValue: localStorage
// }
// })
],
providers: [
httpLoader,
{
provide: TRANSLOCO_CONFIG,
useValue: translocoConfig({
prodMode: environment.production,
availableLangs: [{ id: 'en', label: 'English' }, { id: 'es', label: 'Spanish' }],
reRenderOnLangChange: true,
fallbackLang: 'es',
defaultLang: 'en',
missingHandler: {
useFallbackTranslation: false
}
})
}
],
bootstrap: [AppComponent]
})
export class AppModule {}