Translating an app into twelve languages without breaking it

Published 2026-11-06

Keys, not sentences

Internationalisation starts by never hardcoding visible text. Every string gets a key, and each language has a file mapping keys to text. English is usually the source, and every other language must contain the same keys. Missing keys fall back to English, which is acceptable for a day but not as a permanent state.

Keep locales in sync

When a key is added or changed in the source language, it must be propagated to all the others in the same change. A script that compares key sets across locale files and reports the missing ones turns this from a memory exercise into a check that can run before every release.

Machine translation is a reasonable first draft for interface strings, as long as someone who reads the language reviews the important screens. Placeholders such as names and counts must survive translation untouched.

Protect the files

Locale files are plain JSON, and they are easy to corrupt. Loading and re-saving a whole file with a tool that reorders keys or escapes characters produces enormous diffs and hides real changes. Prefer inserting new keys at an anchored position in the text, leave existing lines alone and avoid a byte order mark at the start of the file, which some parsers reject.

Always write the files as UTF-8, and test with languages that use accents, non-Latin scripts and right-to-left text.

Beyond words

  • Dates, numbers and currencies must be formatted by locale, not by string concatenation.
  • Plurals differ between languages; use the library's plural rules rather than adding an s.
  • Leave room in layouts, since German and Finnish text is often much longer than English.
  • Right-to-left languages need mirrored layouts, not just translated words.

Commit the translations

Treat translation updates as code: reviewed, versioned and deployed with the feature that needs them. A feature that ships with English only is not finished for a multilingual audience.

© 2026 The Good Fellas