mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-07-02 13:25:01 +03:00
cjk (#15379)
This commit is contained in:
@@ -902,8 +902,10 @@ pub fn get_async_job_status() -> String {
|
||||
#[inline]
|
||||
pub fn get_langs() -> String {
|
||||
use serde_json::json;
|
||||
let hide_cjk = crate::lang::cjk_ui_unavailable();
|
||||
let mut x: Vec<(&str, String)> = crate::lang::LANGS
|
||||
.iter()
|
||||
.filter(|a| !hide_cjk || !crate::lang::is_cjk_lang(a.0))
|
||||
.map(|a| (a.0, format!("{} ({})", a.1, a.0)))
|
||||
.collect();
|
||||
x.sort_by(|a, b| a.0.cmp(b.0));
|
||||
|
||||
Reference in New Issue
Block a user