From 1366a553b25ee8ec709ae7fbcc66f306eaa1df70 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 20 Feb 2024 11:36:49 +0000 Subject: [PATCH] Fix i18n json file paths (#1527) --- src/language-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {};