mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-18 23:44:59 +01:00
Fix i18n json file paths (#1527)
This commit is contained in:
parent
4851a32e23
commit
1366a553b2
@ -106,7 +106,7 @@ export class AppLocalization {
|
|||||||
public fetchTranslationJson(locale: string): Record<string, string> {
|
public fetchTranslationJson(locale: string): Record<string, string> {
|
||||||
try {
|
try {
|
||||||
console.log("Fetching translation json for locale: " + locale);
|
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) {
|
} catch (e) {
|
||||||
console.log(`Could not fetch translation json for locale: '${locale}'`, e);
|
console.log(`Could not fetch translation json for locale: '${locale}'`, e);
|
||||||
return {};
|
return {};
|
||||||
|
Loading…
Reference in New Issue
Block a user