Skip to content

chore: use full-width punctuation in Chinese text - #1963

Open
lmliheng wants to merge 1 commit into
reactjs:mainfrom
lmliheng:chore/fullwidth-punctuation
Open

lmliheng wants to merge 1 commit into
reactjs:mainfrom
lmliheng:chore/fullwidth-punctuation

Conversation

@lmliheng

@lmliheng lmliheng commented Oct 7, 2026

Copy link
Copy Markdown

Chinese sentences on these pages mixed half-width , ; : ? ! into otherwise full-width text (位置,而不是, 支持?, 解决方案! 那便是), and a space followed the stray mark. The copywriting rules linked from TRANSLATION.md ask for the opposite — full-width punctuation between Chinese, and no space after full-width punctuation — so the marks are now , ; : ? ! and the following space is dropped: 位置,而不是, 支持?, 解决方案!那便是.

Scope:

  • only punctuation that sits directly next to a Chinese character is converted, so English commas between English words (React, Vue) and colons inside URLs are left alone;
  • {/*anchor*/} comments are not touched, so no anchor or link target changes;
  • headings that ended in a half-width ? are included (#### React 为何侧重于纯函数?{/*…*/}).

89 marks across 41 files, plus one CJK/number spacing fix in reference/react/StrictMode.md (增加到了2个 → 增加到了 2 个).

Checked with yarn lint, npx eslint "src/content/**/*.md" and yarn prettier:diff — all pass.

Chinese sentences in these pages mixed half-width , ; : ? ! into otherwise
full-width text. Converted the ones that sit next to Chinese characters to
,;:?! and dropped the space that followed them, as required by the
Chinese copywriting rules linked from TRANSLATION.md. The comma, semicolon,
colon and question mark inside headings are covered too; the {/*anchor*/}
comments are untouched, so no link target changes.

Also added the missing space between the Chinese text and the number in
reference/react/StrictMode.md.
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
zh-hans-react-dev Ready Ready Preview Oct 7, 2026 11:46pm UTC

Request Review

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

This branch was successfully deployed

1 active deployment
Preview – zh-hans-react-dev — e9b0cd18 Deployed Oct 7, 2026 by vercel[bot]
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