Packages
ex_cldr_currencies
2.16.3
2.17.2
2.17.1
2.17.0
2.16.5
2.16.4
2.16.3
2.16.2
2.16.1
2.16.0
2.15.1
2.15.0
2.14.3
2.14.2
2.14.1
2.14.0
2.13.0
2.12.0
2.12.0-rc.1
2.12.0-rc.0
2.11.1
2.11.0
2.10.1
2.10.0
2.9.1
2.9.0
2.9.0-rc.1
2.9.0-rc.0
2.8.0
2.8.0-rc.0
2.7.0
2.6.2
2.6.1
2.6.0
2.5.0
2.5.0-rc.0
2.4.1
2.4.0
2.3.0
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
2.0.0-rc.0
1.1.1
1.1.0
1.0.0
0.1.0
Currency localization data encapsulation functions for the Common Locale Data Repository (CLDR).
Current section
Files
Jump to
Current section
Files
lib/cldr/protocol/string_chars.ex
defimpl String.Chars, for: Cldr.Currency do
def to_string(currency) do
locale = Cldr.get_locale()
Cldr.Currency.display_name!(currency, locale: locale)
end
end