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

No files matched your search

+2
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));