aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/locale.rs6
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"],
+};