From d3875ec794506ef296c36b8c5c7d19c3ef7a0f3b Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 26 May 2017 17:11:11 +0100 Subject: [PATCH] Oops, include file extension in language list --- scripts/copy-res.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/copy-res.js b/scripts/copy-res.js index 9672a98c..8554b146 100755 --- a/scripts/copy-res.js +++ b/scripts/copy-res.js @@ -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));