Skip to content

i18n: add zh-Hans widget translation - #270

Open
Goldloli wants to merge 1 commit into
Dpro-at:mainfrom
Goldloli:feat/zh-hans-widget
Open

Goldloli wants to merge 1 commit into
Dpro-at:mainfrom
Goldloli:feat/zh-hans-widget

Conversation

@Goldloli

@Goldloli Goldloli commented Nov 1, 2026

Copy link
Copy Markdown

Pull request

What does this change, and why?

Adds locales/zh-Hans/widget.json, the Simplified Chinese translation of the eight chat-widget strings, so a reader who picks Chinese in the widget no longer sees English chrome. The keys and structure are copied from locales/en/widget.json unchanged; only the values are translated. zh-Hans is one of the empty community locale directories, so this is a new file rather than an edit to an existing translation.

Related issue

Refs #29 — the issue stays open for the remaining files; this PR is one file, as the issue asks.


Contributor License Agreement — required

Every contribution needs this before it can be merged, including one-line fixes.
You keep full ownership and copyright of your work. See CLA.md.

  • I have read the CLA document and I hereby sign the CLA.

Checklist

  • Everything I wrote — code, comments, commit messages — is in English (the translated values are Chinese by design; all repository-facing text is English)
  • This PR does one thing (one locale file)
  • I have not added any credential, real recording, or real transcript
  • New configuration is documented in .env.example with a safe placeholder — N/A, no configuration added

If this touches the call path (agent/):

  • N/A — this PR only adds a translation file under locales/.

Latency impact: none, this does not touch the call path.


Before you open this

Verification run locally:

node scripts/check-locales.mjs --locale zh-Hans
#   zh-Hans  ░░░░░░░░░░░░░░░░░░░░   0%   8/2466   community
#   2458 key(s) to translate, in 34 file(s)

node scripts/check-placeholders.mjs --locale zh-Hans
#   8 translated string(s) across 1 locale(s). Placeholders all match.

git diff --stat
#  locales/zh-Hans/widget.json | 10 ++++++++++
#  1 file changed, 10 insertions(+)

git diff touches only locales/zh-Hans/widget.json. Keys and structure are untouched; a partial language breaks nothing and is registered by maintainers once complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant