# Intl can localize units, too! (#tilPost)

DevFeed: [Intl can localize units, too! (#tilPost)](<https://devfeed.tech/articles/intl-can-localize-units-too-tilpost-45439.md>)

Original publisher: [Read original article](<https://www.stefanjudis.com/today-i-learned/intl-can-localize-units-too/>)

Author: Stefan Judis

Published: 2026-04-05T22:00:00Z

Content type: tutorial

Language: en

Sources: [Stefan Judis Web Development](<https://devfeed.tech/sources/stefan-judis-web-development.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [format](<https://devfeed.tech/topics/format.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [console](<https://devfeed.tech/tags/console.md>), [format](<https://devfeed.tech/tags/format.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [tilpost](<https://devfeed.tech/tags/tilpost.md>)

## AI overview

A short JavaScript tip showing how Intl.NumberFormat localizes currencies and measurement units, including locale-specific symbols, separators, and translated unit names. It recommends using built-in internationalization instead of implementing currency or unit formatting manually.

## Source excerpt

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 EUR " console.log( new Intl.NumberFormat("ja-JP", { style: "currency", currency: "JPY" }).format(123456789), ); // "￥123,456,789" console.log( new Intl.NumberFormat("pt-PT", { style: "unit", unit: "kilometer-per-hour", }).format(50), ); // "50 km/h" console.log( new Intl.NumberFormat('fr-FR', { style: 'unit', unit: 'kilobyte', unitDisplay: 'long', }).format(123456) ); // "123 456 kilooctets" Did you notice how the Japanese Yen symbol (￥) moved in front of the numbers? Or that, apparently, French folks translate the unit kilobyte? Fun! Whenever you put currency/unit logic into userland JavaScript, don't. It's all baked into the language these days. Tip: here's the list of supported units. Reply to Stefan