mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2686] [Feature]: a language pack for the web app (i18n), Simplified Chinese first, UTF-8 only #1071
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1071
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MrKop-git on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2686
What do you want to do?
The web app (Chat / Monitor / About,
serve/web) is English-only: every label, tooltip, table header and status line is a literal string inindex.html, or built at runtime inapp.js(toasts, the Monitor's rows and facts, the requests table). On a Chinese Windows the rest of Strata is localised (README.zh-CN.md, the installer speaks Chinese) but the page you actually use is not.I would like a small language-pack layer in the web app:
data-i18non the nodes inindex.html, and the same keys for the stringsapp.jsbuilds at runtime;serve/web/i18n/<lang>.json,en.jsonfirst (the strings exactly as they are today, so the default path stays byte-identical for English users) andzh-CN.jsonwith Simplified Chinese;<meta charset="utf-8">andserver.pyservestext/html; charset=utf-8; the packs and their.js/.jsonfiles must stay UTF-8 (no BOM issues, no console code page involved);navigator.languages) with a switch in About > Settings, remembered inlocalStorage, English when nothing matches;translate="no"/lang), so Chrome's translate feature stops fighting the UI (see the jitter bug filed next to this one).Goal: a Chinese user opens
http://127.0.0.1:<port>and reads Chinese without touching the code; an English user sees exactly the page they see now.Notes
Web app only. No change to the engine, the OpenAI/Anthropic APIs, the model's answers, or the installer's own console text. Any other language can be added later by dropping in another
<lang>.json.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.