feat(i18n): Add Hebrew language support with RTL handling - #39423
Open
toyro396133 wants to merge 3 commits into
Open
feat(i18n): Add Hebrew language support with RTL handling#39423toyro396133 wants to merge 3 commits into
toyro396133 wants to merge 3 commits into
Conversation
Contributor
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
toyro396133
force-pushed
the
dev
branch
7 times, most recently
from
July 29, 2026 02:39
ce50c96 to
8192f5e
Compare
This was referenced Jul 29, 2026
Contributor
|
Thanks 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.
|
@toyro396133 זה מאוד חשוב לדוברי השפה העברית שיוסיפו אותה לממשק תודה על התרומה |
|
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! |
6 tasks
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.
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