feat(iced): add internationalization support

This commit is contained in:
2026-07-15 17:48:54 +03:00
parent 89912e2bc3
commit 45f222b4a0
3 changed files with 91 additions and 0 deletions
@@ -14,6 +14,7 @@
use crate::ai_chat::{self, AiChatState, ChatMessage, SYSTEM_PROMPT};
use crate::dialogs;
use crate::i18n;
use crate::dock::state::{DockState, PaneType};
use crate::io::tablet::TabletState;
use crate::panels;
@@ -191,6 +192,8 @@ pub struct HcieIcedApp {
pub dock_profile_rename_buf: String,
/// Whether the dock profile dialog is visible.
pub show_dock_profile_dialog: bool,
/// Current UI language for internationalization.
pub language: i18n::Language,
}
/// A recently opened file entry.
@@ -745,6 +748,7 @@ impl HcieIcedApp {
dock_profile_rename_idx: None,
dock_profile_rename_buf: String::new(),
show_dock_profile_dialog: false,
language: i18n::Language::default(),
};
// Apply saved settings to tool state