Repository navigation
docs(zh): translate remaining English page titles - #1238
Merged
Merged
Conversation
Three Chinese pages still had an English title in their frontmatter while the body heading was already translated: read/csv.md CSV -> 读取 CSV 文件 write/csv.md CSV -> 写入 CSV 文件 read/sheet.md Sheet -> Sheet 页 The title feeds both the page <title> and the sidebar label, so the Chinese site showed English entries in the navigation. "Sheet" is kept as-is: it is the established term in the Chinese docs (412 occurrences, versus 6 for 工作表), and the heading already reads "Sheet 页". Only the missing translation is added.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Three Chinese pages still carry an English
titlein their frontmatter, even though the body heading is already translated:title# headingsheet/read/csv.mdCSV# 读取 CSV 文件sheet/write/csv.mdCSV# 写入 CSV 文件sheet/read/sheet.mdSheet# Sheet 页The frontmatter
titlefeeds both the page<title>and the sidebar label (the sidebar references these docs by id, without an explicitlabel), so the Chinese navigation currently showsCSV/CSV/Sheetnext to fully translated pages.Change
Align
titlewith the existing heading:read/csv.md:CSV→读取 CSV 文件write/csv.md:CSV→写入 CSV 文件read/sheet.md:Sheet→Sheet 页Sheetis deliberately kept untranslated: it is the established term in the Chinese docs (412 occurrences, against 6 for工作表), and the heading already readsSheet 页. Translating it to工作表here would make the title inconsistent with the rest of the site. Only the missing Chinese is added.Verification
No English-only titles left under
website/i18n/zh-cn/.../current:And
titlenow equals the H1 for all three pages:Risk
None. Frontmatter only — no body content changes. The visible effect is that these three entries in the Chinese sidebar switch from English to Chinese.