Add drafts of Arabic and Persian to the iOS app, and keep right-to-left text in order #562
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 402 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.359
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #562"
general
weight: 0.35
aaronbrethorst
This adds machine-drafted Arabic and Persian to the iOS app, the two languages Android has (#551) and iOS didn't, and fixes the places where right-to-left text came out wrong on iOS.
Most of the right-to-left work iOS does by itself. SwiftUI lays out from the right, the welcome's back chevron, route line and slide transition already follow the direction, and String(localized:) sets each name and number it puts into a sentence apart with Unicode isolates, so "12 Mile Rd" stays in order inside Arabic. Android needed isolated() for that; iOS gets it for every String(localized:). What went wrong was text put together some other way:
The drafts follow #551's Android wording and the glossary. 222 Arabic and 206 Persian iOS strings take Android's translation of the same English, and "Next", "Recent" and "Matches" take the Android string for their own screen. The rest were drafted, then read again row by row. Arabic has all six plural forms, and its one and two say the count in the noun, as Android's do ("تقريران مُرسلان"); I checked that iOS fills such a form without moving the other values. Arabic names iOS's own settings as iOS does. iOS has no Persian, so Persian keeps the English names the phone shows. Everything is machine_translated until a fluent reviewer reads it.
Checked with go run ./cmd/l10n check (0 errors, 0 warnings, every language 300 of 300 on iOS), ./sync-string-catalogs.sh --check and the app's tests on the iOS 27 simulator (593 pass).
Part of #495
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
Added Arabic and Persian translations across trip tracking, routes, schedules, sign-in, help, and location-related text.
Added Arabic and Persian location permission descriptions.
Updated route and vehicle picker headings, recent-route labels, and departure rows with clearer, localized wording.
Improved right-to-left text display for mixed-language content.
Bug Fixes
Trip report counts now match locale-formatted digits in completion messages.
Corrected the sign-out menu icon.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->