Skip to content

feat: add Chinese language support (#200)#210

Merged
vide merged 2 commits intomainfrom
feature/issue-200-chinese-language
Mar 21, 2026
Merged

feat: add Chinese language support (#200)#210
vide merged 2 commits intomainfrom
feature/issue-200-chinese-language

Conversation

@vide
Copy link
Owner

@vide vide commented Mar 21, 2026

Summary

Adds Simplified Chinese (简体中文) as the 5th supported language.

Closes #200

Implementation

  • values-zh/strings.xml: All 448 strings + 7 plurals translated to Simplified Chinese
  • locale_config.xml: Added zh locale entry
  • Fastlane metadata: Created zh-CN/ directory with title, short description, full description, and latest changelog
  • CLAUDE.md: Updated locale lists (both string resources and fastlane sections)

Translation notes

  • Technical terms preserved untranslated: AC, DC, kW, kWh, Wh, km, mi, mph, km/h, psi, bar, SoC, BMS, API, URL, MateDroid, TeslaMate, Tesla, Sentry, EPA, WLTP, NCM, LFP, TPMS
  • Car variant names (MY pre-2025, M3 2024+, etc.) kept as-is since they are product identifiers
  • Chinese does not inflect for number, so plural one/other items are identical
  • All format specifiers (%s, %d, %1$s, etc.) preserved exactly

Test plan

  • Switch phone to Chinese (简体中文) → app displays in Chinese
  • Verify formatted strings (battery %, distances, temperatures) render correctly
  • Verify technical terms (kW, kWh, etc.) appear untranslated
  • @Denielliu — please review the translations for accuracy

🤖 Generated with Claude Code

Add Simplified Chinese (简体中文) as the 5th supported language.

- Create values-zh/strings.xml with all 448 strings + 7 plurals
  translated to Simplified Chinese
- Add zh locale to locale_config.xml
- Create fastlane metadata for zh-CN (title, descriptions, changelog)
- Update CLAUDE.md to reference the new locale
- Technical terms (AC, DC, kW, kWh, etc.) kept untranslated

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vide vide mentioned this pull request Mar 21, 2026
Fix 11 issues found during review:
- Fix unnatural word order: 休眠自 → 自...起休眠, 离线自 → 自...起离线
- Fix awkward calque: 保持知情 → 及时了解车况
- Fix over-translation: 电量过高警告 → 高电量状态
- Fix wrong term: 车厢温度 → 车内温度 (车厢 = train car)
- Unify summary/overview: 摘要 → 概览 (consistent with rest of app)
- Unify driving term: 驾驶 → 行驶 (consistent with dashboard)
- Fix brevity: 实时功率 → 实时 (match compact English "instant")
- Fix weather: 多云 → 局部多云 (partly cloudy, not mostly cloudy)
- Fix channel name: 充电通知 → 充电动态 (sessions, not notifications)

Also confirmed: Latin unit symbols (kWh, kW, km/h, °C, bar) are correct
per Chinese GB 3100-1993 standard and Tesla China app convention.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vide vide merged commit bd1b9bc into main Mar 21, 2026
1 check passed
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.

Chinese language support

1 participant