# 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>
175 lines
3.4 KiB
CSS
175 lines
3.4 KiB
CSS
.directory-browser-modal {
|
|
width: min(960px, 90vw);
|
|
height: min(85vh, 900px);
|
|
max-height: 90vh;
|
|
border-radius: var(--radius-xl);
|
|
}
|
|
|
|
.directory-browser-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
.directory-browser-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: var(--space-xl);
|
|
padding: 1.5rem;
|
|
border-bottom: 1px solid var(--border-base);
|
|
background-color: var(--surface-secondary);
|
|
}
|
|
|
|
.directory-browser-heading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.directory-browser-title {
|
|
font-size: var(--font-size-2xl);
|
|
line-height: var(--line-height-tight);
|
|
font-weight: var(--font-weight-semibold);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.directory-browser-description {
|
|
font-size: var(--font-size-xl);
|
|
line-height: var(--line-height-relaxed);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.directory-browser-body {
|
|
flex: 1;
|
|
min-height: 0;
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-lg);
|
|
background-color: var(--surface-base);
|
|
}
|
|
|
|
.directory-browser-current {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
width: 100%;
|
|
}
|
|
|
|
.directory-browser-current-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-2xs);
|
|
}
|
|
|
|
.directory-browser-current-label {
|
|
font-size: var(--font-size-sm);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.directory-browser-current-path {
|
|
font-family: var(--font-family-mono);
|
|
font-size: var(--font-size-base);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.directory-browser-current-select {
|
|
width: auto;
|
|
}
|
|
|
|
.directory-browser-current-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
flex-wrap: wrap;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.directory-browser-close {
|
|
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-full);
|
|
border: 1px solid var(--border-base);
|
|
background-color: var(--surface-base);
|
|
color: var(--text-primary);
|
|
transition: background-color 0.15s ease;
|
|
}
|
|
|
|
.directory-browser-close:hover {
|
|
background-color: var(--surface-hover);
|
|
}
|
|
|
|
.directory-browser-list {
|
|
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.directory-browser-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.directory-browser-row-main {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
text-align: start;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
padding: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.directory-browser-row-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: var(--radius-lg);
|
|
background-color: var(--surface-secondary);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.directory-browser-row-name {
|
|
font-size: var(--font-size-lg);
|
|
font-weight: var(--font-weight-medium);
|
|
}
|
|
|
|
.directory-browser-row-spinner {
|
|
width: 18px;
|
|
height: 18px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.directory-browser-select {
|
|
width: auto;
|
|
min-width: 90px;
|
|
}
|
|
|
|
|
|
.directory-browser-select:hover {
|
|
background-color: var(--selection-highlight-bg);
|
|
border-color: var(--accent-primary);
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.directory-browser-loading {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
color: var(--text-secondary);
|
|
}
|