Get localized currency display name from CLDR in PHP

517 Views Asked by At

I need to output localized currency names on a webpage.

USD | ameriški dolar

EUR | euro

I can't seem to find a way to do it through the intl library, although the data is present in Unicode CLDR.

E.g. Slovenian http://www.unicode.org/repos/cldr/tags/latest/common/main/sl.xml

Is there any way to use this data, aside from parsing and locally storing data from the remote CLDR XML files for each display language I have?

1

There are 1 best solutions below

0
On BEST ANSWER

You may need a library like commerceguys/intl, which has a getName() method.