rinvex / countries

Rinvex Country is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.
https://rinvex.com
MIT License
1.65k stars 206 forks source link

Fix default currency for all countries #72

Closed Omranic closed 2 years ago

Omranic commented 6 years ago

Some countries has multiple currencies, but mostly only one is used or at least there's a default currency, but this package returns the first currency regardless, which make it weird.

We need to sort currencies and change the default behavior to return the official/default currency of the country, and if needed all other currencies will be returned optionally. Related issue #52

Omranic commented 2 years ago

This is now fixed completely for all countries in https://github.com/rinvex/countries/commit/1cf372b29bc0c17eeaf08e40a7cd98b729aae296, here's what's been done:

Update country currencies to include only the official currency (fix #52 #55 #72)