From 3b01001a36199953f58b50948149e8c8e08c1908 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Tue, 25 Dec 2018 18:39:28 +0100 Subject: Add Norwegian Nynorsk locale. --- src/locale.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/locale.rs b/src/locale.rs index 7d4b940..26e3aeb 100644 --- a/src/locale.rs +++ b/src/locale.rs @@ -36,6 +36,7 @@ impl Locale { fn from_locale_str(l: &str) -> &'static Locale { match &l[0..2] { "nb" => &NB, + "nn" => &NN, _ => &EN, // Return default EN locale if we don't have a locale for the given str. } } @@ -58,3 +59,8 @@ pub const NB: Locale = Locale { weekdays: ["mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag", "søndag"], months: ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember"], }; + +pub const NN: Locale = Locale { + weekdays: ["måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag", "søndag"], + months: ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember"], +}; -- cgit v1.2.3