diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-12-25 18:39:28 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-12-25 18:39:28 +0100 |
commit | 3b01001a36199953f58b50948149e8c8e08c1908 (patch) | |
tree | c55c49237d1bf5bdc1f4c587544b89210e13bd17 /src | |
parent | 0b4137250233bbe68ee5d76550edaa15a20a370e (diff) | |
download | primstav-3b01001a36199953f58b50948149e8c8e08c1908.tar.gz primstav-3b01001a36199953f58b50948149e8c8e08c1908.tar.bz2 primstav-3b01001a36199953f58b50948149e8c8e08c1908.zip |
Add Norwegian Nynorsk locale.
Diffstat (limited to 'src')
-rw-r--r-- | src/locale.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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"], +}; |