icu4x 0.8.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/Cargo.lock +119 -139
- data/README.md +3 -8
- data/ext/icu4x/Cargo.toml +10 -9
- data/ext/icu4x/src/data_generator.rs +1 -1
- data/ext/icu4x/src/datetime_format.rs +470 -19
- data/ext/icu4x/src/display_names.rs +3 -3
- data/ext/icu4x/src/lib.rs +1 -0
- data/ext/icu4x/src/list_format.rs +46 -9
- data/ext/icu4x/src/locale.rs +62 -4
- data/ext/icu4x/src/number_format.rs +85 -17
- data/ext/icu4x/src/parts_collector.rs +117 -0
- data/ext/icu4x/src/plural_rules.rs +62 -13
- data/ext/icu4x/src/relative_time_format.rs +58 -11
- data/ext/icu4x_macros/Cargo.toml +1 -1
- data/lib/icu4x/data_gem_task.rb +7 -1
- data/lib/icu4x/version.rb +1 -1
- data/lib/icu4x/yard_docs.rb +180 -6
- data/lib/icu4x.rb +44 -11
- data/sig/icu4x.rbs +45 -3
- metadata +19 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e325a3954b6ced7e74233f9932c136e417028cda9f87770fe3f6d46daadd6e93
|
|
4
|
+
data.tar.gz: 61fdc9da91abc2e3f1146e1398be2ac7248dd8e37f8158f5c4f9acd71a065b05
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50ffdd36e7e8aaff6cb04136616314b295c7bec0909357d770d2cb8307a892d54820298cebf35221afc99587d4fcbbb55a4ac68bdfa125b3de46af93c59c2d5a
|
|
7
|
+
data.tar.gz: 0b632c37b59bb2abbada6686dd3a51b32b59d7619f41893f2da1b070cef59a53e896dc6aa15b564c9c7a41ca23f6cda39e8009e6aff50314b27e8f1944d0ca83
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.10.0] - 2026-05-08
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- `era:` option for `ICU4X::DateTimeFormat` to control era display (`:auto`, `:full`, `:with_era`, `:never`) (#144)
|
|
8
|
+
- Locale variant APIs: `ICU4X::Locale#variants`, `#add_variant!`, `#add_variant`, `#remove_variant!`, `#remove_variant` (#143)
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- `hour12: true/false` now maps to `Clock12`/`Clock24` for locale-aware hour cycle preference, not fixed `H12`/`H23` (#145)
|
|
13
|
+
- Declare `bigdecimal` as an explicit runtime dependency (#149)
|
|
14
|
+
- Remove deprecated `AnyCalendarKind::JapaneseExtended` (#141)
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Update ICU4X crates from 2.1 to 2.2 (CLDR 48.2, TZDB 2026a) (#138)
|
|
19
|
+
|
|
20
|
+
## [0.9.0] - 2026-02-01
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- `hour12` option for `ICU4X::DateTimeFormat` as a simpler alternative to `hour_cycle` (#132)
|
|
25
|
+
- Default behavior for `ICU4X::DateTimeFormat` when no options specified, matching JavaScript Intl.DateTimeFormat (#130)
|
|
26
|
+
- Component options for `ICU4X::DateTimeFormat` (`year`, `month`, `day`, `weekday`, `hour`, `minute`, `second`) as an alternative to style options (#129)
|
|
27
|
+
- Document numbering system support via BCP 47 locale extensions (`-u-nu-xxx`) for `NumberFormat`, `DateTimeFormat`, and `RelativeTimeFormat` (#127)
|
|
28
|
+
- `hour_cycle` option for `ICU4X::DateTimeFormat` to control 12/24-hour time display (#112)
|
|
29
|
+
- `ICU4X::RelativeTimeFormat#format_to_parts` method for breaking down formatted output into typed parts (#117)
|
|
30
|
+
- `ICU4X::ListFormat#format_to_parts` method for breaking down formatted output into typed parts (#116)
|
|
31
|
+
- `ICU4X::NumberFormat#format_to_parts` method for breaking down formatted output into typed parts (#115)
|
|
32
|
+
- `ICU4X::DateTimeFormat#format_to_parts` method for breaking down formatted output into typed parts (#114)
|
|
33
|
+
- `ICU4X::FormattedPart` data class for representing formatted parts (#113)
|
|
34
|
+
- `ICU4X::PluralRules#select_range` method for plural category selection on number ranges (#106)
|
|
35
|
+
- Allow data gems to be required by gem name (#104)
|
|
36
|
+
- `ICU4X::Locale.parse_bcp47` method for explicit BCP 47 parsing; `parse` is now an alias (#108)
|
|
37
|
+
|
|
3
38
|
## [0.8.1] - 2026-01-12
|
|
4
39
|
|
|
5
40
|
### Added
|