1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Built-in locales and locale customization tools.
//!
//! The top-level helpers default to English. Switch locale-aware APIs such as
//! `number_with`, `duration_with`, `ago_with`, `list_with`, and `ordinal_with`
//! to another locale when you want localized separators, conjunctions, or unit
//! wording.
//!
//! # Examples
//!
//! ```rust
//! use humfmt::{list_with, number_with, NumberOptions, ListOptions};
//! use humfmt::locale::{CustomLocale, English};
//!
//! let english = number_with(15_320, NumberOptions::new().locale(English));
//! assert_eq!(english.to_string(), "15.3K");
//!
//! let custom = CustomLocale::english().and_word("plus").serial_comma(false);
//! let out = list_with(&["red", "green", "blue"], ListOptions::new().locale(custom));
//! assert_eq!(out.to_string(), "red, green plus blue");
//! ```
pub use ;
pub use English;
pub use Polish;
pub use Russian;
pub use ;