From e5271f834eb328900cad92934ebbc72a80be574f Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sat, 12 Apr 2025 23:54:38 +0200 Subject: [PATCH] chore(webui): note performance impact of archon shards --- scripts/update-translations.js | 4 ++-- static/webui/index.html | 5 ++++- static/webui/translations/de.js | 1 + static/webui/translations/en.js | 5 +++-- static/webui/translations/es.js | 1 + static/webui/translations/fr.js | 1 + static/webui/translations/ru.js | 1 + static/webui/translations/zh.js | 1 + 8 files changed, 14 insertions(+), 5 deletions(-) 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 @@
+ + +