Skip to content

Conversation

@samhvw8
Copy link
Contributor

@samhvw8 samhvw8 commented Apr 12, 2025

  • Created new localization files for Catalan, German, Spanish, French, Hindi, Italian, Japanese, Korean, Polish, Portuguese (Brazil), Turkish, Vietnamese, Chinese (Simplified), and Chinese (Traditional).
  • Enhanced user experience by providing translated command titles and descriptions for various functionalities within the extension.

Context

Implementation

Screenshots

before after

How to Test

Get in Touch


Important

Add localization support for Roo Code extension in multiple languages, updating command titles and messages to use localized strings.

  • Localization:
    • Added localization files for Catalan, German, Spanish, French, Hindi, Italian, Japanese, Korean, Polish, Portuguese (Brazil), Turkish, Vietnamese, Chinese (Simplified), and Chinese (Traditional).
    • Updated package.json to use localized strings for displayName, description, and command titles.
    • Updated extension.ts to use localized strings for activation and deactivation messages.
  • Commands:
    • Localized command titles and descriptions in package.json using placeholders for translation.
  • Scripts:
    • Added l10n:export, l10n:pseudo, and l10n:xlf scripts in package.json for localization management.

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

- Created new localization files for Catalan, German, Spanish, French, Hindi, Italian, Japanese, Korean, Polish, Portuguese (Brazil), Turkish, Vietnamese, Chinese (Simplified), and Chinese (Traditional).
- Updated extension activation and deactivation messages to use localized strings.
- Enhanced user experience by providing translated command titles and descriptions for various functionalities within the extension.
@changeset-bot
Copy link

changeset-bot bot commented Apr 12, 2025

⚠️ No Changeset found

Latest commit: 7aabf24

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:XL This PR changes 500-999 lines, ignoring generated files. enhancement New feature or request labels Apr 12, 2025
"command.addToContext.title": "संदर्भ में जोड़ें",
"command.openInNewTab.title": "नए टैब में खोलें",
"command.focusInput.title": "इनपुट फ़ील्ड पर फोकस करें",
"command.setCustomStoragePath.title": "कस्टम स्टोरेज पाथ सेट करें",
Copy link
Contributor

Choose a reason for hiding this comment

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

Inconsistent terminology: The term 'पाथ' is used in line 11 while 'पथ' is used in line 31. Consider standardizing the term ('पथ') across the file for consistency.

Suggested change
"command.setCustomStoragePath.title": "कस्टम स्टोरेज पाथ सेट करें",
"command.setCustomStoragePath.title": "कस्टम स्टोरेज पथ सेट करें",

@samhvw8
Copy link
Contributor Author

samhvw8 commented Apr 13, 2025

@mrubens i see that (cmd + shift + P) -- Command Plate Has support localization, but the display name of extension on extension market doesn't change anything

@mrubens
Copy link
Collaborator

mrubens commented Apr 13, 2025

@mrubens i see that (cmd + shift + P) -- Command Plate Has support localization, but the display name of extension on extension market doesn't change anything

Is it just that we hardcode the strings still in src/core/CodeActionProvider.ts?

export const ACTION_NAMES = {
	EXPLAIN: "Roo Code: Explain Code",
	FIX: "Roo Code: Fix Code",
	FIX_LOGIC: "Roo Code: Fix Logic",
	IMPROVE: "Roo Code: Improve Code",
	ADD_TO_CONTEXT: "Roo Code: Add to Context",
	NEW_TASK: "Roo Code: New Task",
} as const

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 13, 2025
@mrubens mrubens merged commit 14de489 into RooCodeInc:main Apr 13, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Apr 13, 2025
@samhvw8
Copy link
Contributor Author

samhvw8 commented Apr 13, 2025

@mrubens i see that (cmd + shift + P) -- Command Plate Has support localization, but the display name of extension on extension market doesn't change anything

Is it just that we hardcode the strings still in src/core/CodeActionProvider.ts?

export const ACTION_NAMES = {
	EXPLAIN: "Roo Code: Explain Code",
	FIX: "Roo Code: Fix Code",
	FIX_LOGIC: "Roo Code: Fix Logic",
	IMPROVE: "Roo Code: Improve Code",
	ADD_TO_CONTEXT: "Roo Code: Add to Context",
	NEW_TASK: "Roo Code: New Task",
} as const

yeah, the code action is hard code, we can make follow up pr too add more in our i18next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants