« get me outta code hell

upd8: load custom languages from yaml as well as json - 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>2023-11-12 15:25:54 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-12 15:25:54 -0400
commit61c8aa5c17ee6fd96f2e72f8d8a47eb0878ffa7e (patch)
tree79a7d66b54d894d5587142c0b3cfaf2d9923d770 /src/upd8.js
parent51097802bd2f9d58d4062235858f588a4cf58d93 (diff)
upd8: load custom languages from yaml as well as json
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/upd8.js b/src/upd8.js
index db73c41..ff7d7c5 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -1179,7 +1179,9 @@ async function main() {
     });
 
     const languageDataFiles = await traverse(langPath, {
-      filterFile: name => path.extname(name) === '.json',
+      filterFile: name =>
+        path.extname(name) === '.json' ||
+        path.extname(name) === '.yaml',
       pathStyle: 'device',
     });