wikimedia / banana-i18n

banana-i18n - Javascript Internationalization library
https://wikimedia.github.io/banana-i18n/
MIT License
77 stars 27 forks source link

Support formatnum with digit grouping transformation #56

Closed santhoshtr closed 3 years ago

santhoshtr commented 3 years ago

Use Intl.NumberFormat for the implementation as it is widely supported now.

Add more tests.

Change the Hindi test's expected result as per browser implementation. For Hindi, Devanagari numberals are not used as per CLDR. And Hindi wikipedia had made this as a configuration for users.

Fixes issue #55