dengliming opened a new issue, #1140:
URL: https://github.com/apache/shenyu-website/issues/1140
The zh locale shows English in a number of places, and some zh docs are
missing.
## Translation ids used in code but missing from `i18n/zh/code.json`
- `src/components/Features.tsx:22-78` — all 8 homepage feature subtitles
("Support for Apache® Dubbo™…", "Sign, OAuth 2.0…", "Request, response,
parameter mapping…", "Tracing, metrics, logging plugin", "Dynamic traffic
control…", "Plugin hot-swapping, dynamic loading", "NGINX, Docker, Kubernetes",
"provides .NET, Python, Go, Java client…"). The zh home page shows Chinese
titles over English text.
- `src/components/DownloadCompoent.tsx:8` "Source Codes"
- `src/components/Footer.tsx:31` "Blog"
- `src/pages/index.tsx:67` "Github"
- `src/data/event.js` "Release Apache Shenyu 2.7.0.3" / "2.7.0.2"
## Strings with no `<Translate>` at all
- `src/pages/versions.tsx` — the whole page (title, headings, paragraphs,
"Documentation", "Release Notes").
- `src/components/Footer.tsx:14` copyright line, `:26` "Shenyu" column
title, `:39-40` "Github" / "Issue Tracker".
- `src/pages/event.tsx:35` event descriptions.
## Wrong / questionable zh translations in `code.json`
- line 541: "Apache Shenyu **Ningx** 1.0.0-1 发布" → "Nginx".
- lines 9-10: "Docusaurus with Keytar" left untranslated (it is also a
template leftover, see the cleanup issue).
- line 543 "Events" → "事件" and navbar "Event" → "事件"
(`i18n/zh/docusaurus-theme-classic/navbar.json:19`); the ASF menu already uses
"活动".
- line 588 "Extensions" → "拓展" (should be "扩展"); line 6 "Get Started" → "开始"
(suggest "快速开始"); line 382 "Integration Test Analysis" → "集成剖析测试" (should be
"集成测试剖析"); line 561 "Subscribe mailing list" → "邮件订阅组" vs footer.json "订阅邮件组".
- line 2 hero title and lines 283/286 (users page) use half-width `,` / `:`
in Chinese text.
- Blog abstracts are swapped: the MatchStrategy, PredicateJudge and
LoadBalance abstracts do not match their English source, and "The ShenYu
gateway uses the divide plugin…" is translated with the dubbo text.
- Dozens of stale Docusaurus template ids ("Powered by Markdown", "Built
Using React", `team.profile.*`, "Open", "High-Performance", …) are never used;
regenerate with `yarn write-translations --locale zh`.
## Missing zh version label files
`i18n/zh/docusaurus-plugin-content-docs/` has no `version-2.7.0.json`,
`version-2.7.0.1.json`, `version-2.7.0.2.json`, `version-2.7.0.3.json`. Because
sidebars are autogenerated and category labels come from these files, the zh
sidebar of those four versions shows English category names ("Plugin Center",
"Quick Start", …). Generate them with `yarn write-translations --locale zh` and
translate.
## zh docs missing (fall back to English)
- current:
`plugin-center/ai/{ai-prompt,ai-request-transformer,ai-response-transformer,ai-token-limiter}`,
`plugin-center/mcp/mcp-server-plugin`,
`plugin-center/observability/logging-clickhouse`,
`plugin-center/proxy/param-transform-plugin`,
`plugin-center/security/{basic-auth-plugin,key-auth-plugin}` (the whole `ai/`
and `mcp/` folders incl. `_category_.json`).
- version-2.7.1: 8 pages (ai/, mcp/, `quick-start-mcpServer.md`,
`user-guide/proxy/mcp-tool-proxy.md`).
- No zh folder at all for `shenyuNginx` and `shenyuClientRust`.
- `i18n/zh/.../version-2.4.0/plugin-center/rpc-proxy/divide-plugin.md` has
no en counterpart and is never rendered.
## Team page
- `src/pages/team.mdx` (en) is missing committer **yuluo-yx**, which the zh
page has (lines 469-476).
- zh `team.mdx:472`: the Apache ID link goes to `#xcsnx` but the visible
text is "yuluo-yx".
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]