Localizing an app or website into several languages, including right-to-left Arabic
Localization adapts an app or website to the language and habits of another audience: not just translating text, but also date, number and currency formats, plural rules, writing direction, images, emails and notifications. To keep localization from turning into a rebuild, the code is prepared in advance: all text moves out of the code into language files, the interface allows for different string lengths, and the layout is mirrored right to left for Arabic. Translation works best with context and review by a fluent speaker, and each language is tested on real screens. Then a new language is added as a set of files rather than a separate project.
Open the software development page
Internationalization and localization: the difference
Internationalization means preparing the product to work in any language: text separate from code, dates and amounts formatted through language settings, layouts that do not break on long words. It is developer work, and it is cheapest to do from day one.
Localization is filling the product for a specific market: translation, terminology review, local formats, images and legal texts. If internationalization is done well, localizing into a new language needs almost no code changes. If not, every new language turns into a hunt for strings hard-coded into screens and fixing broken layouts.
How to prepare code for translation
- All interface strings live in language files under keys. The code contains a key such as cart.checkout, not the text itself.
- Sentences are never assembled from pieces. Found plus a number plus items will not translate correctly, because word order differs between languages. Use a whole sentence with a placeholder for the value.
- Plurals follow the rules of each language. Russian has three forms, English two, Chinese one and Arabic more. Localization libraries know these rules as long as you do not work around them by hand.
- Dates, times, numbers and currencies are formatted with locale-aware functions, not by gluing strings together.
- Text in images and videos is a separate task: either produce them in each language or move the text out of the image into the layout.
- A fallback language covers missing translations, so users never see a raw key or an empty space.
How text and string length are handled in the mockups is covered in app UI and UX design.
Formats that vary from country to country
| What | What changes | How we handle it |
|---|---|---|
| Date and time | Order of day and month, 12- or 24-hour clock, first day of the week | Formatting by the user's language and region |
| Numbers | Thousands and decimal separators, sometimes the digits themselves | Standard formatting functions, no manual character swapping |
| Currency | The symbol, its position, the number of decimal places | Amounts stored in one currency and unit, formatted on display |
| Names and addresses | Order of first and last name, address structure | Flexible form fields without rigid templates |
| Phone numbers | Country code and number length | Stored in international format, with a country picker in the form |
Agree on time zones separately: the database stores time in a single format, and users see it in their own zone. Otherwise a booking reminder arrives at the wrong hour.
A right-to-left Arabic interface
For Arabic the interface is mirrored: menus and navigation move to the other side, column order and arrow direction change, and text aligns to the right. On the web this is set through the page's writing direction and logical style properties, start and end of line instead of left and right. In mobile apps the platforms support a mirrored layout as long as screens are built from standard components.
- Icons with a sense of direction, such as back, next and progress, are flipped; logos, photos and charts usually are not.
- Arabic sentences often contain Latin text, email addresses and order numbers. Their order needs a separate check.
- The font is chosen for Arabic script; a Latin font does not work for it.
- Swipes, sliders and animations change direction too.
How a mirrored layout and language version markup work on a website is covered in product website development.
The translation process: who, how and with what context
Translation quality depends not only on the translator but on what they can see. The string Open without context could be a button, a status or a menu item, and in other languages those are different words.
- Build a glossary: the product name, key terms and what is not translated.
- Give the translator context: a screenshot, the role of the string, a length limit.
- Machine translation is fine as a draft, but the interface, legal texts and payment texts are reviewed by someone fluent in the language.
- New strings are flagged and translated before release, not after users complain.
- Tone and the formal or informal way of addressing the user are fixed for each language separately.
Language files are best kept in the repository next to the code and checked automatically: are all keys present in every language, and have any stray ones appeared?
What to localize besides the interface
- Emails, push notifications and bot messages: they are often forgotten, and the user gets an interface in their language and an email in someone else's.
- Server errors: the server returns a code, and the error text is chosen in the user's language.
- App Store and Google Play pages: description, keywords and screenshots showing the interface in the right language.
- The privacy policy, terms of use and help pages.
- Support: which languages you are ready to answer in, and what users see if the reply comes in another one.
Choosing and remembering the user's language
On first visit the language is taken from the browser or device settings, but the user must be able to change it easily, and the choice must be saved. Ideally the choice is shared across the website, the web version and the app if they use one account. Store the language on the server in the profile too, so emails and notifications arrive in the same language as the interface.
Do not pick the language by country alone: several languages are spoken in one country, and a person travelling does not want the interface to switch suddenly. On a website each language version should have its own address so that search engines show the right one.
How to test localization
Before launching in a market, every language is checked on real screens, not only in the translation file:
- Long strings are not cut off and do not overlap, especially in buttons and tables.
- There are no untranslated strings and no keys shown instead of text.
- Dates, amounts and plurals look right in every language.
- The mirrored Arabic layout works on every screen, including forms and dialogs.
- Emails, notifications and errors arrive in the selected language.
A handy technique is pseudo-localization: strings are automatically lengthened and marked, so you can see where the layout fails before any translation exists. How to fit such checks into the overall testing process is covered in software testing.
How we run multilingual products at JEEKSSHIRE 24
We run our own website in Russian, English, Chinese and Arabic: text is stored separately from code, the language choice is remembered and shared across sections of the site, a fallback language is shown when a translation is missing, and the Arabic version is laid out right to left. We bring the same approach to client projects and build languages into the architecture from day one.
We handle localization as part of mobile apps and web applications, and adding new languages to a product already in use is done under software support. All services are on the page custom software development.
Frequently asked questions
How is localization different from translation?
Translation changes only the text. Localization adapts the whole product: date and currency formats, plurals, writing direction, images, emails and app store pages.
Can a new language be added to an existing app?
Yes. If the text has already been moved out of the code, it is mostly translation and review. If not, the strings have to be extracted and the layout fixed first.
Is machine translation good enough for an interface?
As a draft, yes. The interface, payment texts and legal documents should be reviewed by someone who knows the language well.
What is difficult about an Arabic version?
The interface is mirrored right to left, icons and gestures change direction, a suitable font is needed, and mixed text with Latin characters needs a separate check.
How does an app choose the user's language?
First from the device or browser settings, then from the user's own choice. The choice is saved in the profile so emails arrive in the same language.
Should the app store page be translated?
Ideally, yes. A description and screenshots in the user's language help them understand the product before installing it.
Do all languages have to launch at once?
No. It is enough to prepare the code for several languages and launch each one as you enter new markets.
How much does app localization cost?
It depends on the volume of text, the number of languages, whether there is an Arabic version and how ready the code is for translation. An estimate is given after the task is reviewed.