We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
*.json
suffix: ''
1 parent 1120e5d commit 0a3a241Copy full SHA for 0a3a241
projects/multi-http-loader/src/lib/multi-http-loader.ts
@@ -20,7 +20,7 @@ export class MultiTranslateHttpLoader implements TranslateLoader {
20
let path: string
21
22
if (typeof resource === 'string') path = `${resource}${lang}.json`
23
- else path = `${resource.prefix}${lang}${resource.suffix || '.json'}`
+ else path = `${resource.prefix}${lang}${resource.suffix ?? '.json'}`
24
25
return new HttpClient(this._handler).get(path).pipe(
26
catchError((res) => {
0 commit comments