Skip to content

Commit 42e9bdd

Browse files
committed
fix: i18n path when build with --base-href
see ngx-translate/http-loader#61
1 parent c1a0cc7 commit 42e9bdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/common/src/lib/i18n/i18n.constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const LANG_2_TO_3_MAPPER = Object.entries(LANG_3_TO_2_MAPPER).reduce(
3333
)
3434

3535
export function HttpLoaderFactory(http: HttpClient) {
36-
return new TranslateHttpLoader(http)
36+
return new TranslateHttpLoader(http, './assets/i18n/')
3737
}
3838

3939
export const TRANSLATE_DEFAULT_CONFIG = {

0 commit comments

Comments
 (0)