rustftechh 0.1.1

A blazingly fast, highly extensible, and feature-rich system information tool written in Rust with fastfetch parity and multi-distro logos
1
2
3
4
5
6
7
8
9
10
use crate::utils::clean;
use std::env;

pub fn detect_locale() -> Option<String> {
    env::var("LC_ALL")
        .or_else(|_| env::var("LANG"))
        .or_else(|_| env::var("LC_MESSAGES"))
        .ok()
        .map(|s| clean(&s))
}