You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The t:Localize.Currency.t/0 type now declares :iso_digits as non_neg_integer() | nil. Historic currencies (for example :BGN) have no ISO 4217 minor-unit definition and carry nil, which the module's own is_nil/1 guards already handle; the previous non_neg_integer() type caused false pattern_match warnings in downstream code that guards against nil.
Added
mix localize.unit.gen_conversions generates a dependency-free unit conversion module from CLDR data, for embedded targets where compiling Localize costs more than the project itself. There is no unit selection to make: Localize's own parser is inlined into the generated module, so it accepts every identifier Localize.Unit accepts — prefixed, powered and -per- compound alike — through to_base/2, resolve/1 and a compile-time ~u sigil.