« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/upd8.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 6f04599a..bca6a0d0 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -1238,6 +1238,9 @@ async function processLanguageFile(file) {
     }
     delete json['meta.languageCode'];
 
+    const intlCode = json['meta.languageIntlCode'] ?? null;
+    delete json['meta.languageIntlCode'];
+
     const name = json['meta.languageName'];
     if (!name) {
         throw new Error(`Missing language name (${code})`);
@@ -1251,6 +1254,7 @@ async function processLanguageFile(file) {
 
     const language = new Language();
     language.code = code;
+    language.intlCode = intlCode;
     language.name = name;
     language.escapeHTML = string => he.encode(string, {useNamedReferences: true});
     language.strings = json;