dart-lang / i18n

A general mono-repo for Dart i18n and l10n packages.
BSD 3-Clause "New" or "Revised" License
63 stars 36 forks source link

currencyFullName, good first issue? #463

Open sneurlax opened 1 year ago

sneurlax commented 1 year ago

Is your feature request related to a problem? Please describe. Dart provides ISO 4217 country codes and symbols here but not full country names

Full country names on wikipedia come from this Swiss group which puts out a kind of ISO 4217 extension for traders like

<CcyNtry>
<CtryNm>MAURITANIA</CtryNm>
<CcyNm>Ouguiya</CcyNm>
<Ccy>MRU</Ccy>
<CcyNbr>929</CcyNbr>
<CcyMnrUnts>2</CcyMnrUnts>
</CcyNtry>
<CcyNtry>
<CtryNm>MAURITIUS</CtryNm>
<CcyNm>Mauritius Rupee</CcyNm>
<Ccy>MUR</Ccy>
<CcyNbr>480</CcyNbr>
<CcyMnrUnts>2</CcyMnrUnts>
</CcyNtry>
<CcyNtry>
<CtryNm>MAYOTTE</CtryNm>
<CcyNm>Euro</CcyNm>
<Ccy>EUR</Ccy>
<CcyNbr>978</CcyNbr>
<CcyMnrUnts>2</CcyMnrUnts>
</CcyNtry>

Describe the solution you'd like I am adding these to my app. I'd like to also contribute them to the lower Dart level if feasible

Describe alternatives you've considered I'd like to add them to Dart proper as .currencyFullName (as opposed to the currently-existing .currencyName and .currencySymbol) if it's a good first issue

Additional context This list is just the list of the ISO 4217 full names in English: like if USD rendered all the other codes in its own language (English with a Latin-script alphabet). I found from Wikipedia other standards lists for how to render that list according to other codes

Handling localisations at a lower level (in Dart) that returns the localisation of each code (according to their own ISO 4217 code) and contributing the English one (or a few, or all the ones available) seems like a good opportunity to ask for other programmers in other languages to submit spelling, grammar, and character changes

mosuem commented 1 year ago

The best course of action would probably be to derive them from CLDR data, to stay up to date.