From c64779031d8459c44d78916ab6e38e80d2532a1c Mon Sep 17 00:00:00 2001 From: "Somhairle H. Marisol" Date: Sun, 20 Sep 2026 21:38:46 +0800 Subject: feat(desktop): localize village presentation labels [Change Nature] - This commit adds the Chinese display layer for the desktop village prototype. [New Capability] - Menu, settings, controls, interaction panels, chronicle entries, trade results, day-night labels, and speed labels now use Chinese copy. [Implementation] - Keep simulation state, commands, and machine-readable status strings unchanged. - Add focused formatter coverage and update affected presentation assertions. [Impact] - Desktop presentation behavior is localized without changing Kernel or simulation logic. - Existing release build and test coverage remain green. --- src/LivingVillage.Desktop/M6Presentation.fs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/LivingVillage.Desktop/M6Presentation.fs') diff --git a/src/LivingVillage.Desktop/M6Presentation.fs b/src/LivingVillage.Desktop/M6Presentation.fs index 410f20a..b6c24fa 100644 --- a/src/LivingVillage.Desktop/M6Presentation.fs +++ b/src/LivingVillage.Desktop/M6Presentation.fs @@ -15,6 +15,11 @@ type M6RenderProfile = module M6Presentation = + let dayNightLabel mode : string = + match mode with + | Day -> "白天" + | Night -> "夜晚" + let profileAtTick (tick: int64) : M6RenderProfile = if Sim.isNightTick tick then { Mode = Night @@ -27,9 +32,9 @@ module M6Presentation = let clockLabel (control: SimulationControl) : string = if control.Paused then - "PAUSED" + "暂停" else match control.Speed with - | OneX -> "1X" - | TwoX -> "2X" - | FiveX -> "5X" + | OneX -> "1倍速" + | TwoX -> "2倍速" + | FiveX -> "5倍速" -- cgit v1.2.3