|
@@ -57,8 +57,10 @@ fn resolve_config_path(cli_config: &str) -> std::path::PathBuf {
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
#[tokio::main]
|
|
|
async fn main() -> Result<()> {
|
|
async fn main() -> Result<()> {
|
|
|
- // Auto-detect system locale for translations
|
|
|
|
|
- let _ = fluent_i18n::set_locale(None);
|
|
|
|
|
|
|
+ // Locale: check LANG env var first (works on macOS where sys-locale
|
|
|
|
|
+ // reads system prefs instead of the env), fall back to auto-detect.
|
|
|
|
|
+ let locale = std::env::var("LANG").ok();
|
|
|
|
|
+ let _ = fluent_i18n::set_locale(locale.as_deref());
|
|
|
tracing_subscriber::fmt::init();
|
|
tracing_subscriber::fmt::init();
|
|
|
let cli = Cli::parse();
|
|
let cli = Cli::parse();
|
|
|
|
|
|