Skip to content

fix: restore Chinese Ask streaming copy - #2949

Merged
esokullu merged 2 commits into
webbrain-one:mainfrom
xianhongtao:codex/fix-ask-streaming-locales
Aug 29, 2026
Merged

fix: restore Chinese Ask streaming copy#2949
esokullu merged 2 commits into
webbrain-one:mainfrom
xianhongtao:codex/fix-ask-streaming-locales

Conversation

@xianhongtao

Copy link
Copy Markdown
Contributor
图片

Copilot AI balanced review requested due to automatic review settings August 29, 2026 13:06
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

@xianhongtao is attempting to deploy a commit to the esokullu's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

PR webbrain-one#2949 fixed 'st.display.openai_ask_streaming.label'/'.desc' in zh.js
(chrome + firefox), which had shipped as literal runs of '?' instead of
translated Chinese text. The existing locale-parity test only checks key
presence and {placeholder} token parity, so a garbled '?'-only value (zero
placeholders, matching its English source) passes it trivially and would
not have caught this bug, or would catch a recurrence.

Add a small, targeted regression test scoped to the exact key/locale this
PR restores. Intentionally not extended to all locales/keys: ar, bn, fa,
he, hi, ja, ko, ru, th, uk currently have the identical unfixed corruption
for this same key and are out of scope for this PR.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@esokullu

Copy link
Copy Markdown
Collaborator

thank you @xianhongtao I don't know when this happened. Very valuable contribution. Many thanks! Merging now.

@esokullu
esokullu merged commit ccdbd19 into webbrain-one:main Aug 29, 2026
2 of 3 checks passed
esokullu added a commit that referenced this pull request Aug 29, 2026
'st.display.openai_ask_streaming.label'/'.desc' have shipped as literal runs
of '?' (e.g. "? Ask ????????") since commit e9643a6 ("Add 76 LLM providers
and Ask streaming") in ar, bn, fa, he, hi, ja, ko, ru, th, uk — in both the
chrome and firefox locale directories (20 files, 40 lines). PR #2949 restored
only zh; this restores the remaining 10 locales with native-quality copy via
an idempotent replace-in-place pass added to
scripts/i18n-perm-translations.mjs.

Also generalize the PR #2949 mojibake regression guard from zh-only to every
locale in test/run.js, so a recurrence of '?'-run corruption fails the build.
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.

3 participants