Intl API Playground

Rizal prints a tea invoice for a buyer abroad: type a locale tag, and four real Intl formatters write the amount, the date, the due day and the goods, a…

Why it matters

An app used across countries (or just in Indonesia with rupiah written right) needs this. Intl needs no library, is accurate per language and is already in the browser. Writing your own formatter is almost always wrong at the edges.

The key idea

Never write numbers and dates yourself: Intl knows every locale’s rules

Common mistakes

Try it in this playground