feat(web/i18n): add Arabic (العربية) with full RTL layout support#29795
Open
morolab wants to merge 3 commits into
Open
feat(web/i18n): add Arabic (العربية) with full RTL layout support#29795morolab wants to merge 3 commits into
morolab wants to merge 3 commits into
Conversation
- web/src/i18n/ar.ts: new 702-line Arabic translation covering common, app shell, status, sessions, analytics, models, logs, cron, profiles, plugins, skills, config, env, OAuth, language, theme, achievements, and kanban sections - web/src/i18n/types.ts: 'ar' added to Locale union type - web/src/i18n/context.tsx: ar import, TRANSLATIONS entry, LOCALE_META with name 'العربية' and sa flag - web/src/App.tsx: document.documentElement.dir/lang toggle on locale change - web/src/index.css: RTL CSS block (direction, logical properties, icon flip) - web/src/components/LanguageSwitcher.tsx: locale count updated RTL is handled entirely by the browser's dir=rtl; no JS layout logic required. Arabic dropdown text, UI directions, and toolbar items all auto-flip. Gives Hermes Agent its 17th supported language.
Removed flagCountryCode from LOCALE_META.
10 tasks
19 tasks
1 task
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.
Arabic (العربية) translation for the web dashboard.
What's included
RTL
Full right-to-left layout via the browser's native dir=rtl with logical CSS properties — no JS layout hacks.
Verification
Build is clean (npm run build exits 0). Dashboard deploys under hermes dashboard with Arabic selectable from the language picker.