// Stefan Judis · 5 April 2026
Intl can localize units, too! (#tilPost)
Today I learned that Intl allows you to format numbers with currencies or units! console.log( new Intl.NumberFormat("de-DE", { style: "currency", currency: "EUR" }).format(123456789), ); // "123.456.789,00 €" console.log( new Intl.NumberFormat("ja-JP", { style: "currency", currency: "JPY" }).format(...
Stefan Judis
@stefan-judis
www.stefanjudis.com
Read Full Article at www.stefanjudis.comStefan Judis@stefan-judis
Discussion 0
Loading
Got something to say?
or to join the conversation.