krik 0.1.13

A fast static site generator written in Rust with internationalization, theming, and modern web features
Documentation
#[derive(Debug, Clone)]
pub struct I18nManager {
}

impl I18nManager {
    pub fn new(_default_language: String) -> Self {
        Self {}
    }

    pub fn get_language_name(&self, lang_code: &str) -> String {
        match lang_code {
            "en" => "English".to_string(),
            "it" => "Italiano".to_string(),
            "es" => "Español".to_string(),
            "fr" => "Français".to_string(),
            "de" => "Deutsch".to_string(),
            "pt" => "Português".to_string(),
            "ja" => "日本語".to_string(),
            "zh" => "中文".to_string(),
            "ru" => "Русский".to_string(),
            "ar" => "العربية".to_string(),
            _ => lang_code.to_uppercase(),
        }
    }
}