icu_locale_core/preferences/extensions/unicode/keywords/first_day.rs
1// This file is part of ICU4X. For terms of use, please see the file
2// called LICENSE at the top level of the ICU4X source tree
3// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
4
5use crate::preferences::extensions::unicode::enum_keyword;
6
7enum_keyword!(
8 /// A Unicode First Day Identifier defines the preferred first day of the week for calendar display.
9 ///
10 /// Specifying "fw" in a locale identifier overrides the default value specified by
11 /// supplemental week data for the region.
12 ///
13 /// The valid values are listed in [LDML](https://unicode.org/reports/tr35/#UnicodeFirstDayIdentifier).
14 FirstDay {
15 /// Sunday
16 ("sun" => Sun),
17 /// Monday
18 ("mon" => Mon),
19 /// Tuesday
20 ("tue" => Tue),
21 /// Wednesday
22 ("wed" => Wed),
23 /// Thursday
24 ("thu" => Thu),
25 /// Friday
26 ("fri" => Fri),
27 /// Saturday
28 ("sat" => Sat)
29}, "fw");