Skip to content

Commit 71de17e

Browse files
committed
refactor(interface): remove I from ITranslationResource
1 parent e37a3b4 commit 71de17e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function HttpLoaderFactory(_httpBackend: HttpBackend) {
7575
export class AppModule { }
7676
```
7777

78-
The `MultiTranslateHttpLoader` takes a list of `string[]` or `ITranslationResource[]`.
78+
The `MultiTranslateHttpLoader` takes a list of `string[]` or `TranslationResource[]`.
7979

8080
### String[]
8181
For example `['/assets/i18n/core/', '/assets/i18n/vendors/']`,

projects/multi-http-loader/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function HttpLoaderFactory(_httpBackend: HttpBackend) {
7575
export class AppModule { }
7676
```
7777

78-
The `MultiTranslateHttpLoader` takes a list of `string[]` or `ITranslationResource[]`.
78+
The `MultiTranslateHttpLoader` takes a list of `string[]` or `TranslationResource[]`.
7979

8080
### String[]
8181
For example `['/assets/i18n/core/', '/assets/i18n/vendors/']`,

projects/multi-http-loader/src/lib/multi-http-loader.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { TranslateLoader } from '@ngx-translate/core'
33
import { forkJoin, Observable, of } from 'rxjs'
44
import { catchError, map } from 'rxjs/operators'
55

6-
export interface ITranslationResource {
6+
export interface TranslationResource {
77
prefix: string
88
suffix?: string
99
optional?: boolean
@@ -12,7 +12,7 @@ export interface ITranslationResource {
1212
export class MultiTranslateHttpLoader implements TranslateLoader {
1313
constructor(
1414
private _handler: HttpBackend,
15-
private _resourcesPrefix: string[] | ITranslationResource[],
15+
private _resourcesPrefix: string[] | TranslationResource[],
1616
) {}
1717

1818
public getTranslation(lang: string): Observable<any> {

0 commit comments

Comments
 (0)