use std::sync::OnceLock;

use lazy_static::lazy_static;
use sys_locale::get_locale;

pub static LIST_H_MARGIN: u16 = 2;
pub static DEF_LOCALES: OnceLock<&'static str> = OnceLock::new();

lazy_static! {
    pub static ref LOCALES: String = get_locale()
        .map(|s| { s.split('-').next().unwrap_or("en").to_string() })
        .unwrap_or_else(|| "en".to_string());
}
