docs(sdk): mirror SDK reference into every locale with prefixed paths#225
Merged
Conversation
Emit unique per-locale page paths for the SDK reference and copy the English mdx into each non-default locale directory. Prevents duplicate page records in llms-full.txt and fixes the language switcher falling back to the Documentation tab instead of the in-locale SDK page. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
adamfri
approved these changes
Jul 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
es/,fr/, …) so each locale has its own unique page recordssdk/docs/paths (instead of globally) so translated labels are preservedWhy
Pointing multiple locales at the same un-prefixed English SDK paths made Mintlify emit each SDK page N times in
llms-full.txtand caused the language switcher to bounce out of the SDK tab back to the Documentation tab. Unique per-locale paths + English-content copies fix both.Test plan
npm run create-docs-localagainst pairedmintlify-docsworktreedocs.json— each language's SDK Reference group points at its own prefixed pathsmintlify dev— switch language on an SDK page and confirm it stays on the SDK page (no fallback to Documentation)🤖 Generated with Claude Code