Skip to content

Add locale routes for generated API pages - #352

Closed
Blargian wants to merge 1 commit into
mainfrom
codex/localized-api-navigation
Closed

Blargian wants to merge 1 commit into
mainfrom
codex/localized-api-navigation

Conversation

@Blargian

Copy link
Copy Markdown
Member

Generated Cloud and ClickStack OpenAPI operation pages bypassed the normal localized content route and explicitly disabled the language picker. Emit locale-prefixed operation routes in translation builds, expose all configured languages from English API pages, and render the English operation with the locale-specific untranslated-page notice at localized URLs. Exclude these generated routes from the ordinary locale catch-all to prevent collisions.

Validated with pnpm run typecheck, a focused English build, and a focused Spanish translations build. The built Spanish artifact contains the localized API route, language alternatives, and translated fallback notice.

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Show all documentation languages on generated API reference pages and provide working localized fallback routes.

@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

🕵

Preview Deployment Components Updated (UTC)
Docs preview 🟢 Ready English: 🟢 Ready; translations: Production fallback 2026-09-10 17:43 UTC

@Blargian

Copy link
Copy Markdown
Member Author

🕵 Consolidated into #350 so the translation and generated API locale work remains in the existing pull request.

@Blargian Blargian closed this Sep 10, 2026
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