i18n: add Chinese, Korean and Russian interface languages

This commit is contained in:
neko233-com
2026-10-10 10:24:09 +08:00
committed by luohaojun
parent e8e010b446
commit 12bfdb0798
12 changed files with 1005 additions and 82 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ pub fn start() {
let _ = session.execute("file.new", serde_json::json!({"sample": "sales"}));
}
let app = SheetApp::new(session, services(inbox.clone(), cc.egui_ctx.clone()));
SheetApp::setup_context(&cc.egui_ctx, false);
SheetApp::setup_context_for_language(&cc.egui_ctx, false, app.ui.language);
Ok(Box::new(WebShell { app, inbox }))
}),
)
+1 -1
View File
@@ -191,7 +191,7 @@ fn main() -> eframe::Result<()> {
"GridCraft",
options,
Box::new(move |cc| {
SheetApp::setup_context(&cc.egui_ctx, app.ui.dark);
SheetApp::setup_context_for_language(&cc.egui_ctx, app.ui.dark, app.ui.language);
if let Some(port) = control_port {
match control_server::start(port, cc.egui_ctx.clone()) {
Ok(rx) => app.control_rx = Some(rx),