Skip to content
Snippets Groups Projects
Verified Commit cae7b9b9 authored by Dominic Meiser's avatar Dominic Meiser
Browse files

add default language

parent 4612cbdf
No related branches found
No related tags found
No related merge requests found
...@@ -94,6 +94,12 @@ pub const BRITISH: Language<'static> = Language { ...@@ -94,6 +94,12 @@ pub const BRITISH: Language<'static> = Language {
questions_feedback: "Questions, Suggestions and Feedback" questions_feedback: "Questions, Suggestions and Feedback"
}; };
impl Default for Language<'static> {
fn default() -> Self {
GERMAN
}
}
impl FromStr for Language<'static> { impl FromStr for Language<'static> {
type Err = anyhow::Error; type Err = anyhow::Error;
......
...@@ -154,6 +154,7 @@ struct ProjectLecture { ...@@ -154,6 +154,7 @@ struct ProjectLecture {
docent: String, docent: String,
#[serde_as(as = "DisplayFromStr")] #[serde_as(as = "DisplayFromStr")]
date: Date, date: Date,
#[serde(default = "Default::default")]
#[serde_as(as = "DisplayFromStr")] #[serde_as(as = "DisplayFromStr")]
lang: Language<'static> lang: Language<'static>
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment