Localize version 0.29.0
[0.29.0] — May 11th, 2026
Behaviour Change
Localize.Currency.currency_for_code/2now returns the newLocalize.CurrencyNotLocalizedError(instead ofUnknownCurrencyError) when the currency code is valid but the locale has no display data for it.UnknownCurrencyErroris now reserved for codes that aren't recognised ISO 4217 or registered custom currencies.
Enhancements
-
Localize.Currency.currency_for_code/2accepts a new:fallbackoption which walks the CLDR parent locale chain and the application default locale before failing. Thanks to @neilberkman for the PR. -
Localize.Locale.get/3accepts a new:fallback_to_defaultoption for a final-step fallback after any:fallbackparent walk. Acceptstrue(useLocalize.default_locale/0), or an atom/string/Localize.LanguageTagfor a specific locale. -
Add
:iso_3166option toLocalize.Territory.territory_codes/1to return only ISO 3166 codes (not aggregate territories).