mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 10:45:51 +03:00
Oops, include file extension in language list
This commit is contained in:
parent
4fcaccbc7f
commit
d3875ec794
1 changed files with 2 additions and 2 deletions
|
@ -160,9 +160,9 @@ function genLangList() {
|
||||||
const normalizedLanguage = lang.toLowerCase().replace("_", "-");
|
const normalizedLanguage = lang.toLowerCase().replace("_", "-");
|
||||||
const languageParts = normalizedLanguage.split('-');
|
const languageParts = normalizedLanguage.split('-');
|
||||||
if (languageParts.length == 2 && languageParts[0] == languageParts[1]) {
|
if (languageParts.length == 2 && languageParts[0] == languageParts[1]) {
|
||||||
languages[languageParts[0]] = lang;
|
languages[languageParts[0]] = lang + '.json';
|
||||||
} else {
|
} else {
|
||||||
languages[normalizedLanguage] = lang;
|
languages[normalizedLanguage] = lang + '.json';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
fs.writeFile('webapp/i18n/languages.json', JSON.stringify(languages, null, 4));
|
fs.writeFile('webapp/i18n/languages.json', JSON.stringify(languages, null, 4));
|
||||||
|
|
Loading…
Reference in a new issue