Locale Value Formatting Pitfalls

Use when a product shows dates, times, numbers, money, units, percentages, lists or relative times to users in more than one locale, or in one locale that is not the developer's: values stored in a canonical form and formatted only at display, the locale-aware formatter instead of hand-built strings, money as integer minor units plus a currency code (never inferred from the locale), units converted by your code and only named by the formatter, calendars and numbering systems as locale extensions, and reading what a user typed back into a value.

techmefr Updated

File contents

techmefr/mentis commit 3fe78f7434

Frequently asked questions

npx get-skill add techmefr/locale-value-formatting-pitfalls