icu4x
icu4x copied to clipboard
Solving i18n for client-side and resource-constrained environments.
when I user use call `multiply_pow10` in `FixedDecimal` and an overflow happen, what shall we do: 1. Set the number to Zero 2. cut from the number (for example: if...
As I'm implementing Dates in DataProvider and testing them using `DateTimeFormat`, I have some questions about how should we structure that. Generally, the data in question looks like this: https://github.com/unicode-cldr/cldr-dates-modern/tree/master/main/en...
Section [3.1.1 Collation Type Fallback](https://unicode.org/reports/tr35/tr35-collation.html#311-collation-type-fallback) in LDML Collation step 4 says: > If it does not exist, and the type starts with "search" but is longer, then set the type...
#1965 is about the CLDR collation alias mechanism. Some collations are logically aliases but are implemented as duplicated data via import. Ensure that these work and the data is deduplicated:...
Ensure that the provider is performs these alias mappings from CLDR for collations (Traditional Chinese and Norwegian have more specific issues): pa_IN: pa_Guru_IN sr_RS: sr_Cyrl_RS ars: ar_SA in_ID: id_ID iw:...
Ensure that if a specific (and existing) collation hasn't been specified with `-u-co-`, the following map to `zh-u-co-stroke`: * `zh-Hant` regardless of region. * `zh` without `Hans` but with any...
Thought: After this is merged, we can take care of the "remove irrelevant extensions" piece within the data provider vertical fallback. _Originally posted by @sffc in https://github.com/unicode-org/icu4x/pull/1706#discussion_r876486611_
Cleanup from comments in PRs #1876 and #1901: - [x] Figure out `'static` bound on the const constructor for `BorrowedVariant` https://github.com/unicode-org/icu4x/pull/1901#discussion_r876405607 - [x] Add `Slice` to `ZeroMapKV` https://github.com/unicode-org/icu4x/pull/1901#discussion_r876406165 - [x]...
``` #[test] fn test_coptic_regression() { let iso_date = Date::new_iso_date(-100, 3, 3).unwrap(); let coptic = iso_date.to_calendar(Coptic); } ``` This fails with: ``` ---- coptic::tests::test_coptic_regression stdout ---- thread 'coptic::tests::test_coptic_regression' panicked at 'called...
We currently have AnyDateTimeFormatter and AnyZonedDateTimeFormatter. We should also have AnyDateFormatter.