diff --git a/src/language-helper.ts b/src/language-helper.ts index 731fca1..8d1df7c 100644 --- a/src/language-helper.ts +++ b/src/language-helper.ts @@ -106,7 +106,7 @@ export class AppLocalization { public fetchTranslationJson(locale: string): Record { try { console.log("Fetching translation json for locale: " + locale); - return loadJsonFile(`./i18n/strings/${this.denormalize(locale)}.json`); + return loadJsonFile(__dirname, "i18n", "strings", `${this.denormalize(locale)}.json`); } catch (e) { console.log(`Could not fetch translation json for locale: '${locale}'`, e); return {};