globalizejs / globalize

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
https://globalizejs.com
MIT License
4.8k stars 605 forks source link

Force positive sign #931

Open LuisCardeBu opened 2 years ago

LuisCardeBu commented 2 years ago

I just can't find a way to force the positive sign prefix. Optometrists use negative and positive numbers in their prescriptions and I want to force the positive sign when numbers are positive.

rxaviers commented 2 years ago

Number formatter doesn't provide such option, but we can accept such enhancement if you're willing to implement it. In such case, I'd recommend discussing the API (option name and high level functionality) either in this issue (or in #437), then go for PR.

Thanks!

Cross links:

Dup of #437