feat(i18n): Hebrew locale + full RTL support (#243)
# feat(i18n): Hebrew locale + full RTL support ## Summary This PR adds full Hebrew (he) locale support to the UI, including a complete translation of all user-facing strings and comprehensive RTL layout support across all components. ## What was done ### Hebrew translation - Full translation of all i18n message files for the `he` locale (17 translation files) - Registered the language in the i18n system and the language picker ### RTL support - Automatic direction detection (`dir="rtl"`) when Hebrew is selected - Replaced physical CSS properties (`left`/`right`) with logical equivalents (`inline-start`/`inline-end`) across the project - Fixed resize direction, file path alignment, and textarea padding - Fixed navigation button positioning in textarea for RTL - Fixed scrollbar direction in RTL - Fixed code block direction and selector alignment - Fixed Monaco editor direction in the file viewer - Auto-detect text direction in reasoning block (`dir="auto"` + `unicode-bidi: plaintext`) ### Adapted components - `session-layout` — sidebar and resize handle - `prompt-input` — text direction and buttons - `message-base` — message blocks and reasoning - `message-timeline` — timeline bar - `right-panel` — right side panel - `tool-call` — tool call display - `settings-screen` — settings page - `selector` — selection component - `instance-shell` — main shell ## New files ``` packages/ui/src/lib/i18n/messages/he/ advancedSettings.ts app.ts commands.ts dialogs.ts filesystem.ts folderSelection.ts index.ts instance.ts loadingScreen.ts logs.ts markdown.ts messaging.ts remoteAccess.ts session.ts settings.ts time.ts toolCall.ts ``` ## Suggested testing - Switch language to Hebrew and verify all strings are translated - Verify RTL layout is correct across all screens (session, settings, file viewer) - Verify that English text inside a reasoning block is displayed LTR - Switch back to English and verify everything returns to LTR --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Shantur Rathore <i@shantur.com>
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
padding: 1.25rem;
|
||||
background:
|
||||
linear-gradient(180deg, color-mix(in oklab, var(--surface-secondary) 92%, var(--accent-primary) 8%), var(--surface-secondary));
|
||||
border-right: 1px solid var(--border-base);
|
||||
border-inline-end: 1px solid var(--border-base);
|
||||
}
|
||||
|
||||
.settings-screen-nav-header {
|
||||
@@ -121,6 +121,9 @@
|
||||
color: var(--text-primary);
|
||||
transform: translateX(2px);
|
||||
}
|
||||
[dir="rtl"] .settings-nav-button[data-selected="true"] {
|
||||
transform: translateX(-2px);
|
||||
}
|
||||
|
||||
.settings-nav-button-icon {
|
||||
width: 1rem;
|
||||
@@ -360,7 +363,7 @@
|
||||
border: 1px solid var(--border-base);
|
||||
background: var(--surface-base);
|
||||
color: var(--text-primary);
|
||||
text-align: left;
|
||||
text-align: start;
|
||||
transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
@@ -418,7 +421,7 @@
|
||||
}
|
||||
|
||||
.settings-choice-check {
|
||||
margin-left: auto;
|
||||
margin-inline-start: auto;
|
||||
color: var(--accent-primary);
|
||||
opacity: 0;
|
||||
}
|
||||
@@ -488,7 +491,7 @@
|
||||
.settings-screen-nav {
|
||||
gap: 0.75rem;
|
||||
padding: 1rem;
|
||||
border-right: none;
|
||||
border-inline-end: none;
|
||||
border-bottom: 1px solid var(--border-base);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user