diff --git a/scripts/update-translations.js b/scripts/update-translations.js index 568885e6..2e006135 100644 --- a/scripts/update-translations.js +++ b/scripts/update-translations.js @@ -4,7 +4,7 @@ const fs = require("fs"); function extractStrings(content) { - const regex = /([a-zA-Z_]+): `([^`]*)`,/g; + const regex = /([a-zA-Z0-9_]+): `([^`]*)`,/g; let matches; const strings = {}; while ((matches = regex.exec(content)) !== null) { @@ -36,7 +36,7 @@ fs.readdirSync("../static/webui/translations").forEach(file => { fs.writeSync(fileHandle, ` ${key}: \`[UNTRANSLATED] ${value}\`,\n`); } }); - } else if (line.length) { + } else { fs.writeSync(fileHandle, line + "\n"); } }); diff --git a/static/webui/index.html b/static/webui/index.html index afd841cd..f46be9ab 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -406,7 +406,10 @@
+ + +