Skip to content

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

exclude SDK files from automatic translation to prevent corruption

Type of Change

  • Bug fix

Testing

N/A

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Oct 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs Ready Ready Preview Comment Oct 15, 2025 2:11am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/*.mdx from 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
Loading

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@waleedlatif1 waleedlatif1 merged commit d325fdd into staging Oct 15, 2025
3 of 4 checks passed
@waleedlatif1 waleedlatif1 deleted the fix/internationalization branch October 15, 2025 02:09
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
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.

2 participants