Uh oh!
There was an error while loading. Please reload this page.
feat(i18n): Add Hebrew language support with RTL handling - #39423
feat(i18n): Add Hebrew language support with RTL handling#39423toyro396133 wants to merge 3 commits into
Conversation
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
ce50c96 to
8192f5eCompareThanks for updating your PR! It now meets our contributing guidelines. 👍 |
Add comprehensive Hebrew (he) locale support across all packages including: - Hebrew added to locale arrays in translate-app.ts, app/context/language.tsx, console/app/src/lib/language.ts, web/src/i18n/locales.ts, and web/astro.config.mjs - Created Hebrew translation files for app, ui, desktop, console, stats, and web packages - Added RTL support with dir=rtl for Hebrew in app and desktop packages - Created Hebrew glossary file with RTL guidance and plural form handling - Updated sidebar translations in astro.config.mjs for Hebrew - Translated 434 critical strings manually from English to Hebrew - 74 technical strings kept in English (key names, brand names, placeholders, URLs) as per professional standards - Fixed syntax errors in Hebrew translation file (escaped quotes, newlines) - Fixed duplicate language entries in astro.config.mjs - Fixed quality issues: corrected partial translations, mixed Hebrew/English strings, and garbled brand names - Fixed WSL onboarding strings that had 'פתחCode' instead of 'OpenCode' - Fixed workspace/session delete/reset strings that were mixed Hebrew/English - Fixed toast messages that had partial English text - Fixed stats package Hebrew file with missing model.* keys and Arabic placeholders - Added 41 missing translation keys to stats Hebrew file with proper Hebrew translations - Created Hebrew documentation directory with critical documentation files - Translated index.mdx (intro), cli.mdx (CLI documentation), config.mdx (config documentation), commands.mdx (custom commands), providers.mdx (LLM providers), troubleshooting.mdx (common issues), and zen.mdx (OpenCode Zen) to Hebrew - Fixed mixed Hebrew/English strings in translations (e.g., 'מודלs' → 'מודלים', 'התחברed' → 'מנותק') - Fixed English terms in Hebrew translations (e.g., 'ה-diff' → 'השוואה', 'Diff' → 'השוואה') - Added comprehensive RTL CSS support for buttons, dialogs, tables, forms, and other UI components - Fixed critical syntax errors: unterminated strings, literal newlines, unescaped quotes in translation files - Fixed stats Hebrew file: unterminated quote → escaped quote, Arabic text → Hebrew translation - Fixed app Hebrew file: newlines in error messages → escaped newlines, unescaped quotes in placeholder → escaped - Added missing translation keys to stats Hebrew file to match English dictionary type requirements - Fixed duplicate property names in stats Hebrew translation file - Completely rebuilt stats Hebrew translation file to match English dictionary structure - Added remaining missing keys: model.geoDescription, model.newThisWeek, model.pdf, model.peersDescription, model.recentShare, model.recentShareDescription, model.sameAsPreviousWeek, model.tokensSession, model.totalSpend, model.totalSpendLabel, model.uniqueUsers, model.vsPreviousWeek, model.worldMap, format.tokens, format.users - Fixed duplicate model.uniqueUsers, model.dailyTokenChart, model.dailyUserChart properties - Rebased changes onto latest upstream/dev branch for compatibility Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Fix critical bugs: added Hebrew to console i18n resolver, fixed delete/reset dialogs to include name placeholder, fixed error messages to include interpolation placeholders, fixed model.vsPreviousWeek to include change placeholder, fixed prompt placeholder escaping, added language.he key to English dictionary, fixed truncated error strings, fixed Arabic text in Hebrew stats page.
israel-Life
commented
Jul 29, 2026
@toyro396133 זה מאוד חשוב לדוברי השפה העברית שיוסיפו אותה לממשק תודה על התרומה |
Amlaach
commented
Aug 2, 2026
Just checking in to see if there's been any update on this PR. This feature would significantly improve my workflow, so I'm really looking forward to it. Thanks for your work! |
Lev-Good
commented
Aug 25, 2026
Hi! Thanks for starting this — Hebrew support is really important to the community, and I opened #42447 for it as well. I noticed this PR currently has merge conflicts against I'd be happy to help get this merged:
Would you prefer to update this PR, or should I open a follow-up with these changes? Happy to help either way. תודה על העבודה — עברית חשובה לקהילה! 🇮🇱 |
Issue for this PR
None (new language support)
Type of change
What does this PR do?
This PR adds comprehensive Hebrew (he) language support to OpenCode across all packages. The changes include:
The changes work by:
How did you verify your code works?
Screenshots / recordings
N/A (language support feature, no UI screenshots needed)
Checklist