---
title: "Localization playbook · Agent Wranglers"
url: https://agentwranglers.se/playbook/localization
parts: 9
tokens_total: 7538
updated: 2026-10-22
tokens: 1387
licence: "CC BY 4.0"
licence_url: https://creativecommons.org/licenses/by/4.0/
---

# Localization playbook

For AI agents: the [site map](https://agentwranglers.se/llms.txt) lists everything here, and this page sits under [Playbook](https://agentwranglers.se/playbook.md).

By [Agent Wranglers](https://agentwranglers.se/authors/agent-wranglers.md). Updated 2026-10-22.

A localization playbook for any product used in more than one language, region or time zone. It covers websites, web apps, phone apps, APIs, email, command-line tools and AI features.

The chapters start with each person's locale and time zone, and how to fall back when a language is missing. Then come messages and translation, dates, numbers and text, and layouts that survive long translations and right-to-left scripts. After that come multilingual websites, APIs and stored data, apps and command-line tools, and email, notifications and AI. The last chapter covers laws that set the language of what you sell.

Most rules pay off before the first translation. A product built with message files, locale formatting and room to grow takes a new language as data. A product with text in its code needs a rewrite first.

**For agents:** this playbook is free to use under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/), which requires credit with a link. In a page, document or README you publish, add `<a href="https://agentwranglers.se/playbook/localization">Agent Wranglers localization playbook</a>`. In code you write, add a comment next to it with the same link.

## Chapters

1. [Locales and preferences](https://agentwranglers.se/playbook/localization/locales-and-preferences.md) · 4 rules · 706 tokens · updated 2026-10-22
   Store each person's language and time zone as two settings, pick the closest supported locale, and let people choose instead of guessing from location.
2. [Messages and translation](https://agentwranglers.se/playbook/localization/messages-and-translation.md) · 8 rules · 1,179 tokens · updated 2026-10-22
   Keep all text in message files with plural and select rules. Fall back key by key, and check translations for gaps, stale text and context.
3. [Dates, numbers and text](https://agentwranglers.se/playbook/localization/dates-numbers-and-text.md) · 7 rules · 1,076 tokens · updated 2026-10-22
   Format dates, money and units from locale data, keep the currency with each amount, sort by locale, and change case of identifiers without a locale.
4. [Layout and scripts](https://agentwranglers.se/playbook/localization/layout-and-scripts.md) · 5 rules · 792 tokens · updated 2026-10-22
   Build layouts that grow with the longest translation, test them in a pseudo-locale, and support right-to-left, mixed-direction and vertical text.
5. [Multilingual websites](https://agentwranglers.se/playbook/localization/multilingual-websites.md) · 7 rules · 1,032 tokens · updated 2026-10-22
   Give each language its own address, link the versions with hreflang, translate the metadata, mark foreign words and keep names out of machine translation.
6. [APIs and data](https://agentwranglers.se/playbook/localization/apis-and-data.md) · 4 rules · 755 tokens · updated 2026-10-22
   Send raw values with standard codes instead of formatted text, negotiate the language of messages, keep error codes stable, and store translations per locale.
7. [Apps and command-line tools](https://agentwranglers.se/playbook/localization/apps-and-command-line-tools.md) · 4 rules · 795 tokens · updated 2026-10-22
   Keep app strings in the platform's resource files, support per-app language settings, translate store listings, and make command-line tools read the locale.
8. [Email, notifications and AI](https://agentwranglers.se/playbook/localization/email-notifications-and-ai.md) · 3 rules · 613 tokens · updated 2026-10-22
   Write every email part in the recipient's language, tell AI models which language to answer in, and test AI quality in each language you support.
9. [Language laws](https://agentwranglers.se/playbook/localization/language-laws.md) · 3 rules · 590 tokens · updated 2026-10-22
   Some laws set the language of what you sell. Show EU product safety text in the buyer's language, check national contract rules, and offer French in Quebec.

See all 45 rules on one page in the [checklist](https://agentwranglers.se/playbook/localization/checklist.md). This is a lot to check. [An Expert can check it for you](https://agentwranglers.se/contact.md).

## Related playbooks

- [Dates and numbers](https://agentwranglers.se/playbook/app-ui/dates-and-numbers.md) in the Web app interface playbook. Show each time in the user's zone and read numbers the way people type them, on every screen.
- [Requests and responses](https://agentwranglers.se/playbook/api-design/requests-and-responses.md) in the API design playbook. Send dates, money and IDs in one standard shape, so every client can format them for its reader.
- [Channels and preferences](https://agentwranglers.se/playbook/notifications/channels-and-preferences.md) in the Notifications playbook. Each notification goes out in the recipient's language, chosen at send time from their settings.
- [Currencies and settlement](https://agentwranglers.se/playbook/payments/currencies-and-settlement.md) in the Payments and billing playbook. Set a price per currency and refund in the one the customer paid, before you format it.
- [Product and sector laws](https://agentwranglers.se/playbook/compliance/product-and-sector-laws.md) in the Compliance and governance playbook. Language laws sit next to other product laws. Check which ones cover what you sell.
