You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-up to #1130 / #1138, which translate the app into 56 left-to-right languages.
Scope
Add the right-to-left languages the OpenCode desktop app ships, on iOS and Android, and make the UI follow right-to-left layout guidelines so they ship working.
Language
iOS
Android
Arabic
ar
ar
Hebrew
he
iw
Persian
fa
fa
Urdu
ur
ur
Dhivehi
dv
dv
Punjabi, Shahmukhi script
pa-Arab
b+pa+Arab
Punjabi uses the Arabic-script code so devices set to Gurmukhi Punjabi don't get Shahmukhi text.
Plan
Translations: add the six languages to scripts/l10n/languages.mjs, Android localeFilters and iOS knownRegions, then translate all strings with the translate skill.
Right-to-left UI pass on both platforms:
Swipe gestures follow layout direction (message time reveal, request paging in the composer, list swipe actions, session list dock).
Code, diffs, shell output, file paths and commands stay left-to-right; same set on iOS and Android.
Visual check of Home, Session Chat, composer, Settings and terminal in a right-to-left locale (Android ar-XB pseudo-locale, iOS right-to-left pseudo-language) and fix what's mirrored wrongly.
Acceptance
All six languages have every string on both platforms; scripts/check-translations.mjs passes.
Gestures move with the finger in right-to-left layouts on both platforms.
Code and paths read left-to-right inside right-to-left screens.
Screenshots of both apps in Arabic on the pull request.
Activity
#1139 Translate the app into six right-to-left languages
#1139 Show each platform's translation in consistency reviews
#1139 Mirror gestures and keep code left to right in right-to-left la…
#1139 Lay messages out in their own text direction
#1139 Give Android text its own paragraph direction and isolate argum…
#1139 Keep literal paths whole in right-to-left translations
#1139 Align Android labels by layout and keep paths left to right
#1139 Mark literal paths with left-to-right marks instead of isolates
#1139 Mark placeholder-only right-to-left translations
#1139 Mirror list, text and message icons in right-to-left layouts
#1139 Fix iOS components found by the right-to-left audit
#1139 Fix Android components found by the right-to-left audit
Localisation: right-to-left languages (opencode-mobile#1140)