diff --git a/components/datetime/src/neo.rs b/components/datetime/src/neo.rs index 9b06d7e223b..68525609d2d 100644 --- a/components/datetime/src/neo.rs +++ b/components/datetime/src/neo.rs @@ -56,11 +56,17 @@ define_preferences!( [Copy] DateTimeFormatterPreferences, { - /// The user's preferred numbering system + /// The user's preferred numbering system. + /// + /// Corresponds to the `-u-nu` in Unicode Locale Identifier. numbering_system: NumberingSystem, - /// The user's preferred hour cycle + /// The user's preferred hour cycle. + /// + /// Corresponds to the `-u-hc` in Unicode Locale Identifier. hour_cycle: HourCycle, /// The user's preferred calendar system + /// + /// Corresponds to the `-u-ca` in Unicode Locale Identifier. calendar_algorithm: CalendarAlgorithm } ); diff --git a/components/decimal/src/lib.rs b/components/decimal/src/lib.rs index 083084f5c16..e62d96826a5 100644 --- a/components/decimal/src/lib.rs +++ b/components/decimal/src/lib.rs @@ -120,7 +120,9 @@ define_preferences!( [Copy] FixedDecimalFormatterPreferences, { - /// Numbering System. Corresponds to the `-u-nu` in Unicode Locale Identifier. + /// The user's preferred numbering system. + /// + /// Corresponds to the `-u-nu` in Unicode Locale Identifier. numbering_system: NumberingSystem } ); diff --git a/components/experimental/src/compactdecimal/formatter.rs b/components/experimental/src/compactdecimal/formatter.rs index 08c980a130f..e9565cad2ca 100644 --- a/components/experimental/src/compactdecimal/formatter.rs +++ b/components/experimental/src/compactdecimal/formatter.rs @@ -28,7 +28,9 @@ define_preferences!( [Copy] CompactDecimalFormatterPreferences, { - /// The numbering system used for formatting. + /// The user's preferred numbering system. + /// + /// Corresponds to the `-u-nu` in Unicode Locale Identifier. numbering_system: NumberingSystem } ); diff --git a/components/experimental/src/dimension/currency/compact_formatter.rs b/components/experimental/src/dimension/currency/compact_formatter.rs index 01a9e1de532..a7d4d6247f5 100644 --- a/components/experimental/src/dimension/currency/compact_formatter.rs +++ b/components/experimental/src/dimension/currency/compact_formatter.rs @@ -29,6 +29,9 @@ define_preferences!( [Copy] CompactCurrencyFormatterPreferences, { + /// The user's preferred numbering system. + /// + /// Corresponds to the `-u-nu` in Unicode Locale Identifier. numbering_system: NumberingSystem } ); diff --git a/components/experimental/src/dimension/currency/formatter.rs b/components/experimental/src/dimension/currency/formatter.rs index ec08f236a3b..22522e93f93 100644 --- a/components/experimental/src/dimension/currency/formatter.rs +++ b/components/experimental/src/dimension/currency/formatter.rs @@ -26,6 +26,9 @@ define_preferences!( [Copy] CurrencyFormatterPreferences, { + /// The user's preferred numbering system. + /// + /// Corresponds to the `-u-nu` in Unicode Locale Identifier. numbering_system: NumberingSystem } ); diff --git a/components/experimental/src/dimension/percent/formatter.rs b/components/experimental/src/dimension/percent/formatter.rs index 4012c8179ea..97ea0a69aa1 100644 --- a/components/experimental/src/dimension/percent/formatter.rs +++ b/components/experimental/src/dimension/percent/formatter.rs @@ -25,6 +25,9 @@ define_preferences!( [Copy] PercentFormatterPreferences, { + /// The user's preferred numbering system. + /// + /// Corresponds to the `-u-nu` in Unicode Locale Identifier. numbering_system: NumberingSystem } ); diff --git a/components/experimental/src/dimension/units/formatter.rs b/components/experimental/src/dimension/units/formatter.rs index 7754189dbdb..6d63b85fe25 100644 --- a/components/experimental/src/dimension/units/formatter.rs +++ b/components/experimental/src/dimension/units/formatter.rs @@ -26,6 +26,9 @@ define_preferences!( [Copy] UnitsFormatterPreferences, { + /// The user's preferred numbering system. + /// + /// Corresponds to the `-u-nu` in Unicode Locale Identifier. numbering_system: NumberingSystem } ); diff --git a/components/experimental/src/displaynames/displaynames.rs b/components/experimental/src/displaynames/displaynames.rs index c7567e5410c..2472af1809a 100644 --- a/components/experimental/src/displaynames/displaynames.rs +++ b/components/experimental/src/displaynames/displaynames.rs @@ -17,7 +17,7 @@ use icu_provider::prelude::*; use potential_utf::PotentialUtf8; define_preferences!( - /// The preferences for list formatting. + /// The preferences for display names. [Copy] DisplayNamesPreferences, {} diff --git a/components/experimental/src/displaynames/mod.rs b/components/experimental/src/displaynames/mod.rs index 64056796949..7171e828f38 100644 --- a/components/experimental/src/displaynames/mod.rs +++ b/components/experimental/src/displaynames/mod.rs @@ -25,6 +25,7 @@ mod displaynames; mod options; pub mod provider; +pub use displaynames::DisplayNamesPreferences; pub use displaynames::LanguageDisplayNames; pub use displaynames::LocaleDisplayNamesFormatter; pub use displaynames::RegionDisplayNames; diff --git a/components/experimental/src/duration/formatter.rs b/components/experimental/src/duration/formatter.rs index 0db5cd327c0..f6b1b26783c 100644 --- a/components/experimental/src/duration/formatter.rs +++ b/components/experimental/src/duration/formatter.rs @@ -26,6 +26,9 @@ define_preferences!( [Copy] DurationFormatterPreferences, { + /// The user's preferred numbering system. + /// + /// Corresponds to the `-u-nu` in Unicode Locale Identifier. numbering_system: NumberingSystem } ); diff --git a/components/experimental/src/duration/mod.rs b/components/experimental/src/duration/mod.rs index 630d0196b5c..755203d3bfe 100644 --- a/components/experimental/src/duration/mod.rs +++ b/components/experimental/src/duration/mod.rs @@ -17,3 +17,4 @@ mod validated_options; pub use duration::{Duration, DurationSign}; pub use format::FormattedDuration; pub use formatter::DurationFormatter; +pub use formatter::DurationFormatterPreferences; diff --git a/components/experimental/src/relativetime/mod.rs b/components/experimental/src/relativetime/mod.rs index e1a549c926a..2ca0bce9789 100644 --- a/components/experimental/src/relativetime/mod.rs +++ b/components/experimental/src/relativetime/mod.rs @@ -14,3 +14,4 @@ mod relativetime; pub use format::FormattedRelativeTime; pub use options::RelativeTimeFormatterOptions; pub use relativetime::RelativeTimeFormatter; +pub use relativetime::RelativeTimeFormatterPreferences;