Core API
Plural Rules
pico-intl uses the native Intl.PluralRules API for pipe-based plural messages. It is designed for common UI copy, not full MessageFormat parity.
ts
{
"cart.items": "{{count}} item | {{count}} items",
"rank": "{{count}}st ~ {{count}}nd ~ {{count}}rd ~ {{count}}th"
} Key points
- Pipe plurals cover common count-based UI copy.
- Variants are selected through native Intl.PluralRules.
- Use full MessageFormat tooling for exact selectors, offsets, or nested plural trees.
Next step
Copy the example into a small fixture, run the validation commands, and keep framework-specific routing, hydration, or SSR behavior covered by your app tests.