Skip to content

feat: add English frontend translation coverage#26

Open
RomuloGatto wants to merge 9 commits into
Forget-C:mainfrom
RomuloGatto:feat/english-frontend-default
Open

feat: add English frontend translation coverage#26
RomuloGatto wants to merge 9 commits into
Forget-C:mainfrom
RomuloGatto:feat/english-frontend-default

Conversation

@RomuloGatto
Copy link
Copy Markdown

@RomuloGatto RomuloGatto commented May 26, 2026

Summary

  • Keep Simplified Chinese as the default language; English is only restored when explicitly selected via jellyfish_language=en-US.
  • Move main layout navigation and breadcrumb labels into zh-CN/en-US translation resources.
  • Add an English translation coverage layer for existing hardcoded frontend UI text so English mode renders current screens in English while the app migrates hardcoded labels to first-class i18n keys.
  • Expand the English UI dictionary to cover extracted Chinese frontend UI literals, JSX text fragments, template literal fragments, and common runtime labels.
  • Fix the interim DOM translator to prefer longer source phrases first so short keys cannot partially corrupt longer labels.
  • Fix spaced Ant Design two-character button labels such as 取 消 by matching compact Chinese source phrases before translating.
  • Fix Settings page namespace usage so it resolves real localized strings instead of displaying raw i18n keys.

Test Plan

  • Static scan: no remaining uncovered Chinese JSX/template literal fragments outside locale/generated files.
  • cd front && pnpm exec tsc --noEmit
  • cd front && pnpm run build
  • Browser verification on local Vite app:
    • default/no stored language renders Simplified Chinese on /projects
    • explicit English selection renders /projects, /agents, /models, /assets, /prompts, /files, and /settings with no Chinese text detected in document.body.innerText
    • verified the New Project modal renders the footer buttons as Cancel and Create and enter, with no Chinese text detected
    • verified /settings no longer displays raw settings.* keys.

@RomuloGatto RomuloGatto force-pushed the feat/english-frontend-default branch from bb7dd23 to 3681342 Compare May 26, 2026 21:09
@RomuloGatto RomuloGatto changed the title feat: default frontend to English feat: add English frontend translation coverage May 26, 2026
@RomuloGatto RomuloGatto force-pushed the feat/english-frontend-default branch from 3681342 to de8d994 Compare May 26, 2026 21:19
@RomuloGatto RomuloGatto force-pushed the feat/english-frontend-default branch from de8d994 to 13b3fda Compare May 26, 2026 21:23
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