« get me outta code hell

strings - same language code, different build dir - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-02-24 23:18:20 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-02-24 23:18:20 -0400
commitf8bb3f83f37b621a6ace26dbe39c78023facfbbb (patch)
tree7cb52364f476ad6d055f99e60ee61f8e1946c08d /src/upd8.js
parent5057b24b53f3866cf9f34a6fdfa0d1345c0d8be0 (diff)
strings - same language code, different build dir
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 4a755ab..81275ad 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -2040,7 +2040,7 @@ async function wrapLanguages(fn, {writeOneLanguage = null}) {
     for (let i = 0; i < entries.length; i++) {
         const [ key, strings ] = entries[i];
 
-        const baseDirectory = (strings === languages.default ? '' : strings.code);
+        const baseDirectory = (strings === languages.default ? '' : strings.baseDirectory);
 
         await fn({
             baseDirectory,
@@ -2233,7 +2233,7 @@ async function main() {
         }
         if (error) return;
 
-        languages = Object.fromEntries(results.map(strings => [strings.code, strings]));
+        languages = Object.fromEntries(results.map(strings => [strings.baseDirectory, strings]));
     } else {
         languages = {};
     }