mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3860] [CLOSED] [GUI] Complete slash-command localization across all eight languages #4803
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#4803
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?
📋 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 hints3e79d0d[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 toOpen {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
/skillsalready 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 fromgetSlashCommands()and literal composer hints from the TypeScript AST. It checks exact coverage and translated output for all 17 declared entries, including/exportand demo-only/subagents.Validation
Head
3e79d0d0ca470e17e0cd29638f52552386d1ee44; base7ddc17a38fe7f31637e895ecfba58c2cd43d65ec. Ubuntu 24.04.3, Node.js 24.19.0. Review performed on 2026-10-24. No source changes were needed in this review.Passed:
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 repositorygit diff --checkpassed; Vite reports a nonfatal large-chunk warning./newpreserving the original conversation passed. English-to-Chinese live language switching and reload persistence passed. No console errors or page errors were captured./skillshas the same correct output through its existing template.Models; the UI check also preserves a conversation titledModels.Failed:
node --test tests/app-ui.test.mjs tests/timeskip-real.test.mjsgives 14 passed / 2 failed on both base and head, under the same environment and dependency installation. Failures are theuv_interface_addressespermission error and the grandchild-process stop assertion. No skips or weakened assertions were added.npm testrun 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.Not run:
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.