roo-translate

roo-translate is a command for Claude Code from zgsm-ai/costrict. It costs 10 tokens per session (449 once invoked), scanned A, a copy of roo-translate, Apache-2.0.

A command for translating and adapting the CoStrict extension’s user-facing text into its supported languages. It covers both the main extension and its web-based interface.

In plain words
What is it for?
Use it to translate a specific language, all supported languages, a string key, or a translation file, then validate the language files.
Why use it?
It helps keep translations consistent when new text is added or existing text changes. It also checks for missing translations.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/find-missing-translations.js.

Good fit Use it to translate a specific language, all supported languages, a string key, or a translation file, then validate the language files.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/zgsm-ai/costrict
agentmods
npx agentmods add commands/zgsm-ai/costrict/roo-translate

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for roo-translate

README.md
[![agentmods](https://agentmods.dev/badge/commands/zgsm-ai/costrict/roo-translate/github.svg)](https://agentmods.dev/commands/zgsm-ai/costrict/roo-translate)
Your own site
<a href="https://agentmods.dev/commands/zgsm-ai/costrict/roo-translate"><img src="https://agentmods.dev/badge/commands/zgsm-ai/costrict/roo-translate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for roo-translate

Your own site · 80×15
<a href="https://agentmods.dev/commands/zgsm-ai/costrict/roo-translate"><img src="https://agentmods.dev/badge/commands/zgsm-ai/costrict/roo-translate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 449 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.00449
Opus 5.5 $0.00004 $0.00180
Sonnet 5.5 $0.00002 $0.00090
Haiku 4.5 $0.00001 $0.00045

Measured 1mo ago against content hash c315ec1465d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

roo-translate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

92% identical to roo-translate — 32 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.roo/commands/roo-translate.md · 51 lines

What it actually says

Perform translation and localization tasks for the CoStrict extension. This command activates the translation workflow with comprehensive i18n guidelines.

Quick Start

  1. Identify the translation scope:

    • If a specific language code is provided (e.g., de, zh-CN), focus on that language
    • If all is specified, translate to all supported languages
    • If a string key is provided, locate and translate that specific string
    • If a file path is provided, work with that translation file
  2. Supported languages: ca, de, en, es, fr, hi, id, it, ja, ko, nl, pl, pt-BR, ru, tr, vi, zh-CN, zh-TW

  3. Translation locations:

    • Core Extension: src/i18n/locales/
    • WebView UI: webview-ui/src/i18n/locales/

Workflow

  1. If adding new strings:

    • Add the English string first
    • Ask for confirmation before translating to other languages
    • Use apply_diff for efficient file updates
  2. If updating existing strings:

    • Identify all affected language files
    • Update English first, then propagate changes
  3. Validate your changes:

    node scripts/find-missing-translations.js
    

Key Guidelines

  • Use informal speech (e.g., "du" not "Sie" in German)
  • Keep technical terms like "token", "Prompt" in English
  • Preserve all {{variable}} placeholders exactly
  • Use apply_diff instead of write_to_file for existing files

Examples

  • /roo-translate de - Focus on German translations
  • /roo-translate all welcome.title - Translate a specific key to all languages
  • /roo-translate zh-CN src/i18n/locales/zh-CN/core.json - Work on specific file
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 51 lines · 10 tokens per session scan A c315ec1465d9

Subscribe to this mod's changes

roo-translate is a command published in the GitHub repository zgsm-ai/costrict (4,450 stars, last pushed 16d ago), licensed Apache-2.0. It adds 10 tokens to every session and 449 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to roo-translate, differing in 32 lines, and is treated as a copy.