Skip to content

Commit

Permalink
refactor(interface): remove I from ITranslationResource
Browse files Browse the repository at this point in the history
  • Loading branch information
rbalet committed Oct 16, 2024
1 parent c402653 commit e441f23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/']`,
Expand Down
2 changes: 1 addition & 1 deletion projects/multi-http-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/']`,
Expand Down
4 changes: 2 additions & 2 deletions projects/multi-http-loader/src/lib/multi-http-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<any> {
Expand Down

0 comments on commit e441f23

Please sign in to comment.