fix: not actually using locale

This commit is contained in:
iff 2024-09-26 03:02:00 +02:00
parent ff3ceea00e
commit 13fed3740f

View file

@ -29,6 +29,8 @@ i18n!("i18n", fallback = "en", minify_key = true);
fn main() { fn main() {
colored::control::set_override(true); colored::control::set_override(true);
let locale = std::env::var("LANG").unwrap_or("en_US".to_string());
rust_i18n::set_locale(&locale[0..2]);
args::handle_args(); args::handle_args();