Skip to content

Commit

Permalink
fix(loader): allow mixing strings and TranslationResources in the s…
Browse files Browse the repository at this point in the history
…ame array
  • Loading branch information
gentoo90 committed Dec 21, 2024
1 parent 0a3a241 commit 993cb6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/multi-http-loader/src/lib/multi-http-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface TranslationResource {
export class MultiTranslateHttpLoader implements TranslateLoader {
constructor(
private _handler: HttpBackend,
private _resourcesPrefix: string[] | TranslationResource[],
private _resourcesPrefix: (string | TranslationResource)[],
) {}

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

0 comments on commit 993cb6d

Please sign in to comment.