mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Oops, include file extension in language list
This commit is contained in:
parent
4fcaccbc7f
commit
d3875ec794
@ -160,9 +160,9 @@ function genLangList() {
|
||||
const normalizedLanguage = lang.toLowerCase().replace("_", "-");
|
||||
const languageParts = normalizedLanguage.split('-');
|
||||
if (languageParts.length == 2 && languageParts[0] == languageParts[1]) {
|
||||
languages[languageParts[0]] = lang;
|
||||
languages[languageParts[0]] = lang + '.json';
|
||||
} else {
|
||||
languages[normalizedLanguage] = lang;
|
||||
languages[normalizedLanguage] = lang + '.json';
|
||||
}
|
||||
});
|
||||
fs.writeFile('webapp/i18n/languages.json', JSON.stringify(languages, null, 4));
|
||||
|
Loading…
Reference in New Issue
Block a user