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

+7 -6
View File
@@ -53,13 +53,14 @@ impl CadCommand for MoveCommand {
fn prompt(&self) -> String {
match &self.step {
Step::Base => format!(
"MOVE Specify base point [{} objects]:",
self.handles.len()
Step::Base => crate::tr!(
"command-move-base",
count = (self.handles.len() as i64),
),
Step::Target(base) => format!(
"MOVE Specify destination [base {:.3},{:.3}]:",
base.x, base.y
Step::Target(base) => crate::tr!(
"command-move-target",
x = format!("{:.3}", base.x),
y = format!("{:.3}", base.y),
),
}
}