Adding language or Contributing to ECMAScript Internationalization API localization

How do I contribute Internationalization API languages or add language ? In Mongolia we use different number formatting and date format, also when I need to format number in Mongolian I need to create custom function to do it. And I want to use Intl API, because

const formattedNumber = Intl.NumberFormat('mn-MN', { notation: "compact" })

is better than writing function below

function formatNumber (number) {
    if(number > 1000000000) return number / 1000000000 + " тэрбум"
    ///and so on
    return number;
}

I did little research and all the languages and variants are registered here and subtags are listed in the Unicode CLDR Project. But when I use mn-Cyrl or any other Mongolian locale it returns default en-US string. So I am wondering if I am able to contribute to Intl API localization.

Upvotes: 1

Views: 211

Answers (1)

Tomoe
Tomoe

Reputation: 416

I see, you might need this. it's official

proposal-intl-numberformat-v3

Upvotes: 2

Related Questions