Skip to content

Add Simplified Chinese (zh-CN) localization - #480

Open
x9658xc wants to merge 3 commits into
hass-agent:mainfrom
x9658xc:feature/zh-CN-translation
Open

Add Simplified Chinese (zh-CN) localization#480
x9658xc wants to merge 3 commits into
hass-agent:mainfrom
x9658xc:feature/zh-CN-translation

Conversation

@x9658xc

@x9658xc x9658xc commented Aug 31, 2026

Copy link
Copy Markdown

Description

This PR adds complete Simplified Chinese (zh-CN) translation for HASS.Agent.

Changes

  • Added Languages.zh-CN.resx for the main HASS.Agent project (960 strings translated)
  • Added Languages.zh-CN.resx for the HASS.Agent.Shared library (912 strings translated)
  • Total: 1872 UI strings translated to Simplified Chinese

Translation Notes

  • Proper nouns kept in English (HASS.Agent, Home Assistant, MQTT, API, etc.)
  • Button shortcuts converted: &Test测试(&T)
  • Technical terms translated consistently (Broker→代理, Sensor→传感器, Command→命令, etc.)
  • HTML entities and placeholders ({0}, {1}) preserved

- Register zh-CN in LocalizationManager supported culture list
- Add 49 .zh-CN.resx resource files (skeleton + translated entries)
- Translate Onboarding-3-API API token instructions

Note: main Languages.zh-CN.resx (965 strings) and Shared Languages.zh-CN.resx (917 strings) still contain English values pending translation.
- Translate all 960 strings in main Languages.zh-CN.resx
- Translate all 912 strings in Shared Languages.zh-CN.resx
- Total: 1872 UI strings translated to Simplified Chinese
Translate subagents converted &X shortcut markers to &X, breaking
XML parsing and causing resource load failures. Fixed 216 unescaped
ampersands across both Languages.zh-CN.resx files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant