Skip to content

i18n: restore dashboard overview keys missed by upstream merge - #2

Merged
ItzArona merged 2 commits into
mainfrom
dev
May 18, 2026
Merged

i18n: restore dashboard overview keys missed by upstream merge#2
ItzArona merged 2 commits into
mainfrom
dev

Conversation

@ItzArona

Copy link
Copy Markdown
Member

Summary

Upstream PR QuantumNous#4876 trimmed the locale key set; the dashboard overview rebuild lost ~30 keys that fell back to displaying English text in a Chinese UI (visible as the half-English/half-Chinese dashboard hero).

  • Re-add 30 keys across all 6 locales: Available Balance, Top Up, Realtime Usage, Code Samples, Model Providers, Quick Start, Pricing Plans, Gateway, System status, Refresh, View API Docs, More models, Smart Route, Pay-as-you-go & low cost, etc.
  • zh.json gets proper Chinese translations
  • Other locales (en/fr/ja/ru/vi) get English fallback values until translated
  • bun run i18n:sync confirms all 6 locales: 4506 keys, missingCount=0, extrasCount=0

Test plan

  • cd web/default && bun run build (verified locally)
  • Restart Go backend + hard-refresh browser
  • /dashboard overview: hero, Model Providers, Realtime Usage, Code Samples, Available Balance, Top Up — all show Chinese
  • Language switcher → English: same labels remain English

ItzArona added 2 commits May 17, 2026 22:06
Upstream PR QuantumNous#4876 trimmed the locale key set; the dashboard overview
rebuild lost ~30 keys (Available Balance, Top Up, Realtime Usage,
Code Samples, Model Providers, etc.) which fell back to English.

Add the keys back across all 6 locales with proper Chinese
translations; other locales fall back to English until translated.
Copilot AI review requested due to automatic review settings May 18, 2026 09:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Restores ~30 i18n keys for the dashboard overview that were dropped by an upstream merge. The Chinese locale gets proper translations; other locales receive English placeholder values that match the existing fallback pattern, and sync reports are updated accordingly.

Changes:

  • Re-add missing dashboard overview keys across all 6 locale files
  • Provide proper Chinese translations in zh.json; leave English fallbacks for en/fr/ja/ru/vi
  • Update _reports/*.untranslated.json and _sync-report.json to reflect new untranslated counts

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
web/default/src/i18n/locales/zh.json Add ~30 keys with proper Chinese translations
web/default/src/i18n/locales/en.json Add missing keys (identity values)
web/default/src/i18n/locales/fr.json Add missing keys with English fallback values
web/default/src/i18n/locales/ja.json Add missing keys with English fallback values
web/default/src/i18n/locales/ru.json Add missing keys with English fallback values
web/default/src/i18n/locales/vi.json Add missing keys with English fallback values
web/default/src/i18n/locales/_reports/zh.untranslated.json Track new untranslated key
web/default/src/i18n/locales/_reports/vi.untranslated.json Track new untranslated key
web/default/src/i18n/locales/_reports/ru.untranslated.json Track new untranslated keys
web/default/src/i18n/locales/_reports/ja.untranslated.json Track new untranslated keys
web/default/src/i18n/locales/_reports/fr.untranslated.json Track new untranslated key
web/default/src/i18n/locales/_reports/_sync-report.json Update untranslated counts per locale

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ItzArona
ItzArona merged commit be0db50 into main May 18, 2026
2 checks 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.

2 participants