aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index de7bc73..d810159 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -15,6 +15,7 @@ mod utils;
use std::{collections::HashSet, time::Duration};
use poem::http::StatusCode;
+use poem::i18n::unic_langid::langid;
use poem::i18n::{I18NResources, Locale};
use poem::{
endpoint::EmbeddedFilesEndpoint,
@@ -203,6 +204,7 @@ async fn main() -> std::result::Result<(), std::io::Error> {
let resources = I18NResources::builder()
.add_path("./resources")
+ .default_language(langid!("en"))
.build()
.unwrap();