diff options
| author | Somhairle H. Marisol <[email protected]> | 2026-09-20 21:38:46 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-09-20 21:38:46 +0800 |
| commit | c64779031d8459c44d78916ab6e38e80d2532a1c (patch) | |
| tree | 5cddbc68f3708ce58650ddd172483f5fe9e14fe0 /src/LivingVillage.Desktop/M6Presentation.fs | |
| parent | c5ff7685e5b3ac5dc46fce74ef1b302de09af1e6 (diff) | |
| download | living-village-c64779031d8459c44d78916ab6e38e80d2532a1c.tar.gz | |
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.
Diffstat (limited to 'src/LivingVillage.Desktop/M6Presentation.fs')
| -rw-r--r-- | src/LivingVillage.Desktop/M6Presentation.fs | 13 |
1 files changed, 9 insertions, 4 deletions
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倍速" |
