huwwp / cryptop

command line crypto portfolio
MIT License
235 stars 41 forks source link

Correct usage of currency symbol #59

Open rpesche opened 6 years ago

rpesche commented 6 years ago

cryptop use the currency symbol of the machine locale. It means that, for example, if you have a french local fr_FR.UTF-8, even if you set the currency option to USD in your config file, you will have the currency symbol in cryptop.

We can't use anymore the locale package because it need locale to be installed to use a specific currency. User don't wan't to install chinese local to have cryptop value in ¥.

I use the babel library to get all currency symbol without installing locale.