fix(i18n): exclude SDK files from automatic translation to prevent corruption#1634
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Greptile Overview
Summary
Added an exclusion pattern to the i18n configuration to prevent SDK documentation files from being automatically translated. SDK files contain code examples and technical content that can be corrupted by automatic translation.
- Excludes
content/docs/[locale]/sdks/*.mdxfrom the translation pipeline - Affects Python and TypeScript SDK documentation across all locales (en, es, fr, zh, ja, de)
- Pattern correctly matches the existing SDK directory structure
Confidence Score: 5/5
- This PR is safe to merge with minimal risk
- The change is a simple configuration addition that adds an exclusion pattern to prevent SDK files from being automatically translated. The pattern correctly matches the existing directory structure and is properly formatted JSON.
- No files require special attention
Important Files Changed
File Analysis
| Filename | Score | Overview |
|---|---|---|
| apps/docs/i18n.json | 5/5 | Added exclusion pattern for SDK files to prevent automatic translation corruption |
Sequence Diagram
sequenceDiagram
participant Dev as Developer
participant Config as i18n.json
participant Pipeline as Translation Pipeline
participant SDK as SDK Files
participant Other as Other Docs
Dev->>Config: Add exclude pattern for sdks/*.mdx
Config->>Pipeline: Configure exclusion rules
Pipeline->>Other: Process translation
Other-->>Pipeline: Translated content
Pipeline->>SDK: Check if matches exclude pattern
SDK-->>Pipeline: Match found - skip translation
Note over SDK: SDK files remain untranslated<br/>Code examples preserved
1 file reviewed, no comments
added 2 commits
October 14, 2025 19:08
Sg312
pushed a commit
that referenced
this pull request
Oct 15, 2025
…rruption (#1634) * fix(i18n): exclude SDK files from automatic translation to prevent corruption * fix(i18n): temporarily disable auto-translate action while fixing translation corruption * disable i18n action
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
exclude SDK files from automatic translation to prevent corruption
Type of Change
Testing
N/A
Checklist