[PR #1973] [CLOSED] serve/web: UI translations for 12 more languages and a language picker (builds on the en / zh-CN patch from #1230) #3787

Closed
opened 2026-11-07 15:30:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1973
Author: @DDK00011
Created: 10/11/2026
Status: ❌ Closed

Base: main ← Head: serve-web-i18n-12-languages-2026-10-12


📝 Commits (10+)

  • 72ca146 serve/web: add en/zh-CN i18n with automatic language detection
  • 0112da1 serve/web: add ko, ja, vi, id UI dictionaries (AI first draft)
  • 6eb1e3b serve/web: language picker for every dictionary (header + About > Settings)
  • 01fe162 serve/web: add zh-TW, es, pt-BR, de, fr, ru, it, tr UI dictionaries (AI first draft) and load them
  • 07a8fd8 serve/web: keep the header inside narrow screens for every language
  • d1829fa serve/web: apply a second-opinion review to the ko, ja, vi, id, zh-TW, es, pt-BR, de, fr, ru, it, tr dictionaries
  • e68e379 serve/web: keep the API Monitor filters inside a phone-width panel in every language
  • 1ac8342 serve/web: give the API Monitor search box room for the longer hints of other languages
  • a8c55dd serve/web: apply a review of the real screens to the ko, ja, id, es, pt-BR, de, fr, it, ru and tr dictionaries
  • 67ff6c9 serve/web: apply a blind back-translation check to the vi and id dictionaries

📊 Changes

19 files changed (+6259 additions, -270 deletions)

View changed files

📝 serve/web/app.js (+201 -165)
➕ serve/web/i18n.de.js (+412 -0)
➕ serve/web/i18n.en.js (+414 -0)
➕ serve/web/i18n.es.js (+412 -0)
➕ serve/web/i18n.fr.js (+412 -0)
➕ serve/web/i18n.id.js (+412 -0)
➕ serve/web/i18n.it.js (+412 -0)
➕ serve/web/i18n.ja.js (+412 -0)
➕ serve/web/i18n.js (+142 -0)
➕ serve/web/i18n.ko.js (+412 -0)
➕ serve/web/i18n.pt-BR.js (+412 -0)
➕ serve/web/i18n.ru.js (+412 -0)
➕ serve/web/i18n.tr.js (+412 -0)
➕ serve/web/i18n.vi.js (+412 -0)
➕ serve/web/i18n.zh-CN.js (+413 -0)
➕ serve/web/i18n.zh-TW.js (+412 -0)
📝 serve/web/index.html (+94 -75)
📝 serve/web/monitor.html (+32 -15)
📝 serve/web/monitor.js (+19 -15)

📄 Description

Title

serve/web: UI translations for 12 more languages and a language picker (builds on the en / zh-CN patch from #1230)

Issue: refs #1230

Summary

  • Adds 12 UI dictionaries (ko, ja, vi, id, zh-TW, es, pt-BR, de, fr, ru, it, tr) with 375 keys each, building on the en and zh-CN patch from #1230.
  • Replaces the EN / 中 toggle with a language picker (header on wide screens, About > Settings on narrow screens); UI language follows browser language by default, choices are saved, and English browsers see no change.
  • Translation draft status: AI first drafts (Gemini 3.8 Flash) followed by AI review passes (a second-opinion review, a review on screenshots of every screen, and a blind back-translation check for vi and id); opened as draft until native speakers review (@Moge800 offered in #1230 to check Japanese).

What changed

  • The branch has 11 commits: the first commit is the en / zh-CN patch posted in #1230 (its author is kept), and the other 10 are account-owner commits with AI assistance.
  • Changes 19 files, +6259 / -270, almost all of it dictionaries: serve/web/i18n.js (loader, detection, storage, picker logic), 14 dictionaries in serve/web/i18n.<code>.js (12 new ones plus en and zh-CN from the patch), key replacements in index.html, monitor.html, app.js, monitor.js, and layout tweaks for longer words.
  • Rebased onto main 7695859 (v0.1.43 line), resolving conflicts with the favicon commit and the new "Prefill t/s" and "Decode t/s" columns, which are also translated.
  • One change: UI localization. Leaves alone: the engine, the server, setup, the API, and English wording (moved to keys).

Extra Notes

  • Checks: All 14 dictionaries pass key, placeholder, HTML tag, product name, and number checks. Headless Chrome across 14 languages × 10 views (desktop and phone/tablet widths) showed 0 cut-off texts in 140 views and no key falling back to English; 22 picker and detection checks passed. serve.test_monitor and serve.test_runconfig pass (19 tests OK). Full suite check: 17 tests fail on both this branch and plain main in my environment.
  • Not done: No native-speaker review yet; tested only on headless Chrome on Linux; no screen-reader check.
  • Repository rules: Browser detection means non-English browsers display their locale by default (matching #1230). If you prefer strict opt-in, tell me and I will make English the default until a language is picked.
  • Overlap: #1427 (Russian + language box) and #1152 (Arabic) are open; #1204 is closed. This PR includes Russian; happy to rebase or drop it if #1427 merges first.

Prepared with the help of Claude Code.
🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1973 **Author:** [@DDK00011](https://github.com/DDK00011) **Created:** 10/11/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `serve-web-i18n-12-languages-2026-10-12` --- ### 📝 Commits (10+) - [`72ca146`](https://github.com/Niko1221/Strata/commit/72ca146eee3e8d19840a6597d185867a557f884d) serve/web: add en/zh-CN i18n with automatic language detection - [`0112da1`](https://github.com/Niko1221/Strata/commit/0112da174229dfc79b2ba39bcac10443f9bd6b93) serve/web: add ko, ja, vi, id UI dictionaries (AI first draft) - [`6eb1e3b`](https://github.com/Niko1221/Strata/commit/6eb1e3ba425301addc628f0d03f31f00ad1558bf) serve/web: language picker for every dictionary (header + About > Settings) - [`01fe162`](https://github.com/Niko1221/Strata/commit/01fe16238f821a564eeada9764d39e0051c3fe2b) serve/web: add zh-TW, es, pt-BR, de, fr, ru, it, tr UI dictionaries (AI first draft) and load them - [`07a8fd8`](https://github.com/Niko1221/Strata/commit/07a8fd8ba014305d25a8b89e89fbb50c084a790a) serve/web: keep the header inside narrow screens for every language - [`d1829fa`](https://github.com/Niko1221/Strata/commit/d1829fa39423616b1709ba53fbba5790e5cd0176) serve/web: apply a second-opinion review to the ko, ja, vi, id, zh-TW, es, pt-BR, de, fr, ru, it, tr dictionaries - [`e68e379`](https://github.com/Niko1221/Strata/commit/e68e3794bd78d4ca8fdaa6c869285cfda03e7bc3) serve/web: keep the API Monitor filters inside a phone-width panel in every language - [`1ac8342`](https://github.com/Niko1221/Strata/commit/1ac83428772831d5322569c21b079d521e03262d) serve/web: give the API Monitor search box room for the longer hints of other languages - [`a8c55dd`](https://github.com/Niko1221/Strata/commit/a8c55dd305fbbd0f0afaede345ca47027b86143d) serve/web: apply a review of the real screens to the ko, ja, id, es, pt-BR, de, fr, it, ru and tr dictionaries - [`67ff6c9`](https://github.com/Niko1221/Strata/commit/67ff6c99c4456fc906dcf181955971351d4f3ca6) serve/web: apply a blind back-translation check to the vi and id dictionaries ### 📊 Changes **19 files changed** (+6259 additions, -270 deletions) <details> <summary>View changed files</summary> 📝 `serve/web/app.js` (+201 -165) ➕ `serve/web/i18n.de.js` (+412 -0) ➕ `serve/web/i18n.en.js` (+414 -0) ➕ `serve/web/i18n.es.js` (+412 -0) ➕ `serve/web/i18n.fr.js` (+412 -0) ➕ `serve/web/i18n.id.js` (+412 -0) ➕ `serve/web/i18n.it.js` (+412 -0) ➕ `serve/web/i18n.ja.js` (+412 -0) ➕ `serve/web/i18n.js` (+142 -0) ➕ `serve/web/i18n.ko.js` (+412 -0) ➕ `serve/web/i18n.pt-BR.js` (+412 -0) ➕ `serve/web/i18n.ru.js` (+412 -0) ➕ `serve/web/i18n.tr.js` (+412 -0) ➕ `serve/web/i18n.vi.js` (+412 -0) ➕ `serve/web/i18n.zh-CN.js` (+413 -0) ➕ `serve/web/i18n.zh-TW.js` (+412 -0) 📝 `serve/web/index.html` (+94 -75) 📝 `serve/web/monitor.html` (+32 -15) 📝 `serve/web/monitor.js` (+19 -15) </details> ### 📄 Description ## Title serve/web: UI translations for 12 more languages and a language picker (builds on the en / zh-CN patch from #1230) Issue: refs #1230 ## Summary - Adds 12 UI dictionaries (ko, ja, vi, id, zh-TW, es, pt-BR, de, fr, ru, it, tr) with 375 keys each, building on the en and zh-CN patch from #1230. - Replaces the EN / 中 toggle with a language picker (header on wide screens, About > Settings on narrow screens); UI language follows browser language by default, choices are saved, and English browsers see no change. - Translation draft status: AI first drafts (Gemini 3.8 Flash) followed by AI review passes (a second-opinion review, a review on screenshots of every screen, and a blind back-translation check for vi and id); opened as draft until native speakers review (@Moge800 offered in #1230 to check Japanese). ## What changed - The branch has 11 commits: the first commit is the en / zh-CN patch posted in #1230 (its author is kept), and the other 10 are account-owner commits with AI assistance. - Changes 19 files, +6259 / -270, almost all of it dictionaries: `serve/web/i18n.js` (loader, detection, storage, picker logic), 14 dictionaries in `serve/web/i18n.<code>.js` (12 new ones plus en and zh-CN from the patch), key replacements in `index.html`, `monitor.html`, `app.js`, `monitor.js`, and layout tweaks for longer words. - Rebased onto main 7695859 (v0.1.43 line), resolving conflicts with the favicon commit and the new "Prefill t/s" and "Decode t/s" columns, which are also translated. - One change: UI localization. Leaves alone: the engine, the server, setup, the API, and English wording (moved to keys). ## Extra Notes - **Checks**: All 14 dictionaries pass key, placeholder, HTML tag, product name, and number checks. Headless Chrome across 14 languages × 10 views (desktop and phone/tablet widths) showed 0 cut-off texts in 140 views and no key falling back to English; 22 picker and detection checks passed. `serve.test_monitor` and `serve.test_runconfig` pass (19 tests OK). Full suite check: 17 tests fail on both this branch and plain main in my environment. - **Not done**: No native-speaker review yet; tested only on headless Chrome on Linux; no screen-reader check. - **Repository rules**: Browser detection means non-English browsers display their locale by default (matching #1230). If you prefer strict opt-in, tell me and I will make English the default until a language is picked. - **Overlap**: #1427 (Russian + language box) and #1152 (Arabic) are open; #1204 is closed. This PR includes Russian; happy to rebase or drop it if #1427 merges first. Prepared with the help of Claude Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:44 +07:00
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#3787
No description provided.