aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2024-02-10 23:44:10 +0000
committerLibravatar cel 🌸 <cel@blos.sm>2024-02-10 23:44:10 +0000
commit82ef62654f58eb6212fad1beb3adb2c1c979fb56 (patch)
tree780b23a25f8fe5bb3d0127427b7b5da3967c3a4f /src/main.rs
parent88fa09755ff31b39b0454f0da58bc41a90263e89 (diff)
downloadblossom-82ef62654f58eb6212fad1beb3adb2c1c979fb56.tar.gz
blossom-82ef62654f58eb6212fad1beb3adb2c1c979fb56.tar.bz2
blossom-82ef62654f58eb6212fad1beb3adb2c1c979fb56.zip
add pt, de, fr, ja and zh translations
Diffstat (limited to 'src/main.rs')
-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();