From e441f23aea5926c4e9e41a154555ee6df4188272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Balet?= Date: Wed, 16 Oct 2024 14:10:22 +0200 Subject: [PATCH] refactor(interface): remove I from ITranslationResource --- README.md | 2 +- projects/multi-http-loader/README.md | 2 +- projects/multi-http-loader/src/lib/multi-http-loader.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 {