lingo.dev icon indicating copy to clipboard operation
lingo.dev copied to clipboard

Feat/rtl indic script support(#1259)

Open Jayant-1 opened this issue 1 month ago • 1 comments

Add RTL and Indic Script Support

fixes #1259 This PR adds comprehensive support for Right-to-Left (RTL) languages and proper rendering of Indic scripts in the Lingo.dev SDK.

Features

1. Script Configuration System

  • Added i18n-scripts.json with metadata for:
    • RTL/LTR direction settings
    • Script family identifiers
    • Font family configurations for optimal rendering

2. Utility Functions (scriptConfig.ts)

  • Script configuration loading and parsing
  • Direction detection and validation
  • Dynamic style generation based on language

3. React Integration

  • Added useScriptStyle hook for easy React integration
  • Automatic script and direction detection
  • Dynamic style application for different languages

4. New Components

  • LocalizedText: For rendering text with proper script styling
  • LocalizedContent: For rendering HTML content with script support

Jayant-1 avatar Oct 29 '25 20:10 Jayant-1

Hey @Jayant-1 please go through the comments and resolve the merge conflicts. Also ensure that you've read and are following the guidelines laid out in our contributor's guide.

sumitsaurabh927 avatar Nov 19 '25 05:11 sumitsaurabh927

Hey @Jayant-1! Just checking in - are you still working on this PR? We noticed there are some comments that may need addressing. If you need more time, no problem! Just let us know. If we don't hear back within a week, we'll close this to keep the repo tidy, but you can always reopen when ready.

github-actions[bot] avatar Dec 01 '25 00:12 github-actions[bot]

Thanks for the reminder! Yes, I’m still working on this PR. I’ll address the pending comments and push the necessary updates shortly. Please keep the PR open — I’ll complete the remaining fixes soon.

Jayant-1 avatar Dec 04 '25 10:12 Jayant-1