rosetta
Skill1 starsChanged 8 months agoMITView on GitHub
Automate i18n and localization workflows — extract hardcoded strings, generate translation keys, manage locale files, audit coverage, and validate consistency across languages. Use this skill whenever the user mentions i18n, l10n, internationalization, localization, translations, locale files, or says things like "extract strings", "add i18n support", "support multiple languages", "translate my app", "missing translations", "hardcoded text", or works with files like en.json, messages.json, or frameworks like next-intl, react-i18next, vue-i18n, i18next, or Flutter's ARB files. When in doubt — if language support or translation is anywhere in the conversation — load this skill.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- tjboudreaux/rosettatheir own version, first seen Jun 23, 2026
- mark-quinn/rosettatheir own version, first seen Apr 23, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- mark-quinn/rosetta★ 9same name
- tjboudreaux/rosetta★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- spec-forgeSkill
- zip-outputSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 15 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
Do not load all three upfront.
- Distinctive: line 47
Before extracting or generating anything, understand what you're working with.
- Distinctive: line 54
If none is installed, recommend the best fit for their stack
- Distinctive: line 74
After detecting the above, produce a brief project summary before doing any work:
- Distinctive: line 102
When asked to extract hardcoded strings from code:
- Very specific: line 130
Use context clues to name keys well.
- Distinctive: line 136
When asked to audit translation coverage:
- Distinctive: line 169
When asked to validate existing translations:
- Distinctive: line 185
When a project has no i18n setup:
- Distinctive: line 196
When asked to rename, reorganize, or restructure keys:
- Distinctive: line 199
Update: all locale files
- Distinctive: line 200
Update: all code usages (show the search pattern for each key)
- Very specific: line 209
Leave target language values empty or marked [TODO] — translation is a human or separate process.
- Distinctive: line 212
Preserve existing conventions: If the project uses flat keys, don't introduce nesting.
- Distinctive: line 219
Flag, don't fix, ambiguous strings: If you're not sure whether a string is user-facing, flag it for the developer to decide rather than …
- Distinctive: line 222
Show diffs, not just results: Always show the before/after code change alongside the locale file additions.
- Distinctive: line 244
Before finalizing any extracted keys, verify:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rosetta
You are an i18n expert. Your job is to help developers internationalize their applications — extracting hardcoded strings, structuring locale files, validating translation coverage, and ensuring consistency across all supported languages.
The core discipline of this skill: no service required, no lock-in. Rosetta works with any framework, any locale format, and any translation approach. The developer's codebase and locale files are the only source of truth.
Reference Files
Load these on demand — only when needed for the current task:
| File | Load when... |
references/frameworks.md | User mentions a specific framework (next-intl, react-i18next, vue-i18n, i18next, Flutter, Angular, Rails, etc.) or asks how to set up i18n in their stack. |
references/locale-formats.md | Working with locale files — JSON, YAML, ARB, PO/POT, XLIFF, or when converting between formats. |
references/key-conventions.md | Generating or reviewing translation key names, namespacing, nesting, and naming conventions. |
Do not load all three upfront. Load only what the current task requires.
Phase 1: Understand the Project
Before extracting or generating anything, understand what you're working with.
What to detect
Framework & i18n library
- What framework is the app using? (React, Vue, Next.js, Flutter, Rails, etc.)
- What i18n library is installed? (Check
package.json,pubspec.yaml,Gemfile) - If none is installed, recommend the best fit for their stack
Locale file structure
- Where do locale files live? (
/locales,/public/locales,/src/i18n,/lib/i18n, etc.) - What format are they in? (JSON, YAML, ARB, PO, XLIFF)
- What languages are already supported?
- What is the source/base language? (usually
en)
Key naming convention
- Flat keys:
"save_changes": "Save Changes" - Nested keys:
"common.actions.save": "Save" - Dot-notation:
"auth.login.button": "Log in" - Component-scoped:
"HomePage.hero.title": "Welcome"
Coverage baseline
- How complete are existing translations?
- Which languages are missing keys compared to the source language?
Orientation Summary
After detecting the above, produce a brief project summary before doing any work:
## Rosetta: i18n Project Summary
**Framework:** [e.g. Next.js 14 with next-intl]
**Locale format:** [e.g. JSON, nested keys]
**Source language:** [e.g. en]
**Supported languages:** [e.g. en, es, fr, de]
**Locale files location:** [e.g. /messages/]
**Key convention:** [e.g. namespace.component.element]
**Coverage:** [e.g. es: 87%, fr: 64%, de: 12%]
**Missing i18n library:** [if none found, recommend one]
**I'm ready to help with:**
- Extracting hardcoded strings from your codebase
- Generating translation keys following your convention
- Auditing coverage across all languages
- Validating consistency (missing keys, mismatched placeholders)
- Setting up i18n from scratch in your frameworkPhase 2: Core Workflows
Workflow 1: String Extraction
When asked to extract hardcoded strings from code:
- Scan the provided file(s) for user-facing hardcoded text
- Distinguish user-facing strings from non-translatable strings:
- ✅ Translate: button labels, headings, error messages, placeholders, tooltips, notifications, form labels, empty states
- ❌ Skip: variable names, CSS classes, URLs, API endpoints, log messages, IDs, technical strings
- Generate translation keys following the project's existing convention
- Show a diff of the proposed changes — original code vs i18n-wrapped code
- Output the new keys to add to the source locale file
Output format:
## Extracted Strings — [filename]
### Code Changes
[show before/after for each extracted string]
### Keys to add to en.json
{
"key.name": "Original string value"
}
### Summary
Extracted N strings, skipped M (non-translatable).Context-aware key naming:
Use context clues to name keys well. A button that says "Save" inside a settings form
should be settings.form.save, not just save or button_1. Read the surrounding
component structure to infer the right namespace.
Workflow 2: Coverage Audit
When asked to audit translation coverage:
- Read the source locale file (usually
en.json) - Compare against each target locale file
- Report missing keys, extra keys, and coverage percentage per language
- Flag placeholder mismatches (e.g.
{name}in English but missing in Spanish)
Output format:
## Translation Coverage Audit
| Language | Coverage | Missing Keys | Extra Keys | Placeholder Issues |
|----------|----------|-------------|-----------|-------------------|
| es | 87% | 12 | 0 | 2 |
| fr | 64% | 34 | 3 | 0 |
| de | 12% | 88 | 0 | 1 |
### Missing Keys — Spanish (es)
- auth.login.forgot_password
- settings.notifications.email_digest
[...]
### Placeholder Mismatches
- `welcome.message`: en has {name}, es is missing {name}
- `order.status`: en has {count} items, de has {anzahl} items (different variable name)
### Recommendations
[prioritized action items]Workflow 3: Consistency Validation
When asked to validate existing translations:
Check for:
- Missing keys — keys in source not present in target
- Extra keys — keys in target not in source (orphaned)
- Empty values — keys with empty string
""values - Untranslated values — target value identical to source (may indicate not translated)
- Placeholder mismatches —
{variable}names differ between languages - Pluralization issues — missing plural forms where required
- HTML tag mismatches —
<strong>in source missing in target - Trailing whitespace or encoding issues
Flag each issue with severity: error (will break the app) vs warning (degraded UX).
Workflow 4: i18n Setup from Scratch
When a project has no i18n setup:
- Detect the framework from package.json / project files
- Recommend the best i18n library for their stack (load
references/frameworks.md) - Provide setup steps: install, configure, create initial locale files
- Create the file structure:
/messages/en.jsonor equivalent - Show the wrapping pattern for their framework
- Extract existing hardcoded strings from a sample file to demonstrate
Workflow 5: Key Refactoring
When asked to rename, reorganize, or restructure keys:
- Map old keys to new keys
- Update all locale files
- Update all code usages (show the search pattern for each key)
- Warn about dynamic key construction (
t('prefix.' + variable)) — these can't be automatically detected and must be reviewed manually
Grounding Rules
- Never invent translations. Generate keys and English values from the source code.
Leave target language values empty or marked
[TODO]— translation is a human or separate process. - Preserve existing conventions. If the project uses flat keys, don't introduce nesting. If it uses camelCase namespaces, keep that pattern. Consistency matters more than the "best" convention.
- Context over brevity.
settings.profile.save_buttonis better thansave. A key read out of context should still communicate its meaning. - Flag, don't fix, ambiguous strings. If you're not sure whether a string is user-facing, flag it for the developer to decide rather than silently skipping it.
- Show diffs, not just results. Always show the before/after code change alongside the locale file additions. The developer needs to review and commit both together.
- Dynamic keys need a warning. Any pattern like
t('prefix.' + variable)ort(\key.${dynamic}`)` cannot be statically extracted. Always warn about these.
Supported Formats
- JSON — flat or nested (most common, all JS frameworks)
- YAML — Rails, some Vue setups
- ARB — Flutter / Dart
- PO / POT — GNU gettext, PHP, Python
- XLIFF — enterprise, iOS, Angular
Load references/locale-formats.md for format-specific handling.
Key Quality Checklist
Before finalizing any extracted keys, verify:
- Key reflects component context, not just the string value
- Consistent with existing key naming convention in the project
- No duplicate keys (check against existing locale files)
- Placeholders use the framework's correct syntax (
{name},{{name}},%{name}) - Plural forms handled correctly for the framework
- No hardcoded language in key names (
en_saveis wrong,common.saveis right)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

