Update 101 stale zh translations to match current EN source - #5515
Conversation
|
🌿 Preview your docs: https://fern-preview-devin-fix-broken-links.docs.buildwithfern.com/learn |
|
Verified all 5 broken links are fixed using the preview deployment:
Root cause: Fern's CAS only resolves images referenced in English source MDX. Zh translations referencing images not used in EN produced unresolved relative paths. Fix aligns zh pages with their EN counterparts. |
|
Updated approach based on @davidkonigsberg's feedback: instead of manually editing zh translation content, the fix now deletes the 4 stale zh MDX files so Fern's auto-translation falls back to the current EN source. Root cause: the zh translations were created as point-in-time snapshots (PR #5203, May 1). The EN source was updated afterward (video replaced image, live component replaced screenshot, Fern Definition card archived), but the zh translations were never synced. Preview links for verification (once preview deploys): Note: ~100 other zh translation files are also stale (EN changed since creation). This PR only addresses the 4 causing broken image links. |
Re-translates all zh MDX files whose English source changed since the initial translation batch (PR #5203, May 1). This fixes: - Broken image links (writer.mdx, runnable-endpoint.mdx, welcome.mdx, 2025-10-17.mdx) where EN switched from images to video/live components - 97 additional pages that had drifted from EN content Translations generated via Anthropic Claude API from current EN source, preserving MDX structure, component tags, and frontmatter format.
80c9bb3 to
d7969ee
Compare
There was a problem hiding this comment.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
vale
fern/translations/zh/products/sdks/generators/typescript/design.mdx|57 col 19| [FernStyles.Acronyms] 'ESM' has no definition.
fern/translations/zh/products/sdks/generators/typescript/design.mdx|418 col 16| [FernStyles.Acronyms] 'MQTT' has no definition.
fern/translations/zh/products/sdks/generators/typescript/configuration.mdx|444 col 14| [FernStyles.Acronyms] 'JSR' has no definition.
fern/translations/zh/products/sdks/generators/typescript/configuration.mdx|445 col 21| [FernStyles.Acronyms] 'JSR' has no definition.
fern/translations/zh/products/sdks/reference/generators-yml-reference.mdx|595 col 14| [FernStyles.Acronyms] 'NPM' has no definition.
fern/translations/zh/products/sdks/reference/generators-yml-reference.mdx|607 col 7| [FernStyles.Acronyms] 'NPM' has no definition.
fern/translations/zh/products/sdks/reference/generators-yml-reference.mdx|647 col 8| [FernStyles.Acronyms] 'GPG' has no definition.
fern/translations/zh/products/sdks/reference/generators-yml-reference.mdx|772 col 83| [FernStyles.Acronyms] 'MFA' has no definition.
fern/translations/zh/products/sdks/reference/generators-yml-reference.mdx|772 col 91| [FernStyles.Acronyms] 'MFA' has no definition.
fern/translations/zh/products/sdks/reference/generators-yml-reference.mdx|772 col 113| [FernStyles.Acronyms] 'MFA' has no definition.
| 您可以指定部署服务器的环境。 | ||
|
|
||
| ## 单 URL 环境 | ||
| ## 单URL环境 |
There was a problem hiding this comment.
📝 [vale] reported by reviewdog 🐶
[FernStyles.Headings] '单URL环境' should use sentence-style capitalization.
| ``` | ||
|
|
||
| ## 每个环境多个 URL | ||
| ## 每个环境多个URL |
There was a problem hiding this comment.
📝 [vale] reported by reviewdog 🐶
[FernStyles.Headings] '每个环境多个URL' should use sentence-style capitalization.
| <Note>通过提供默认环境,生成的SDK将设置为开箱即用地访问该URL。</Note> | ||
|
|
||
| ## URL 模板 | ||
| ## URL模板 |
There was a problem hiding this comment.
📝 [vale] reported by reviewdog 🐶
[FernStyles.Headings] 'URL模板' should use sentence-style capitalization.
| | `boolean` | 布尔值 true/false | | ||
| | `datetime` | [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/)。例如,`2017-07-21T17:32:28Z` | | ||
| | `date` | RFC 3339, section 5.6 日期 (YYYY-MM-DD)。例如,`2017-07-21` | | ||
| | `datetime` | [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/) 格式。例如:`2017-07-21T17:32:28Z` | |
There was a problem hiding this comment.
📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'RFC' has no definition.
| | `datetime` | [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/)。例如,`2017-07-21T17:32:28Z` | | ||
| | `date` | RFC 3339, section 5.6 日期 (YYYY-MM-DD)。例如,`2017-07-21` | | ||
| | `datetime` | [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/) 格式。例如:`2017-07-21T17:32:28Z` | | ||
| | `date` | RFC 3339, section 5.6 日期格式 (YYYY-MM-DD)。例如:`2017-07-21` | |
There was a problem hiding this comment.
📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'RFC' has no definition.
| ``` | ||
|
|
||
| ### Page "X" was removed. The previously published URL "/old" will return 404 without a redirect. | ||
| ### Page "X" was removed. The previously published URL "/old" will return 404 without a redirect. Consider adding a redirect in docs.yml to preserve existing links. |
There was a problem hiding this comment.
[FernStyles.Current] Avoid time-relative terms like 'old' that become outdated
| ``` | ||
|
|
||
| ### Page "X" was removed. The previously published URL "/old" will return 404 without a redirect. | ||
| ### Page "X" was removed. The previously published URL "/old" will return 404 without a redirect. Consider adding a redirect in docs.yml to preserve existing links. |
There was a problem hiding this comment.
📝 [vale] reported by reviewdog 🐶
[FernStyles.HeadingPunctuation] Don't use end punctuation in headings.
| title: Webhook 签名验证 | ||
| description: 在您的 Fern 生成的 SDK 中配置 webhook 签名验证,以验证 HMAC 或非对称签名、防范重放攻击并确保 webhook 真实性。 | ||
| sidebar-title: Webhook 签名验证 | ||
| description: 在你的 Fern 生成的 SDK 中配置 webhook 签名验证,验证 HMAC 或非对称签名,防止重放攻击,并确保 webhook 的真实性。 |
There was a problem hiding this comment.
📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'HMAC' has no definition.
| Fern 支持两种签名验证方法: | ||
| - **基于哈希的消息认证码(HMAC)** — 使用共享密钥的对称密钥验证 | ||
| - **非对称** — 使用 RSA、椭圆曲线数字签名算法(ECDSA)或 Ed25519 密钥的公钥验证 | ||
| - **基于哈希的消息认证码 (HMAC)** — 使用共享密钥的对称密钥验证 |
There was a problem hiding this comment.
📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'HMAC' has no definition.
| - **基于哈希的消息认证码(HMAC)** — 使用共享密钥的对称密钥验证 | ||
| - **非对称** — 使用 RSA、椭圆曲线数字签名算法(ECDSA)或 Ed25519 密钥的公钥验证 | ||
| - **基于哈希的消息认证码 (HMAC)** — 使用共享密钥的对称密钥验证 | ||
| - **非对称** — 使用 RSA、椭圆曲线数字签名算法 (ECDSA) 或 Ed25519 密钥的公钥验证 |
There was a problem hiding this comment.
📝 [vale] reported by reviewdog 🐶
[FernStyles.Acronyms] 'ECDSA' has no definition.
Summary
Re-translates all 101 zh translation files whose English source changed since the initial translation batch (PR #5203, May 1). This fixes:
writer.mdx(EN switched from screenshot to video),runnable-endpoint.mdx(EN switched from screenshot to live component),welcome.mdx(EN removed Fern Definition card with SVG),2025-10-17.mdx(EN changed runnable-endpoint image)Translations generated via Anthropic Claude API from current EN source, preserving MDX structure, component tags, frontmatter format, and the same translation style as the original batch.
Review & Testing Checklist for Human
<Steps>,<Tabs>,<Note>, etc.) are preserved correctly and not translatedNotes
See also PR #5522 which adds a CI workflow to automatically re-translate stale zh files when EN source changes on
main, preventing this from recurring.Link to Devin session: https://app.devin.ai/sessions/14ca348f182f4957985bb57cd50e0031