chore: default locale & request timeout

This commit is contained in:
iff 2024-11-20 00:18:10 +01:00
parent a44e8b0fbe
commit d1b42d1c59
2 changed files with 2 additions and 1 deletions

View file

@ -40,7 +40,7 @@ i18n!("i18n", fallback = "en", minify_key = true);
fn main() {
colored::control::set_override(true);
// let locale = std::env::var("LANG").unwrap_or("en_US".to_string());
let locale = get_locale().unwrap_or("en_US".to_string());
let locale = get_locale().unwrap_or("en-US".to_string());
rust_i18n::set_locale(&locale[0..2]);
#[cfg(feature = "request-ai")]