Skip to content

[fix](i18n) fix Chinese sidebar translations for current and 4.x#3558

Open
dataroaring wants to merge 1 commit intomasterfrom
fix/zh-sidebar-translations
Open

[fix](i18n) fix Chinese sidebar translations for current and 4.x#3558
dataroaring wants to merge 1 commit intomasterfrom
fix/zh-sidebar-translations

Conversation

@dataroaring
Copy link
Copy Markdown
Contributor

Summary

  • Add 32 missing Chinese translations for sidebar categories that were displaying English on the zh-CN site (e.g., Performance → 性能优化, Query Performance → 查询性能, Caching → 查询缓存, Join Optimization → Join 优化)
  • Remove 48 orphaned translation keys left behind from sidebar restructuring that no longer match any sidebar label (e.g., old Tuning/Tuning Plan/Tuning Execution hierarchy, renamed Distincting CountsDistinct Counts, Materialize ViewMaterialized View)
  • Applies to both current.json and version-4.x.json

Details

Missing translations added (32)

New sidebar categories from the Performance section restructuring, Ecosystem section, Lakehouse catalogs, and data types that had no Chinese translation:

English Chinese
Performance 性能优化
Getting Started with Performance Tuning 性能调优入门
Query Performance 查询性能
Schema & Index Optimization Schema 与索引优化
Materialized View 物化视图
Async Materialized View 异步物化视图
Join Optimization Join 优化
Caching 查询缓存
Execution Tuning 执行调优
High Concurrency & Point Queries 高并发与点查
Distinct Counts 高效去重
Query Profile & Parameters 查询 Profile 与参数
Load Performance 导入性能
Optimization Technology Principles 优化技术原理
Read-Write Separation 读写分离
BI BI 工具
SQL Clients SQL 客户端
More 更多
Variant Functions VARIANT 函数
Binary Data Type 二进制类型
VARIANT / VARIANT Reference VARIANT / VARIANT 参考

Proper nouns kept as-is: connector names (Spark/Flink/Kafka), catalog names (Iceberg/Paimon/Hudi/MaxCompute), database names (MySQL/PostgreSQL).

Orphaned keys removed (48)

Translation keys that no longer match any sidebar label due to renames, restructuring, or removal. Examples:

  • Async-Materialized View (hyphen removed in sidebar)
  • Distincting Counts → renamed to Distinct Counts
  • Materialize View → renamed to Materialized View
  • VARIANT Functions → case changed to Variant Functions
  • Old Performance hierarchy: Queries Acceleration, Tuning, Tuning Plan, Tuning Execution, Performance Tuning Overview
  • Removed categories: DDL, DML, Create, Drop, Show, Alter, Load, etc.

Test plan

  • Verify Chinese site sidebar renders all categories in Chinese (no English fallback labels)
  • Verify English site is unaffected
  • Check both /docs/ (current) and /docs/4.x/ versions

🤖 Generated with Claude Code

Add 32 missing Chinese translations for sidebar categories that were
showing English on the Chinese site, and remove 48 orphaned translation
keys left behind from sidebar restructuring.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 16, 2026 07:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the zh-CN Docusaurus docs sidebar translations to match the latest sidebar category labels for both the current and 4.x doc versions, eliminating English fallbacks and removing unused/orphaned keys.

Changes:

  • Add missing zh-CN translations for newly introduced/renamed sidebar categories (notably Performance tuning, Ecosystem, catalogs, and VARIANT-related sections).
  • Remove translation keys that no longer correspond to any sidebar label after sidebar restructuring/renames.
  • Apply the same translation set to both current.json and version-4.x.json for consistency.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
i18n/zh-CN/docusaurus-plugin-content-docs/current.json Adds missing sidebar category translations and removes orphaned keys for the current docs version.
i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x.json Mirrors the same sidebar translation additions/removals for the 4.x docs version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants