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
+4
View File
@@ -22,3 +22,7 @@ dist-ssr
*.njsproj
*.sln
*.sw?
# Compiled lingui catalogs — generated from .po by `lingui compile`; the app
# loads .po directly via @lingui/vite-plugin, so these are build artifacts.
src/locales/**/*.js