@idp-front/translate-multi-http-loader
v1.0.4
Published
Provides opportunity for loading several files at the same time
Downloads
1
Keywords
Readme
Provides opportunity for loading several files at the same time
Install
npm i @idp-front/translate-multi-http-loader
Example
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { MultiTranslateHttpLoader } from '@idp-front/translate-multi-http-loader';
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
@NgModule({
imports: [
CommonModule,
TranslateModule.forRoot({
defaultLanguage: 'ru_RU',
loader: {
provide: TranslateLoader,
useFactory: () =>
new MultiTranslateHttpLoader(['/assets/i18n/', '/assets/shared/i18n/']),
},
}),
],
})
export class AppModule {}