feat(iced): add internationalization support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user