📐Internationalization (i18n)
Also known as i18n, Internationalisation, Software Internationalization
Building a product so it can work in any language. You add each one later.
Think of it like
It is like a lunch box with spaces of many shapes. Food from any home fits in it.
Example
A shop app keeps every label in a text file. Adding French later means one new file, not a new app.
Why it matters
Doing it from the start is cheap. Pulling words out of a finished product later costs far more.
Definition
Example code
json
{
"cart.title": "Your cart",
"cart.empty": "Your cart is empty"
}Common mistake
Key takeaways
- 1Words out of the code. In files to translate.
- 2Room to grow and flip. Long text, right to left.
- 3Local formats. Dates, numbers, money.