From 8be7331cb62ddc75b405ddf4d5610a20db972434 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Wed, 29 Dec 2021 00:48:58 +0800 Subject: [PATCH] add it --- src/lang.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lang.rs b/src/lang.rs index d45461f09..aae31554c 100644 --- a/src/lang.rs +++ b/src/lang.rs @@ -4,6 +4,7 @@ use std::ops::Deref; mod cn; mod en; mod fr; +mod it; #[cfg(not(any(target_os = "android", target_os = "ios")))] pub fn translate(name: String) -> String { @@ -25,6 +26,7 @@ pub fn translate_locale(name: String, locale: &str) -> String { let m = match lang.to_lowercase().as_str() { "fr" => fr::T.deref(), "cn" => cn::T.deref(), + "it" => it::T.deref(), _ => en::T.deref(), }; if let Some(v) = m.get(&name as &str) {