Skip to content

Add Simplified Chinese localization through Stage 0 - #383

Merged
Adrianamm merged 3 commits into
frcsoftware:mainfrom
smilelsb:zh-cn-pr-ready
Nov 9, 2026
Merged

Adrianamm merged 3 commits into
frcsoftware:mainfrom
smilelsb:zh-cn-pr-ready

Conversation

@smilelsb

Copy link
Copy Markdown
Contributor

Description

What changed?

  • Adds Simplified Chinese (zh-CN) as a Starlight locale. Translated pages live in src/content/docs/zh-cn/ and are served at /zh-cn/.
  • Translates the home page, Getting Started, the learning-course overview, all of Stage 0, and the glossary (20 pages).
  • Translates the sidebar labels, Starlight UI strings (src/content/i18n/zh-CN.json), and the Chinese glossary overrides (src/data/glossary.zh-cn.yaml).
  • Updates localizeHref() so it accepts both the zh-cn route and the zh-CN language tag. Component links keep the locale prefix.

Sidebar labels for later sections are included. Stage 1, Stage 2, the educators guide, best practices, the other resource pages, and the contribution pages are still English.

Configuring this locale turns on the language control already present in Header.astro. This pull request does not add a new header component.

Why?

The site's locale structure is ready for translations, and the maintainers invited a translation pull request. Stage 0 and the sidebar have been reviewed, so this pull request adds Simplified Chinese through the end of Stage 0. English pages stay as they are. Later stages can each be submitted in their own pull request.

Meta

Merge checklist:

Add zh-CN UI strings, navigation, glossary entries, and translated Learning Course pages through Stage 0.
添加 zh-CN 界面文案、导航、术语表,以及截至阶段 0 的学习课程译文。
@github-actions github-actions Bot added Learning Course Relating to the main learning course Stage 0 labels Oct 21, 2026
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

🌐 Preview URL: https://pr-383.frcsoftware.org

Changed pages

Fullwidth punctuation after the bare URL was parsed as part of the address, so the link check received a 404.
@github-actions github-actions Bot added Backend Anything relating to non-content aspects of the website or its infrastructure Translations For any translated content on the website and removed Learning Course Relating to the main learning course labels Nov 9, 2026
@zachwaffle4
zachwaffle4 requested a review from Adrianamm November 9, 2026 19:24
@Adrianamm
Adrianamm merged commit 5b420d7 into frcsoftware:main Nov 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backend Anything relating to non-content aspects of the website or its infrastructure Curriculum material Stage 0 stage0 Translations For any translated content on the website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants