mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-18 07:43:01 +08:00
lang: modify lang.rs to add Thai language
This commit is contained in:
parent
becf2a9cd7
commit
c5205af73f
@ -29,6 +29,7 @@ mod gr;
|
||||
mod sv;
|
||||
mod sq;
|
||||
mod sr;
|
||||
mod th;
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
pub static ref LANGS: Value =
|
||||
@ -61,6 +62,7 @@ lazy_static::lazy_static! {
|
||||
("sv", "Svenska"),
|
||||
("sq", "Shqip"),
|
||||
("sr", "Srpski"),
|
||||
("th", "ภาษาไทย"),
|
||||
]);
|
||||
}
|
||||
|
||||
@ -117,6 +119,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
|
||||
"sv" => sv::T.deref(),
|
||||
"sq" => sq::T.deref(),
|
||||
"sr" => sr::T.deref(),
|
||||
"th" => th::T.deref(),
|
||||
_ => en::T.deref(),
|
||||
};
|
||||
if let Some(v) = m.get(&name as &str) {
|
||||
|
Loading…
Reference in New Issue
Block a user