How it works
Two words you’ll hear a lot, often shortened to numbers (the count of letters between the first and last one):
| Term | Short | What it means |
|---|---|---|
| internationalization (i18n)Internationalization (i18n)Building a product so it can be adapted to any language or region without code changes.Open in glossary → | i18n | Building the app so it can support any language: no hard-coded text, flexible layouts, Unicode everywhere (the standard that lets every alphabet be stored and shown), locale-aware formatting. Done once, by developers. |
| localizationLocalizationAdapting an app to a language and region, including translations, dates, currency and layout.Open in glossary → | l10n | Actually adapting it to one market: translations, local formats, currency, images, legal texts. Done per language. |
A localeLocaleRegional settings that control language and formats for dates, numbers and currency.Open in glossary → is the combination of language and region, written like de-DE (German in Germany), de-AT (German in Austria), sr-Latn-RS (Serbian in Latin script, Serbia) or ar-AE (Arabic, United Arab Emirates): the language code first, then, if needed, the script and the country. The same language can need different formats in different regions, and Serbian is written in two scripts: Latin (Korpa) and Cyrillic (Корпа).
Here’s what happens when someone opens a localized app:
- The app picks a locale. From the phone or browser language, from an in-app language setting, or from the user’s account. If the user’s language isn’t supported, it falls back to a default (usually English).
- Text comes from resource files, by key. Each language has its own translation file. The code doesn’t contain “Place order”. It asks for
checkout.cta, and the file for the current language returns “Zahlungspflichtig bestellen” or “Наручи”. - Numbers, dates and prices go through formatters. The app passes the raw value (
1299, a date,RSD) to a locale-aware formatter that knows the separators, the order and the symbols. - Plurals and variables use message patterns. Instead of gluing pieces together, the app gives the translator a full sentence with placeholders and plural rules.
- The layout adapts. Text wraps or the screen scrolls when strings get longer. For right-to-left languages the whole layout is mirrored.
- The server speaks the same language. Error messages, emails, push notificationsPush notificationA message an app sends to the device that appears even when the app is closed.Open in glossary →, receipts and product data come from the backend, so it must know the user’s locale too.
What changes from one locale to another
Much more than the words. Every row in this table is a classic source of bugs:
| What | Examples |
|---|---|
| Text | Translations, but also gender: Serbian says Dobro došao to a man and Dobro došla to a woman. |
| Plurals | English: 1 item, 2 items. Serbian: 1 artikal, 2 artikla, 5 artikala. Arabic has six forms. |
| Dates and times | 10/16/2026 (US) vs 16.10.2026 (Germany, Serbia); 2:30 PM vs 14:30; some regions also use other calendars (Thailand’s Buddhist year is 543 years ahead). |
| First day of the week | Sunday in the US, Monday in most of Europe, Saturday in several Middle Eastern countries. Watch the date picker. |
| Numbers | 1,299.50 (US), 1.299,50 (Germany, Serbia), 1 299,50 (France), 1’299.50 (Switzerland). Arabic may use Arabic-Indic digits: ١٬٢٩٩٫٥٠. |
| Currency | Symbol before or after, with or without a space: $1,299.00, 1.299,00 €, 13.990,00 RSD. Not every currency has 2 decimals (the yen has none). |
| Units | Kilometers or miles, kg or lb, °C or °F. |
| Addresses | Postcode before the city (11000 Beograd) or after (New York, NY 10001); some countries don’t use postcodes at all. |
| Phone numbers | (415) 555-0132 vs +381 64 123 4567. Different lengths, so don’t hard-code a mask. |
| Names | Family name first (Hungarian, Chinese, Japanese), two surnames (Spanish), or a single name. “First name / Last name” doesn’t fit everyone. |
| Sorting | In Serbian, Čačak comes after Cetinje, not after Zrenjanin. In Swedish, å, ä and ö come after z. |
| Time zones | “Delivery at 14:00” must mean the customer’s time zoneTime zoneThe local time of a region. Bugs appear when apps mix up the user's time zone with the server's.Open in glossary →, not the server’s. |
Text expansion
English is short. When text is translated, it usually grows:
- German and Finnish are often 30–50% longer than English, and a single compound word can be very long (Geräuschunterdrückung means “noise canceling”).
- Short labels grow the most: “Save” (4 letters) becomes “Speichern” (9). A button label can easily double.
- Some languages are shorter but taller: Thai and Hindi have marks above and below the letters, so a fixed line height cuts them off.
- Chinese and Japanese are short in characters, but each character needs to be big enough to read.
Anything with a fixed width breaks first: buttons, tabs, segmented controlsSegmented controlA row of connected buttons where exactly one option is selected at a time.Open in glossary →, table headers, badges, and text inside images. Typical symptoms are truncationTruncationText that gets cut off because it doesn't fit its space.Open in glossary → (“Zahlungspflichtig bes…”), text overflowing its box, or two lines squashed into one.
Pseudo-localization: test translations before they exist
Real translations often arrive late, a day before release. Pseudo-localizationPseudo-localizationReplacing text with longer, accented fake text to find untranslated strings and truncation early.Open in glossary → lets you test the layout now. A tool replaces every translatable string with a fake, still readable version:
Place order → [Þļåçé öŕðéŕ one two]- Accents check that fonts and encoding handle non-English letters.
- Extra length (about 30–50%) simulates German and shows what gets cut off.
- Brackets show where each string starts and ends. A missing
]means the text is truncated. - Text without accents wasn’t translated at all: it’s hard-coded in the code (or comes from the server).
Android has two built-in pseudo-locales: en-XA (accented and longer) and ar-XB (right-to-left). Xcode offers pseudolanguages such as Double-Length, Accented and Right-to-Left. They usually need a build from the developers with this switched on; the Mobile vs web part shows how. You’ll try both styles in the lab further down.
Check this part
What is the difference between internationalization (i18n) and localization (l10n)?
You run the app in the
en-XApseudo-locale and one button shows plain "Place order", without accents. What does it most likely mean?