From 82ef62654f58eb6212fad1beb3adb2c1c979fb56 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sat, 10 Feb 2024 23:44:10 +0000 Subject: add pt, de, fr, ja and zh translations --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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(); -- cgit