Skip to content

Commit 6d088e7

Browse files
committed
Add a mix task generating dependency-free unit conversions for embedded targets
1 parent d934e00 commit 6d088e7

3 files changed

Lines changed: 667 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66

77
## [1.0.1] — August 2nd, 2026
88

9+
### Added
10+
11+
* `mix localize.unit.gen_conversions` generates a dependency-free unit conversion module from CLDR data, selected by quantity (`--types speed,temperature`), for embedded targets where compiling Localize costs more than the project itself. The generated module resolves SI prefixes and `-per-` compounds at call time, accepts CLDR identifiers, spaced names and English symbols such as `"km/h"`, and provides a `~u` sigil that converts at compile time.
12+
913
### Fixed
1014

1115
* `Localize.LanguageTag.best_match/3` now prefers a territory's own language when candidates are otherwise equidistant, so `sgs` (Samogitian, spoken in Lithuania) matches `lt` rather than `en-LT`. The distance trie scores every candidate sharing the desired script and territory identically, which previously left the winner to depend on the order of the supported list.

0 commit comments

Comments
 (0)