Skip to content

Conversation

@feifei325
Copy link
Contributor

@feifei325 feifei325 commented Mar 15, 2025

Context

This PR implements internationalization (i18n) for the buttons and prompt messages in the ChatView component. This enhancement ensures that the UI elements are available in multiple languages, improving accessibility and user experience for a global audience.

Implementation

Screenshots

before after
image image
image image

How to Test

Get in Touch


Important

Internationalized button texts and tooltips in ChatView and TelemetryBanner, adding support for multiple languages.

  • Internationalization in ChatView.tsx:
    • Replaced hardcoded button texts and tooltips with translation functions using t().
    • Affected buttons include primary and secondary actions like "Retry", "Start New Task", "Save", etc.
    • Updated placeholder text and other UI strings to use translations.
  • Internationalization in TelemetryBanner.tsx:
    • Replaced hardcoded strings with translation functions for telemetry consent messages.
  • Language Support:
    • Added JSON files for multiple languages (e.g., ar, ca, cs, de, en, es, fr, hi, hu, it, ja, ko, pl, pt-BR, pt, ru, tr, zh-CN, zh-TW) in webview-ui/src/i18n/locales/.
    • Each file contains translations for chat and common UI elements.

This description was created by Ellipsis for 66c6dbb. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Mar 15, 2025

⚠️ No Changeset found

Latest commit: 66c6dbb

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. enhancement New feature or request labels Mar 15, 2025
@ellipsis-dev
Copy link
Contributor

ellipsis-dev bot commented Mar 15, 2025

The pull request involves a significant number of changes related to the internationalization of the ChatView and TelemetryBanner components, as well as the addition of localization files for various languages. While the pull request is large, the changes are interconnected and serve a single purpose. Therefore, it seems appropriate to keep them in a single pull request. However, if there are any unrelated changes, please consider splitting them into separate pull requests for better manageability.

"sendMessage": "Envia el missatge",
"typeMessage": "Escriu un missatge...",
"typeTask": "Escriu la teva tasca aquí...",
"addContext": "(@ per afegir context, / per canviar de mode",
Copy link
Contributor

Choose a reason for hiding this comment

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

In the string for addContext, the text "(@ per afegir context, / per canviar de mode" is missing a closing parenthesis. Ensure consistency and clarity by updating it.

Suggested change
"addContext": "(@ per afegir context, / per canviar de mode",
"addContext": "(@ per afegir context, / per canviar de mode)",

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should probably move the beginning parenthesis outside of the string

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'll fix as a follow-up

@mrubens mrubens merged commit dea3db7 into RooCodeInc:main Mar 16, 2025
16 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Mar 16, 2025
@mrubens mrubens mentioned this pull request Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants