mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2294] [CLOSED] web: an optional interface language (zh-CN first), English unchanged #3967
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#3967
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/2294
Author: @wulezhi-hui
Created: 10/13/2026
Status: ❌ Closed
Base:
main← Head:webui-zh-CN📝 Commits (1)
62c7c07web: an optional interface language (zh-CN first), English unchanged📊 Changes
6 files changed (+537 additions, -12 deletions)
View changed files
📝
serve/web/app.js(+9 -9)➕
serve/web/i18n.js(+523 -0)📝
serve/web/index.html(+1 -0)📝
serve/web/monitor.html(+1 -0)📝
serve/web/monitor.js(+2 -2)📝
serve/web/tokens.css(+1 -1)📄 Description
A small layer (serve/web/i18n.js) walks the DOM and replaces the interface's English text with the chosen language. Chat messages, reasoning, tool output, code blocks and form fields are never touched, and a MutationObserver handles text the app adds later (toasts, status pills, monitor rows).
Title
Issue: Resolves #
Summary
What changed
Extra Notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.