Feat/rtl indic script support(#1259)
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.jsonwith 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
useScriptStylehook 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 stylingLocalizedContent: For rendering HTML content with script support
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.
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.
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.