icu_list
Formatting lists in a locale-sensitive way.
This module is published as its own crate (icu_list
)
and as part of the icu
crate. See the latter for more details on the ICU4X project.
Examples
Formatting and lists in Spanish
let list_formatter = try_new_and_with_length
.expect;
assert_writeable_eq!;
// The Spanish 'y' sometimes becomes an 'e':
assert_writeable_eq!;
Formatting or lists in Thai
let list_formatter = try_new_or_with_length
.expect;
// We can use any Writeables as inputs
assert_writeable_eq!;
Formatting unit lists in English
let list_formatter = try_new_unit_with_length
.expect;
assert_writeable_eq!;
Note: this last example is not fully internationalized. See icu4x/2192 for full unit handling.
More Information
For more information on development, authorship, contributing etc. please visit ICU4X home page
.