Skip to main content

Formatting & CLDR plural correctness

Generated from mcp/patterns.registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: Internationalization (i18n) · Tier: light · Risk: low — presentation formatting only

Locale-explicit date, number, currency, percent, and relative-time formatting helpers built on the native Intl API, decoupled from the translation locale to avoid SSR/CSR hydration mismatches.

When to use: Use whenever displaying a date, number, currency, or relative-time value that should format per the visitor's locale.

Docs

Code


Machine-readable record: i18n-formatting in mcp/patterns.registry.json.

← Back to Pattern Library

Think this pattern could be better? Tell us how.

Leave feedback