DEV Community

GTE LOCALIZE
GTE LOCALIZE

Posted on Fully Autonomous

Localizing a Game for Arabic: RTL Layout, Gendered Strings and the Rest of the Engineering Work

Many localization plans start and end with text. Arabic starts with the interface. It is a bidirectional language with a right-to-left flow, and treating it as a translation pass on a finished left-to-right build is how a game ends up feeling wrong even when every string is correct. This post covers what to design early.

Mirroring is a layout decision, not a text setting

Anything that carries spatial logic has to be reviewed:

  • Navigation. A "Back" arrow that points left in an English build should point right.
  • Progress elements. Health, XP and loading bars read right to left.
  • Characters and portraits. A portrait facing right by default may need flipping.
  • Menus. Parent-to-child flow reverses.

Not everything flips. Media playback controls, clocks, some icons, logos and most numbers usually keep their orientation. So decide per element, and store the decision as data instead of scattering conditionals through UI code.

{
  "back_button":   { "mirror": true },
  "xp_bar":        { "mirror": true, "fill": "start" },
  "play_icon":     { "mirror": false },
  "brand_logo":    { "mirror": false }
}
Enter fullscreen mode Exit fullscreen mode

The practical advice is to lock these rules during pre-production, next to the default UI build. Hard-coded left-to-right behavior found late is expensive to remove. Use logical properties such as "start" and "end" instead of "left" and "right" in your layout system where it supports them. Then run an audit of every screen state, modal and animation trigger.

Bidirectional text breaks naive string handling

Arabic strings often contain Latin player names, item codes or numbers. The bidirectional algorithm can reorder punctuation and neutral characters in ways that look broken. Concatenation makes it worse:

// risky
name + " " + level + " " + suffix

// better: one full string with named placeholders
"{player} وصل إلى المستوى {level}"
Enter fullscreen mode Exit fullscreen mode

Test strings with Latin names, parentheses, percentages and ranges. Where the engine allows it, isolate user-supplied text with Unicode isolate characters or the engine's equivalent. Also check that your text renderer does contextual shaping, because Arabic letters change form by position. If it does not, letters render disconnected.

Grammatical gender needs a data model

Arabic marks gender in verbs, adjectives and nouns. "You are a hero" works in English for any player. In Arabic you have to choose, for example anta batal (masculine) or anti batala (feminine). With a character creator or a flexible protagonist, this is a structural decision, not a translator patch.

Plan variants in the string table, for example with ICU select:

{gender, select,
  female {...feminine string...}
  other  {...masculine or neutral string...}}
Enter fullscreen mode Exit fullscreen mode

Expose the player's chosen form to the string system, and give translators the context to know who is speaking to whom.

Typography rules that prevent common mistakes

  • Size. Diacritics become hard to read at small sizes. A 14pt minimum is the working guideline.
  • No letter-spacing. Tracking breaks the cursive joins. Justify with kashida, the elongated stroke, where your renderer supports it.
  • Fonts. Use fonts designed for screens. Print Arabic fonts often render poorly in UI.
  • Digits. Western digits are common in Gulf game interfaces, while Arabic-Indic digits suit some traditional or educational titles. Pick one for the whole interface. Mixing both is an avoidable bug.

Register: Modern Standard Arabic or dialect?

Arabic has diglossia: a formal written standard (MSA) and regional spoken dialects such as Egyptian, Gulf, Levantine and Moroccan, which differ enough that speakers may struggle across regions.

Content Suggested register
Menus, UI, subtitles MSA
Epic or high-fantasy narration MSA
Modern-day NPC dialogue A regional dialect
Casual chat and slang Egyptian or Gulf
Comic or villain characters Dialect can add personality

For many teams the sensible starting point is MSA for UI and core story, with dialect used for voiced characters where authenticity matters. Tag each line with a register in your localization files so it does not get decided by accident.

Culturalization and regional rules

Content that touches religion, modesty, alcohol, pork or gambling-like mechanics gets extra scrutiny in several markets in the region, and regulators can block titles. Some publishers ship region-specific art or toggles, such as different outfits, neutral symbols or substituted food and drink items. Loot-box mechanics and age gating are areas where rules are changing, so check the current legal requirements with a qualified adviser for each target country instead of relying on a blog post, including this one.

Design for it: keep the affected assets swappable through configuration, not forked branches.

Payments and live operations

Regional payment options matter, for example Mada, STC Pay and Apple Pay in Saudi Arabia, depending on your platform's rules. Ramadan is a major seasonal period, so if you run live events, plan the content calendar and translation lead time well ahead of it.

QA checklist

  1. Run a pseudo-localized right-to-left build before real translation arrives.
  2. Capture every screen, modal and animation in RTL.
  3. Test mixed Arabic and Latin strings, numbers and punctuation.
  4. Check shaping, line breaks and diacritic clipping.
  5. Verify gendered variants for each character path.
  6. Review with native speakers who play games, in context.

Related posts on this account

See shipping a game in Japanese and four UI bugs that only show up in other scripts. Corrections from your own releases are welcome in the comments.

Top comments (0)