Skip to content

Commit 0a3a241

Browse files
committed
fix(loader): was loading *.json when suffix: ''
1 parent 1120e5d commit 0a3a241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: projects/multi-http-loader/src/lib/multi-http-loader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class MultiTranslateHttpLoader implements TranslateLoader {
2020
let path: string
2121

2222
if (typeof resource === 'string') path = `${resource}${lang}.json`
23-
else path = `${resource.prefix}${lang}${resource.suffix || '.json'}`
23+
else path = `${resource.prefix}${lang}${resource.suffix ?? '.json'}`
2424

2525
return new HttpClient(this._handler).get(path).pipe(
2626
catchError((res) => {

0 commit comments

Comments
 (0)