Skip to content

Localize version 0.41.1

Choose a tag to compare

@kipcole9 kipcole9 released this 30 Jun 07:45
· 327 commits to main since this release

[0.41.1] — June 30th, 2026

Bug Fixes

  • Localize.Language.display_name/2 now normalises its input through Localize.validate_locale/1, so a string and an equivalent Localize.LanguageTag return the same name ("en-GB" and LanguageTag.new!("en-GB") both give "British English") and region-specific codes resolve with fallback ("pt-BR""Brazilian Portuguese", "ar-SA""Arabic" instead of raising). A malformed locale now returns Localize.InvalidLocaleError rather than Localize.UnknownLanguageError. Thanks to @DVSLabs for the report. Closes #36.