# Creating Locale-aware Number and Currency Condensing

DevFeed: [Creating Locale-aware Number and Currency Condensing](<https://devfeed.tech/articles/creating-locale-aware-number-and-currency-condensing-1356.md>)

Original publisher: [Read original article](<https://shopify.engineering/creating-locale-aware-number-and-currency-condensing>)

Author: Carys Mills

Published: 2018-10-24T17:43:00Z

Content type: tutorial

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

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

Tags: [analytics](<https://devfeed.tech/tags/analytics.md>), [api](<https://devfeed.tech/tags/api.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [shopify](<https://devfeed.tech/tags/shopify.md>)

## AI overview

Shopify describes building locale-aware number and currency condensing for multilingual admin graphs. The article discusses differences in abbreviations and counting systems, then uses Unicode CLDR data with Intl.js currency information to implement the formatting functions.

## Source excerpt

It's easy to transform a long English number into an abbreviated one. Two thousand turns into 2K, 1,000,000 becomes 1M and 10,000,000,000 is 10B. But when multiple languages are involved, condensing numbers stops being so straightforward.I discovered that hard truth earlier this year as Shopify went multilingual, allowing our 600,000+ merchants to use Shopify admin in six additional languages (French, German, Japanese, Italian, Brazilian Portuguese, and Spanish).