feat(locale): add Fluent translations

Default to the platform language with persisted overrides across native and web builds.

Refs #630
This commit is contained in:
Hakan Seven committed 2026-08-02 18:53:38 +03:00
1 parent e102887000
commit b90b3e3ecf
26 files changed
+1581 -112

No files matched your search

+4
View File
@@ -151,6 +151,9 @@ pub struct UserSettings {
/// (#188).
pub bg_color: Option<[u8; 3]>,
pub paper_bg_color: Option<[u8; 3]>,
/// Interface language preference. `System` negotiates against the
/// platform locale on every launch.
pub language: crate::i18n::Language,
}
impl Default for UserSettings {
@@ -177,6 +180,7 @@ impl Default for UserSettings {
pick_drag_rect: false,
bg_color: None,
paper_bg_color: None,
language: crate::i18n::Language::default(),
}
}
}