OpenWA icon indicating copy to clipboard operation
OpenWA copied to clipboard

feat(dashboard): add Chinese translations

Open jr-everstar opened this issue 6 months ago • 1 comments

Description

Adds Simplified Chinese (zh-CN) and Hong Kong Traditional Chinese (zh-HK) translations for the dashboard. Also updates the language selector from a two-language cycle button to a four-language selector, and adds language selection to the login form before authentication.

Type of Change

  • [ ] Bug fix
  • [x] New feature
  • [ ] Breaking change
  • [ ] Documentation update

Checklist

  • [ ] Tests added/updated
  • [ ] Documentation updated
  • [x] Lint passes
  • [x] Self-reviewed

Screenshots (if applicable)

Screenshot 2026-05-28 at 9 31 53 Screenshot 2026-05-28 at 9 31 44

jr-everstar avatar May 28 '26 00:05 jr-everstar

No automated tests were added because the dashboard does not currently have i18n-specific test coverage. Verified with lint, build, locale key parity checks, and manual browser testing.

jr-everstar avatar May 28 '26 00:05 jr-everstar

Coordination note for the i18n PRs (#145, #149, #150, and the now-closed #86): we have several PRs that each rewrite the shared language registry (dashboard/src/i18n/index.ts) and the Layout.tsx selector, so they hard-conflict and only one selector can win.

We'd like to standardize on this PR's (#150) language picker as the canonical implementation — it has the richest model (languageOptions {value,label,compactLabel}, resolveSupportedLanguage() with zh subtag mapping, the login-screen picker, and an accessible menu). #86 (Simplified Chinese) has been closed and folded in here.

Plan: land #150 first (Simplified + Traditional Chinese + the picker), then have #145 (Arabic) and #149 (Telugu+French) rebase onto it, contributing only their locale JSON + a registry entry. @jr-everstar — are you up for #150 being the base? If so, could you rebase onto current main (it's now at v0.1.8)? Happy to review promptly once it's green.

rmyndharis avatar Jun 13 '26 17:06 rmyndharis

Included in the v0.2.0 release (#229) with credit in the CHANGELOG — thank you for the contribution! Closing in favor of the consolidated release PR.

rmyndharis avatar Jun 15 '26 01:06 rmyndharis