[PR #3860] [CLOSED] [GUI] Complete slash-command localization across all eight languages #4803

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3860
Author: @songconmaisaix31-design
Created: 10/23/2026
Status: ❌ Closed

Base: main ← Head: fix/chinese-slash-command-hints


📝 Commits (2)

  • b5e0c48 [GUI] Localize navigation slash-command hints
  • 3e79d0d [GUI] Complete slash-command hints and guard locale coverage

📊 Changes

10 files changed (+147 additions, -10 deletions)

View changed files

📝 apps/host/src/locales/de.json (+8 -1)
📝 apps/host/src/locales/en.json (+8 -1)
📝 apps/host/src/locales/es.json (+8 -1)
📝 apps/host/src/locales/ja.json (+8 -1)
📝 apps/host/src/locales/ko.json (+8 -1)
📝 apps/host/src/locales/pt.json (+8 -1)
📝 apps/host/src/locales/ru.json (+8 -1)
📝 apps/host/src/locales/zh.json (+8 -1)
📝 apps/host/tests/chat-shortcuts.test.mjs (+70 -2)
📝 apps/host/tests/languages-and-catalog.test.mjs (+13 -0)

📄 Description

Problem and result

Typing / in a non-English chat exposes missing exact catalog entries for four navigation hints (/tune, /serve, /model, /skills) and three action hints (/plan, /research, /new). Navigation hints fall through to Open {0} with English destination names; action hints fall back to their English copy.

Add these seven entries to all eight catalogs. English copy, command tokens, destinations and runtime code stay unchanged. In the base UI, German /skills already renders correctly through its generic template; the other six affected German hints and all seven in the other six non-English languages differ from the patched translations.

Fixes #3825. Addresses the three slash-command hints in #3479; the other strings reported there remain outside this PR.

Approach

Exact entries leave Open {0} interpolation intact for user-provided titles. The regression test obtains registry hints from getSlashCommands() and literal composer hints from the TypeScript AST. It checks exact coverage and translated output for all 17 declared entries, including /export and demo-only /subagents.

Validation

Head 3e79d0d0ca470e17e0cd29638f52552386d1ee44; base 7ddc17a38fe7f31637e895ecfba58c2cd43d65ec. Ubuntu 24.04.3, Node.js 24.19.0. Review performed on 2026-10-24. No source changes were needed in this review.

Passed:

  • From apps/host: node --test tests/chat-shortcuts.test.mjs tests/languages-and-catalog.test.mjs tests/slash-commands.test.mjs tests/language-preferences.test.mjs — 19 passed.
  • npm run typecheck, npm run build, and repository git diff --check passed; Vite reports a nonfatal large-chunk warning.
  • Real Chromium against the built UI and the existing isolated preview host: all 17 menu entries in all 8 languages match their catalogs, with stable command tokens. This uses simulated hardware/model data and makes no inference claim.
  • Chinese and Russian: filtering, Escape dismissal, Enter/Tab selection, mouse navigation through six routes, and /new preserving the original conversation passed. English-to-Chinese live language switching and reload persistence passed. No console errors or page errors were captured.
  • The same browser driver on the base reproduces all seven differing hints in Chinese, Japanese, Spanish, Russian, Portuguese and Korean, and six in German. German /skills has the same correct output through its existing template.
  • Explicit interpolation checks preserve artifact/media titles such as Models; the UI check also preserves a conversation titled Models.

Failed:

  • node --test tests/app-ui.test.mjs tests/timeskip-real.test.mjs gives 14 passed / 2 failed on both base and head, under the same environment and dependency installation. Failures are the uv_interface_addresses permission error and the grandchild-process stop assertion. No skips or weakened assertions were added.
  • The earlier full npm test run on this same head remains 973 passed, 3 failed, 104 skipped. Its additional 20 ms Quit timing failure did not occur in this review's isolated comparison. The full suite has not been reclassified as passing.
  • GitHub currently shows 3 workflows awaiting maintainer approval. The intake check passed and its sweep was skipped; this is not a completed upstream CI run.

Not run:

  • Native Windows/Tauri WebView acceptance.
  • A full-suite run on an unrestricted local host.
  • Interactive artifact/media preview title checks; those title contracts have unit coverage only.

Limits

The previous missing browser evidence is now supplied by the isolated Chromium run. Keep the draft until the contributor has reviewed the change and confirmed the remaining platform/full-suite scope. Catalog matching does not substitute for a native speaker's translation review. No backend, model or GPU compatibility claim is made.

AI assistance: OpenAI Codex prepared the change and this verification. Commands and browser assertions were actually executed; retained failures remain failures.


🔄 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/3860 **Author:** [@songconmaisaix31-design](https://github.com/songconmaisaix31-design) **Created:** 10/23/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/chinese-slash-command-hints` --- ### 📝 Commits (2) - [`b5e0c48`](https://github.com/Niko1221/Strata/commit/b5e0c48a799fb4e8a8a18ffa5a8f0176eea53c2e) [GUI] Localize navigation slash-command hints - [`3e79d0d`](https://github.com/Niko1221/Strata/commit/3e79d0d0ca470e17e0cd29638f52552386d1ee44) [GUI] Complete slash-command hints and guard locale coverage ### 📊 Changes **10 files changed** (+147 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `apps/host/src/locales/de.json` (+8 -1) 📝 `apps/host/src/locales/en.json` (+8 -1) 📝 `apps/host/src/locales/es.json` (+8 -1) 📝 `apps/host/src/locales/ja.json` (+8 -1) 📝 `apps/host/src/locales/ko.json` (+8 -1) 📝 `apps/host/src/locales/pt.json` (+8 -1) 📝 `apps/host/src/locales/ru.json` (+8 -1) 📝 `apps/host/src/locales/zh.json` (+8 -1) 📝 `apps/host/tests/chat-shortcuts.test.mjs` (+70 -2) 📝 `apps/host/tests/languages-and-catalog.test.mjs` (+13 -0) </details> ### 📄 Description ## Problem and result Typing `/` in a non-English chat exposes missing exact catalog entries for four navigation hints (`/tune`, `/serve`, `/model`, `/skills`) and three action hints (`/plan`, `/research`, `/new`). Navigation hints fall through to `Open {0}` with English destination names; action hints fall back to their English copy. Add these seven entries to all eight catalogs. English copy, command tokens, destinations and runtime code stay unchanged. In the base UI, German `/skills` already renders correctly through its generic template; the other six affected German hints and all seven in the other six non-English languages differ from the patched translations. ## Related discussion Fixes #3825. Addresses the three slash-command hints in #3479; the other strings reported there remain outside this PR. ## Approach Exact entries leave `Open {0}` interpolation intact for user-provided titles. The regression test obtains registry hints from `getSlashCommands()` and literal composer hints from the TypeScript AST. It checks exact coverage and translated output for all 17 declared entries, including `/export` and demo-only `/subagents`. ## Validation Head `3e79d0d0ca470e17e0cd29638f52552386d1ee44`; base `7ddc17a38fe7f31637e895ecfba58c2cd43d65ec`. Ubuntu 24.04.3, Node.js 24.19.0. Review performed on 2026-10-24. No source changes were needed in this review. **Passed:** - From `apps/host`: `node --test tests/chat-shortcuts.test.mjs tests/languages-and-catalog.test.mjs tests/slash-commands.test.mjs tests/language-preferences.test.mjs` — **19 passed**. - `npm run typecheck`, `npm run build`, and repository `git diff --check` passed; Vite reports a nonfatal large-chunk warning. - Real Chromium against the built UI and the existing isolated preview host: all **17 menu entries in all 8 languages** match their catalogs, with stable command tokens. This uses simulated hardware/model data and makes no inference claim. - Chinese and Russian: filtering, Escape dismissal, Enter/Tab selection, mouse navigation through six routes, and `/new` preserving the original conversation passed. English-to-Chinese live language switching and reload persistence passed. No console errors or page errors were captured. - The same browser driver on the base reproduces all seven differing hints in Chinese, Japanese, Spanish, Russian, Portuguese and Korean, and six in German. German `/skills` has the same correct output through its existing template. - Explicit interpolation checks preserve artifact/media titles such as `Models`; the UI check also preserves a conversation titled `Models`. **Failed:** - `node --test tests/app-ui.test.mjs tests/timeskip-real.test.mjs` gives **14 passed / 2 failed on both base and head**, under the same environment and dependency installation. Failures are the `uv_interface_addresses` permission error and the grandchild-process stop assertion. No skips or weakened assertions were added. - The earlier full `npm test` run on this same head remains **973 passed, 3 failed, 104 skipped**. Its additional 20 ms Quit timing failure did not occur in this review's isolated comparison. The full suite has not been reclassified as passing. - GitHub currently shows 3 workflows awaiting maintainer approval. The intake check passed and its sweep was skipped; this is not a completed upstream CI run. **Not run:** - Native Windows/Tauri WebView acceptance. - A full-suite run on an unrestricted local host. - Interactive artifact/media preview title checks; those title contracts have unit coverage only. ## Limits The previous missing browser evidence is now supplied by the isolated Chromium run. Keep the draft until the contributor has reviewed the change and confirmed the remaining platform/full-suite scope. Catalog matching does not substitute for a native speaker's translation review. No backend, model or GPU compatibility claim is made. AI assistance: OpenAI Codex prepared the change and this verification. Commands and browser assertions were actually executed; retained failures remain failures. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:39:09 +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#4803
No description provided.