feat(i18n): complete Japanese localization and eliminate UI hardcoded strings (#753)

Completes the Japanese catalog (all commands, panels, dialogs and preferences) and routes the remaining hard-coded UI labels through the translation lookup. English stays the default.
This commit is contained in:
Mithril_MEX authored and GitHub committed 2026-10-13 13:24:24 -04:00
1 parent a8b3b21fd0
commit d437c21368
35 files changed
+2219 -265

No files matched your search

+7
View File
@@ -222,6 +222,13 @@ mod tests {
assert_eq!(ja.text("ui.preferences"), "環境設定");
assert_eq!(ja.label("Extrude"), "押し出し");
assert_eq!(ja.label("CREATE SKETCH"), "スケッチを作成");
assert_eq!(ja.label("New Component"), "新規コンポーネント");
assert_eq!(ja.label("UTILITIES"), "ユーティリティ");
assert_eq!(ja.label("CONFIGURE"), "構成");
assert_eq!(ja.label("Drive Joints"), "ジョイントを駆動");
assert_eq!(ja.label("Axis Through Cylinder/Cone/Torus"), "円柱/円錐/トーラスを通る軸");
assert_eq!(ja.label("Filter commands or keys"), "コマンドまたはキーを検索");
assert_eq!(ja.label("Context menu"), "コンテキスト メニュー");
assert_eq!(ja.label("NonExistentKey"), "NonExistentKey");
assert_eq!(Locale::for_language("unknown").text("ui.preferences"), "Preferences");
static PARTIAL: Catalog = Catalog::new("test", "Test", r#"{"ui.preferences":"Prefs"}"#);