Most workout trackers treat Arabic as a translation task. It is not. It is a layout, typography and data problem, and the parts that break are rarely the ones you expect.
This is a write-up of the decisions behind FitAbtal, a gym and workout tracker I build on iOS, with a 2000+ exercise video library in both Arabic and English. No growth advice here, just the engineering parts that took the longest.
RTL is not "flip the layout"
The naive version is one flag on the root view. That gets you 70% of the way and then fights you for the rest.
Things that are genuinely directional and should flip:
- Back chevrons, disclosure arrows, progress bars, carousels, swipe-to-delete gestures.
- Text alignment and reading order of multi-column rows (weight on one side, reps on the other).
Things that should not flip, but will if you mirror at the container level:
- Media playback controls, timers, charts with a time axis, and any icon whose meaning is "clockwise" (rest timer rings). A mirroring transform on the parent silently reverses these.
- Numbers inside a workout table. Arabic locales often still present digits left-to-right inside a right-to-left row, so a naive mirror makes a column of weights look shuffled.
The practical rule I settled on: mirror by layout direction (leading/trailing constraints, not left/right), never by transform, and then audit every custom-drawn component by hand. On iOS, leading/trailing anchors get you most of the way; the exceptions are exactly the custom views you wrote yourself.
Bilingual content is a data model question
An exercise is one concept with two presentations. Modelling it as two rows means your history, personal records and muscle map need to know which row a set belonged to.
What worked:
- One exercise entity, stable ID. Names, notes and search synonyms are per-locale fields on that entity, not separate records.
- Search indexes both languages at once. A lifter who reads an English UI may still type the Arabic name of a machine because that is what the gym calls it, and the reverse happens constantly.
- Never localise the record keys. Muscle groups, equipment tags and program structure stay in a canonical vocabulary; display strings are mapped at the edge.
- Set data is locale-free. Weight, reps, RPE and timestamps carry no language. This decision saved me from a migration when I added English.
The cost of getting this wrong shows up later: if the exercise name is the key, renaming a translation orphans history.
Fast logging beats smart features
The most common way workout apps lose people is friction between sets. You are standing in a gym, one hand on a bar, and the app wants three taps before it records anything.
Constraints I set:
- Logging a set is a single confirm action; weight and reps default to the previous set, because most sets are the same shape as the last one.
- The previous session's numbers for that exercise are visible next to the input, not behind a tap.
- The rest timer starts automatically when a set is completed, and the phone can stay awake while a workout is active.
- Anything that can be computed (volume, set count, live duration) is computed, never entered.
None of that is novel. It is just easy to trade away while building a plan generator or a chart, and the trade is almost always a bad one.
Offline first, sync second
Gyms are basements with bad WiFi. The app writes locally first, and sync catches up later. The important part is that sync is boring:
- Writes are append-only events for sets and workouts, so a conflict means "two sessions recorded", not "one overwrote the other".
- IDs are generated on device, so an offline session that syncs two days later does not collide with anything.
- Deletes are tombstones. Without them, a delete made in the gym reappears after the next pull.
- The health data path is separate: finished strength sessions are written to Apple Health, while sleep, resting heart rate and HRV are read on device only and never uploaded.
Export matters more than people expect. CSV import and export is unglamorous, but it is the escape hatch that makes the "your data is yours" claim credible.
The video library is a delivery problem
Two thousand short clips is not a content problem, it is bandwidth and storage. What helped:
- Small resolutions for the demo loops; they are watched on a phone, thumb-length, mid-set.
- One clip per exercise, no branching variants, with a searchable name in both languages and a stable slug.
- Progressive caching, so a repeated exercise (which is most of them, week to week) is instant.
If I were starting again, I would treat "learn the movement" and "log the movement" as one object from day one instead of two that reference each other.
What I would do differently
- Model locale-neutral keys from the first commit. Retrofitting is a migration plus a week of edge cases.
- Build the logging screen before the analytics. Charts are fun to build and mostly ignored during a workout.
- Test RTL on a real Arabic device, not just the preview. Right-to-left text mixed with Latin brand names and numerals breaks in ways the simulator will not show you.
- Ship the demo video with the exercise, not next to it.
If you are building something in this space and want to compare notes on the logging flow or on bilingual exercise data, my email is on the project page.
The app is free to download with an optional Pro tier; the video library, logging, programs and history are not paid features.
- App: fitabtal.com
- App Store: FitAbtal

