feat(dashboard): add Chinese translations
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)
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.
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.
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.