yyqdbngt opened a new pull request, #3186:
URL: https://github.com/apache/rocketmq-dashboard/pull/3186

   ## Summary
   
   The home page mixed translation keys with inline `lang === zh` ternaries and 
two hard-coded zh strings, so a few spots still leaked Chinese into English 
mode (the chat input placeholder, the tools button, the prompt-enhance label, 
the model selector and the version line).
   
   This PR finishes the page localization:
   - Hard-coded strings now use the existing keys `home.placeholder` (chat 
input), `home.tools` and `home.promptEnhance`; the version line composes 
through the new `home.version` key.
   - Inline ternaries were replaced by keys: welcome suffix 
(`home.welcomeSuffix`), model-select placeholder and empty content 
(`home.selectModel`, `home.noModels`), the recommended badge 
(`home.recommended`), the engine title (`home.engineTitle`), the enhance 
tooltip (`home.enhanceTooltip`) and the welcome fragment (`home.welcomeTo`).
   - 6 new `home.*` keys added; no behavior change - the zh values are 
byte-identical to the previous literals.
   
   ## Why
   
   The home landing page is the first screen users see; it should follow the 
active language everywhere.
   
   ## Testing
   
   - `tsc --noEmit` passes
   - `eslint` clean on the changed files
   - `vitest run HomePage` - 8/8 tests pass


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to