feat(locale): localize full interface

This commit is contained in:
Hakan Seven committed 2026-08-02 22:09:25 +03:00
1 parent b90b3e3ecf
commit 3e6693b93f
205 files changed
+32369 -3810

No files matched your search

+6 -4
View File
@@ -18,6 +18,7 @@ use glam::{DVec3, Mat4, Vec3};
use crate::command::{CadCommand, CmdResult};
use crate::modules::{IconKind, ModuleEvent, ToolDef};
use crate::scene::model::wire_model::WireModel;
use crate::t;
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/leader.svg"));
@@ -52,12 +53,13 @@ impl CadCommand for LeaderCommand {
fn prompt(&self) -> String {
if self.verts.is_empty() {
"LEADER Specify arrowhead point:".into()
t!("LEADER Specify arrowhead point:").into_owned()
} else {
format!(
"LEADER Specify next point [{} pts — Enter to place text]:",
self.verts.len()
t!(
"LEADER Specify next point [%{count} pts — Enter to place text]:",
count = self.verts.len()
)
.into_owned()
}
}