feat(web-panel): multi-locale i18n with selector + browser autodetect

- Add 6 locales (en-US source + ru-RU, de-DE, fr-FR, es-ES, zh-CN)
  matching the patcher's WPF UI; full .po catalogs incl. plural forms.
- Language selector in the left settings drawer; persist choice and
  auto-detect from navigator language on first load.
- Load .po directly via @lingui/vite-plugin (drop the compile step);
  gitignore generated catalog .js as build artifacts.
This commit is contained in:
kitbyte
2026-06-15 00:26:41 +03:00
parent 8c6d87671c
commit 4ce47dc6d2
14 changed files with 1831 additions and 21 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
"scripts": {
"dev": "vite",
"dev:host": "vite --host 0.0.0.0",
"build": "pnpm run i18n:compile && tsc --noEmit && vite build && pnpm run build:bridge",
"build": "tsc --noEmit && vite build && pnpm run build:bridge",
"build:bridge": "node ./bridge/build.mjs",
"lint": "eslint src protocol bridge/src --max-warnings=0",
"typecheck:web": "tsc --noEmit",