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 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 New Issue