This commit is contained in:
RustDesk
2026-06-22 14:47:12 +08:00
committed by GitHub
parent 2747d3d8b4
commit dcc64cdeae
2 changed files with 69 additions and 7 deletions

View File

@@ -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));