[GH-ISSUE #2686] [Feature]: a language pack for the web app (i18n), Simplified Chinese first, UTF-8 only #1071

Closed
opened 2026-11-04 01:48:14 +07:00 by bsakaguchi · 1 comment
Owner

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 in index.html, or built at runtime in app.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:

  • one key per user-visible string: data-i18n on the nodes in index.html, and the same keys for the strings app.js builds at runtime;
  • one JSON pack per language under serve/web/i18n/<lang>.json, en.json first (the strings exactly as they are today, so the default path stays byte-identical for English users) and zh-CN.json with Simplified Chinese;
  • UTF-8 everywhere, never GBK / cp936 — the page already declares <meta charset="utf-8"> and server.py serves text/html; charset=utf-8; the packs and their .js/.json files must stay UTF-8 (no BOM issues, no console code page involved);
  • the language picked from the browser's own (navigator.languages) with a switch in About > Settings, remembered in localStorage, English when nothing matches;
  • tell the browser not to machine-translate the page while a real translation exists (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.

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 in `index.html`, or built at runtime in `app.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: - one key per user-visible string: `data-i18n` on the nodes in `index.html`, and the same keys for the strings `app.js` builds at runtime; - one JSON pack per language under `serve/web/i18n/<lang>.json`, `en.json` first (the strings exactly as they are today, so the default path stays byte-identical for English users) and `zh-CN.json` with Simplified Chinese; - **UTF-8 everywhere, never GBK / cp936** — the page already declares `<meta charset="utf-8">` and `server.py` serves `text/html; charset=utf-8`; the packs and their `.js`/`.json` files must stay UTF-8 (no BOM issues, no console code page involved); - the language picked from the browser's own (`navigator.languages`) with a switch in About > Settings, remembered in `localStorage`, English when nothing matches; - tell the browser not to machine-translate the page while a real translation exists (`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`.
Author
Owner

@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:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271172461 --> @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: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1071
No description provided.