diff --git a/README.md b/README.md index 2a4457a..b6a3650 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ export function HttpLoaderFactory(_httpBackend: HttpBackend) { export class AppModule { } ``` -The `MultiTranslateHttpLoader` takes a list of `string[]` or `ITranslationResource[]`. +The `MultiTranslateHttpLoader` takes a list of `string[]` or `TranslationResource[]`. ### String[] For example `['/assets/i18n/core/', '/assets/i18n/vendors/']`, diff --git a/projects/multi-http-loader/README.md b/projects/multi-http-loader/README.md index 237c2af..8b4e4cb 100644 --- a/projects/multi-http-loader/README.md +++ b/projects/multi-http-loader/README.md @@ -75,7 +75,7 @@ export function HttpLoaderFactory(_httpBackend: HttpBackend) { export class AppModule { } ``` -The `MultiTranslateHttpLoader` takes a list of `string[]` or `ITranslationResource[]`. +The `MultiTranslateHttpLoader` takes a list of `string[]` or `TranslationResource[]`. ### String[] For example `['/assets/i18n/core/', '/assets/i18n/vendors/']`, diff --git a/projects/multi-http-loader/src/lib/multi-http-loader.ts b/projects/multi-http-loader/src/lib/multi-http-loader.ts index e28de10..3312e86 100644 --- a/projects/multi-http-loader/src/lib/multi-http-loader.ts +++ b/projects/multi-http-loader/src/lib/multi-http-loader.ts @@ -3,7 +3,7 @@ import { TranslateLoader } from '@ngx-translate/core' import { forkJoin, Observable, of } from 'rxjs' import { catchError, map } from 'rxjs/operators' -export interface ITranslationResource { +export interface TranslationResource { prefix: string suffix?: string optional?: boolean @@ -12,7 +12,7 @@ export interface ITranslationResource { export class MultiTranslateHttpLoader implements TranslateLoader { constructor( private _handler: HttpBackend, - private _resourcesPrefix: string[] | ITranslationResource[], + private _resourcesPrefix: string[] | TranslationResource[], ) {} public getTranslation(lang: string): Observable {