Repository navigation
chore(theme-translations): complete zh-Hans translations (AI-assisted) - #12828
DU8866-nice wants to merge 1 commit into
Conversation
Translate the zh-Hans theme messages that were still in English, mostly the DocSearch Ask AI strings, and fix the docs paginator ARIA label, which was translated as "文件选项卡" (file tabs) instead of a pagination label.
|
Hi @DU8866-nice! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Pre-flight checklist
Motivation
28 zh-Hans theme messages were still in English, most of them the DocSearch Ask AI strings, so a zh-Hans site showed English text in the search modal, the live code block reset button and some ARIA labels. This PR translates them.
It also fixes
theme.docs.paginator.navAriaLabel, which was translated as "文件选项卡" ("file tabs"). It is now "文档分页导航", matching the blog paginator label "博文分页导航".Left in English on purpose:
theme.SearchModal.searchBox.enterKeyHintandenterKeyHintAskAi: their values (search,enter) are keywords of the HTMLenterkeyhintattribute, which only accepts fixed values.theme.blog.author.pageTitle: it only contains placeholders.AI disclosure: the translations were drafted with Claude Code (Claude Opus 5.5) and reviewed by me, a native Chinese speaker.
Test Plan
Only message values in
locales/zh-Hans/*.jsonchange. No message ids are added or removed, and every{placeholder}from the base messages is kept.Related issues/PRs
Follows earlier zh-Hans translation updates such as #10816 and #9321.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WkzcU6qKakM6jvCoN7F1pQ
Summary by CodeRabbit