Skip to content

Register zh translations for Prompt, Markdown access, and API catalog discovery in nav #5337

Merged
devalog merged 1 commit intomainfrom
fern/investigate-zh-translation-fallback
May 4, 2026
Merged

Register zh translations for Prompt, Markdown access, and API catalog discovery in nav #5337
devalog merged 1 commit intomainfrom
fern/investigate-zh-translation-fallback

Conversation

@fern-api
Copy link
Copy Markdown
Contributor

@fern-api fern-api Bot commented May 4, 2026

Summary

The pages /learn/zh/docs/ai-features/markdown, /learn/zh/docs/ai-features/api-catalog, and /learn/zh/docs/writing-content/components/prompt were rendering in English even though Chinese MDX translations existed at fern/translations/zh/products/docs/pages/.... PR #5325 added the translated content but did not register the corresponding entries in the Chinese localized nav file at fern/translations/zh/fern/products/docs/docs.yml. Without those nav entries, Fern's localized build for zh did not pick up the translated content and fell back to the English source.

Changes

Added the three missing entries to fern/translations/zh/fern/products/docs/docs.yml so its structure matches the source fern/products/docs/docs.yml:

  • 组件 (Components) section: added 提示词组件 (slug: prompt) between 参数字段 and 可运行端点.
  • AI 功能 (AI features) section: added Markdown 访问 (slug: markdown) between AI 生成的示例 and the llms-txt section, and API 目录发现 (slug: api-catalog) between MCP 服务器 and the Ask Fern section.

After this change the zh navigation has the same number and order of entries as the English source for both sections, so Fern can route the localized URLs to the existing Chinese MDX files.

Verification

  • fern/translations/zh/fern/products/docs/docs.yml parses as valid YAML.
  • Walked the AI 功能 and 组件 sections side-by-side against the English nav and confirmed each entry aligns 1:1 (8 vs. 8 items in AI features, 30 vs. 30 in Components).

Requested by: Fern Support

@fern-api fern-api Bot requested a review from devalog as a code owner May 4, 2026 12:26
@fern-api
Copy link
Copy Markdown
Contributor Author

fern-api Bot commented May 4, 2026

Requested by: devin
Slack thread: View conversation

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

@devalog devalog merged commit 51ceb71 into main May 4, 2026
2 checks passed
@devalog devalog deleted the fern/investigate-zh-translation-fallback branch May 4, 2026 15:12
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.

1 participant