Search documentation of Localize

# Localize.CurrencyNotLocalizedError exception (Localize v0.39.0)

Copy Markdown View Source

Exception raised when a known currency code has no localized data in the requested locale.

Distinct from `Localize.UnknownCurrencyError`, which signals that the currency code itself is not a recognised ISO 4217 or registered custom currency. This error means the code is valid but the locale's CLDR currency map has no entry for it.

Pass `fallback: true` to `Localize.Currency.currency_for_code/2` to walk the CLDR locale fallback chain (and the application default locale) before failing with this error.