InternationalisationVol. 23 · i18n
0 / 0

Shelves / Internationalisation

IN·00

Start Here: One App, Many Languages, Every Time Zone

For engineers whose software has only ever spoken one language in one time zone: what internationalisation (i18n) and localisation (l10n) mean, why they are engineering problems rather than translation chores, TiffinBox going multilingual as the running example, the map of the volume from Unicode to infrastructure, the vocabulary, and how to study it.

6 topics · ~4 min read · 4-question quiz
Updated Suggest a correction

Start here: how to use this volume

What this volume is

This volume, beyond the roadmap's original parts, teaches internationalisation in one place. Earlier volumes touched it in passing: UTF-8 in Volume 1, time zones in a database chapter, currencies in a payments example. Here it gets the full treatment, from first principles, because these bugs are among the most common in real software and the hardest to fix late.

Two words are used throughout:

Word Short form Meaning Who does it
Internationalisation i18n (i, 18 letters, n) making software able to work in any language, script, region, time zone and currency, without code changes engineers
Localisation l10n adapting it to one particular locale: translated text, local formats, local payment methods, local laws translators, product, legal, with engineers' support

A locale is a language plus a region, plus optional preferences: en-IN (English as used in India), hi-IN (Hindi, India), ta-IN, de-DE, ar-EG. The same language differs by region: en-IN writes ₹1,23,456.50 and "5 Nov 2026", en-US writes $123,456.50 and "Nov 5, 2026".

The central lesson of the volume is that i18n is an architecture decision, not a translation task. If text is stored as bytes in the wrong encoding, times as local wall-clock values, money as floats, and sentences glued together from fragments in code, no translator can fix it afterwards. If those foundations are right, adding a language is mostly a content job.

Every chapter has the usual shape: Start here with a measured example; How deep to go; the full chapter; a Lab; and a Revision sheet. The labs are real: Python's Unicode database, PostgreSQL 16 with ICU collations, the IANA time-zone database through zoneinfo, Node.js Intl (CLDR data), Chromium rendering real text through Playwright, Google's libphonenumber and Python's IDNA encoder. Where the lab machine differs from a user's device (fonts, above all), the lab says so.

The running example

TiffinBox, the home-cooked meal subscription from Volumes 19–22, is expanding:

Change What breaks without i18n
the app in Hindi, Telugu and Tamil as well as English truncated words, clipped buttons, broken sorting, "1 items" grammar in every language
kitchens in Dubai (Arabic, AED) right-to-left layout, Arabic digits, a different currency and weekend
a US pilot in New Jersey a second time zone with daylight saving, US date and number formats, USD and sales tax
one shared backend dates of orders, daily cut-offs, invoices and reports that must be right in every zone

The map

Chapter Topic The mechanism it teaches
01 Unicode and text bytes, code units, code points and graphemes; encodings; normalisation
02 comparing, sorting and searching text collation, case folding, locale-sensitive comparison, search
03 time, dates and time zones instants vs wall-clock times, the tz database, DST gaps and overlaps
04 locales: numbers, currencies, plurals and money CLDR, formatting, plural rules, exact money arithmetic, rounding
05 translating the interface message externalisation, ICU MessageFormat, expansion, pseudo-localisation, the translation pipeline
06 right-to-left and bidirectional text the bidi algorithm, logical properties, mirroring, isolation, bidi spoofing
07 internationalised data and infrastructure phone numbers, names, addresses, domain names, database encodings, APIs
08 projects making TiffinBox multilingual and multi-region

How to study this volume

A routine that works

  1. Read the chapter, run the lab, and change the inputs: your own name, your own language, your own city.
  2. Keep a second locale switched on while you develop: set your phone or browser to Hindi, Arabic or German for a week. You'll find bugs in apps you use every day.
  3. Use pseudo-localisation (chapter 05) from the first screen you build.
  4. Build the projects in chapter 08 incrementally.

Warm-up exercises

  1. Type your name in your mother tongue into three websites' sign-up forms. Which ones accept it, and which display it correctly afterwards?
  2. Find an app that shows times. Change your phone's time zone and see what changes, and what wrongly doesn't.
  3. Count the characters in "नमस्ते" by hand, then with len() in Python and .length in JavaScript. Chapter 01 explains why you get three different answers.
  4. Find a product page in two countries and list everything that differs besides the language.

Glossary

  • Locale: a language plus region and preferences, written as a BCP 47 tag such as hi-IN.
  • Unicode: the standard that gives every character in every script a number (a code point).
  • UTF-8: the dominant encoding of Unicode as bytes.
  • CLDR: the Unicode Common Locale Data Repository, the data behind formats, plurals, collation and names in almost every platform.
  • ICU: International Components for Unicode, the library that implements Unicode and CLDR algorithms (in Android, Chrome, PostgreSQL, Java and more).
  • IANA tz database: the record of every region's time-zone rules, past and present.
  • RTL: right-to-left scripts such as Arabic and Hebrew.
  • Pseudo-localisation: a fake translation that makes i18n bugs visible before real translations exist.