summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-23 23:45:40 +0100
committerColin Reeder <colin@vpzom.click>2020-12-23 16:17:02 -0700
commit59ef6b91e3e8681885a9d97cc5786a327cf26214 (patch)
tree39ce73ae457913c2cb1fa841cb65b102e76069d7
parentacdcb6e5870e731c958fd466098af64e2a0e8b15 (diff)
Include german translation in LANG_MAP
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 99a57a3..1bd7be8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -95,6 +95,7 @@ lazy_static::lazy_static! {
static ref LANG_MAP: HashMap<unic_langid::LanguageIdentifier, fluent::FluentResource> = {
let mut result = HashMap::new();
+ result.insert(unic_langid::langid!("de"), fluent::FluentResource::try_new(include_str!("../res/lang/de.ftl").to_owned()).expect("Failed to parse translation"));
result.insert(unic_langid::langid!("en"), fluent::FluentResource::try_new(include_str!("../res/lang/en.ftl").to_owned()).expect("Failed to parse translation"));
result.insert(unic_langid::langid!("eo"), fluent::FluentResource::try_new(include_str!("../res/lang/eo.ftl").to_owned()).expect("Failed to parse translation"));
result.insert(unic_langid::langid!("fr"), fluent::FluentResource::try_new(include_str!("../res/lang/fr.ftl").to_owned()).expect("Failed to parse translation"));