pub fn i18n(key: &str) -> String {
    let language = std::env::var("I18N_LANGUAGE");
    match language {
        Ok(lang) => i18n_with_language(key, &lang),
        Err(_) => key.to_string(),
    }
}
/// get i18n value for ENV `I18N_LANGUAGE` language
///
/// - if ENV `I18N_LANGUAGE` not exist, key will be returned
///
/// # Examples
///
/// ```
/// // a-b-c = "blabla";
///
/// let s = i18n("a-b-c");
/// println!("{}", s);
/// ```
get i18n value for ENV `I18N_LANGUAGE` language
if ENV `I18N_LANGUAGE` not exist, key will be returned
get i18n value for ENV ` I18N_LANGUAGE ` language if ENV ` I18N_LANGUAGE ` not exist key will be returned
pub fn i18n(key: &str) -> String {
    let language = std::env::var("I18N_LANGUAGE");
    match language {
        Ok(lang) => i18n_with_language(key, &lang),
        Err(_) => key.to_string(),
    }
}
pub fn i18n ( key : & str ) -> String { let language = std :: env :: var ( " " ) ; match language { Ok ( lang ) => i18n_with_language ( key , & lang ) , Err ( _ ) => key . to_string ( ) , } }
get i18n value for ENV `I18N_LANGUAGE` language
 if ENV `I18N_LANGUAGE` not exist, key will be returned
get i18n value for ENV ` I18N_LANGUAGE ` language if ENV ` I18N_LANGUAGE ` not exist key will be returned
key
&str
key
&str
examples
None