roo-translation
БесплатноБез исполняемых скриптовНе проверенProvides comprehensive guidelines for translating and localizing Roo Code extension strings. Use when tasks involve i18n, translation, localization, adding…
от RooCodeInc★ 24 234 звезды на GitHubОб этом скилле
Roo Code Translation Skill
When to Use This Skill
Use this skill when the task involves:
- Adding new translatable strings to the Roo Code extension
- Translating existing strings to new languages
- Updating or fixing translations in existing language files
- Understanding i18n patterns used in the codebase
- Working with localization files in either core extension or WebView UI
When NOT to Use This Skill
Do NOT use this skill when:
- Working on non-translation code changes
- The task doesn't involve i18n or localization
- You're only reading translation files for reference without modifying them
Supported Languages and Locations
Localize all strings into the following locale files: ca, de, en, es, fr, hi, id, it, ja, ko, nl, pl, pt-BR, ru, tr, vi, zh-CN, zh-TW
The VSCode extension has two main areas that require localization:
| Component | Path | Purpose |
|---|---|---|
| Core Extension | src/i18n/locales/ |
Extension backend strings |
| WebView UI | webview-ui/src/i18n/locales/ |
User interface strings |
Brand Voice, Tone, and Word Choice
For detailed brand voice, tone, and word choice guidance, refer to the guidance file:
This guidance file is loaded at runtime and should be consulted for the latest brand and style standards.
Voice, Style and Tone Guidelines
- Always use informal speech (e.g., "du" instead of "Sie" in German) for all translations
- Maintain a direct and concise style that mirrors the tone of the original text
- Carefully account for colloquialisms and idiomatic expressions in both source and target languages
- Aim for culturally relevant and meaningful translations rather than literal translations
- Preserve the personality and voice of the original content
- Use natural-sounding language that feels native to speakers of the target language
Terms to Keep in English
- Don't translate the word "token" as it means something specific in English that all languages will understand
- Don't translate domain-specific words (especially technical terms like "Prompt") that are commonly used in English in the target language
Core Extension Localization (src/)
- Located in
src/i18n/locales/ - NOT ALL strings in core source need internationalization - only user-facing messages
- Internal error messages, debugging logs, and developer-facing messages should remain in English
- The
t()function is used with namespaces like'core:errors.missingToolParameter' - Be careful when modifying interpolation variables; they must remain consistent across all translations
- Some strings in
formatResponse.tsare intentionally not internationalized since they're internal - When updating strings in
core.json, maintain all existing interpolation variables - Check string usages in the codebase before making changes to ensure you're not breaking functionality
WebView UI Localization (webview-ui/src/)
- Located in
webview-ui/src/i18n/locales/ - Uses standard React i18next patterns with the
useTranslationhook - All user interface strings should be internationalized
- Always use the
Transcomponent with named components for text with embedded components
Trans Component Example
Translation string:
"changeSettings": "You can always change this at the bottom of the <settingsLink>settings</settingsLink>"
React component usage:
<Trans
i18nKey="welcome:telemetry.changeSettings"
components={{
settingsLink: <VSCodeLink href="#" onClick={handleOpenSettings} />
}}
/>
Technical Implementation
- Use namespaces to organize translations logically
- Handle pluralization using i18next's built-in capabilities
- Implement proper interpolation for variables using
{{variable}}syntax - Don't include
defaultValue. Theentranslations are the fallback - Always use
apply_diffinstead ofwrite_to_filewhen editing existing translation files (much faster and more reliable) - When using
apply_diff, carefully identify the exact JSON structure to edit to avoid syntax errors - Placeholders (like
{{variable}}) must remain exactly identical to the English source to maintain code integration and prevent syntax errors
Translation Workflow
- First add or modify English strings, then ask for confirmation before translating to all other languages
- Use this process for each localization task:
- Identify where the string appears in the UI/codebase
- Understand the context and purpose of the string
- Update English translation first
- Use the
search_filestool to find JSON keys that are near new keys in English translations but do not yet exist in the other language files forapply_diffSEARCH context - Create appropriate translations for all other supported languages utilizing the
search_filesresult usingapply_diffwithout reading every file - Do not output the translated text into the chat, just mod
Установить roo-translation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл roo-translation?
Provides comprehensive guidelines for translating and localizing Roo Code extension strings. Use when tasks involve i18n, translation, localization, adding new languages, or updating existing translation files. This skill covers both core extension (src/i18n/locales/) and WebView UI (webview-ui/src/i18n/locales/) localization.
Как установить скилл roo-translation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл roo-translation запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic