mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 22:40:09 +01:00
fix: not actually using locale
This commit is contained in:
parent
ff3ceea00e
commit
13fed3740f
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue