Commit 912c916
Add Arabic language with full RTL support
Register Arabic ('ar') as a supported UI language and implement full
right-to-left layout mirroring — the platform's first RTL language.
Language registration:
- Add 'ar' to enabled-language lists (dev/prod + desktop platform.ts,
branding.json) and the settings language dropdown (العربية).
- Add the "Arabic" label string to the ui plugin + all locale files.
Translation:
- Add ar.json for all 66 plugins (~4000 strings, Modern Standard Arabic),
preserving keys and ICU placeholders. Validated against en parity with
the platform's intl-messageformat parser.
- Extend the official lang parity test (testUtils) to cover 'ar'.
RTL:
- Theme.svelte sets document dir=rtl for RTL languages, live on switch.
- scripts/rtl-codemod.mjs rewrites 971 physical CSS declarations across
292 files to logical properties (margin/padding/border/inset/text-align/
float) — identical to physical in LTR, so no LTR regression.
- Chevron mirrors horizontal carets; _rtl.scss keeps code/mono LTR.
Typography:
- Bundle IBM Plex Sans Arabic (matches the IBM Plex UI family) and append
it to the font stack so Latin and Arabic glyphs resolve per-glyph.
Tooling:
- scripts/translate-arabic.mjs (Claude API) for reproducible re-translation.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ce3e346 commit 912c916
386 files changed
Lines changed: 5643 additions & 975 deletions
File tree
- desktop/src/ui
- dev/prod
- public
- src
- foundations/core/packages
- core/lang
- platform
- lang
- src
- packages
- presentation
- lang
- src/components
- theme
- fonts/arabic/woff2
- src
- styles
- ui
- lang
- src
- components
- calendar
- internal
- notifications
- wizard
- plugins
- achievement-assets/lang
- activity-assets/lang
- activity-resources/src/components
- activity-message
- doc-update-message
- attributes
- reactions
- ai-assistant-assets/lang
- analytics-collector-assets/lang
- attachment-assets/lang
- attachment-resources/src/components
- billing-assets/lang
- bitrix-assets/lang
- board-assets/lang
- board-resources/src/components/add-card
- calendar-assets/lang
- calendar-resources/src/components
- card-assets/lang
- card-resources/src/components
- settings
- chat-assets/lang
- chunter-assets/lang
- chunter-resources/src/components
- activity
- chat-message
- communication-assets/lang
- communication-resources/src/components
- input
- message
- activity
- poll
- preview
- contact-assets/lang
- contact-resources/src/components
- icons
- person
- controlled-documents-assets/lang
- controlled-documents-resources/src/components
- category/presenters
- create-doc/steps
- document
- right-panel
- info
- hierarchy
- print
- desktop-downloads-assets/lang
- desktop-downloads-resources/src/components
- desktop-preferences-assets/lang
- devmodel-resources/src/components
- diffview-assets/lang
- diffview-resources/src/components
- document-assets/lang
- document-resources/src/components
- drive-assets/lang
- emoji-assets/lang
- emoji-resources/src/components
- export-assets/lang
- global-profile-assets/lang
- global-profile-resources/src/components
- gmail-assets/lang
- gmail-resources/src/components
- guest-assets/lang
- hr-assets/lang
- hr-resources/src/components/schedule
- huly-mail-assets/lang
- inbox-assets/lang
- inbox-resources/src/components
- legacy
- inventory-assets/lang
- inventory-resources/src/components
- lead-assets/lang
- lead-resources/src/components
- login-assets/lang
- login-resources/src/components
- love-assets/lang
- love-resources/src/components
- meeting
- mail-assets/lang
- media-assets/lang
- notification-assets/lang
- notification-resources/src/components
- inbox
- onboard-assets/lang
- onboard-resources/src/components
- preference-assets/lang
- print-assets/lang
- process-assets/lang
- process-resources/src/components
- attributeEditors
- settings
- products-assets/lang
- questions-assets/lang
- questions-resources/src/components
- rating-assets/lang
- rating-resources/src/components
- recorder-assets/lang
- recorder-resources/src/components
- recruit-assets/lang
- recruit-resources/src/components
- request-assets/lang
- request-resources/src/components
- setting-assets/lang
- setting-resources/src/components
- integrations
- socialIds
- spaceTypes
- support-assets/lang
- survey-assets/lang
- tags-assets/lang
- tags-resources/src/components
- task-assets/lang
- task-resources/src/components
- kanban
- state
- taskTypes
- telegram-assets/lang
- telegram-resources/src/components
- templates-assets/lang
- test-management-assets/lang
- text-editor-assets/lang
- text-editor-resources/src/components
- extension
- embed
- popups
- table
- todo
- toolbar
- toc
- time-assets/lang
- time-resources/src/components
- team/calendar
- tracker-assets/lang
- tracker-resources/src/components
- components
- issues
- edit
- timereport
- milestones
- projects
- templates
- training-assets/lang
- training-resources/src/components
- uploader-assets/lang
- uploader-resources/src/components
- view-assets/lang
- view-resources/src/components
- filter
- linkPresenters
- list
- masterDetail
- workbench-assets/lang
- workbench-resources/src/components
- sidebar
- scripts
- server/account/lang
- services/github
- github-assets/lang
- github-resources/src/components
- presenters
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
| 415 | + | |
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
| 548 | + | |
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
0 commit comments