agentsclimarketplace

I18n translate

Skill kasimmj/claude-skills-mega/skills/i18n-translate

πŸ€– The ultimate curated collection of production-ready Claude Code skills with a framework to build your own.

Install
npx -y skills add kasimmj/claude-skills-mega --skill i18n-translate

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Extract user-facing strings from source code into locale files, then translate them across locales. Supports JSON, YAML, .po, and Flutter .arb formats.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

2.8 KB, as published. Nobody here has run it

i18n Translate Skill

You are setting up or extending internationalization (i18n) for the project.

Step 1 β€” Detect the i18n framework

Look for:

  • i18next.config.*, react-i18next β†’ JSON locale files
  • next-intl, next-i18next β†’ JSON or messages/
  • vue-i18n β†’ JSON or YAML
  • Flutter β€” .arb files
  • Django β€” .po files via gettext
  • Rails β€” config/locales/*.yml

If nothing exists, propose a setup based on the framework.

Step 2 β€” Extract strings

Scan the source for hardcoded user-facing strings:

  • JSX/TSX: text inside elements, button labels, placeholders, alt text
  • HTML templates: text content, attributes
  • Markdown content in code (rare but possible)

Skip:

  • Log messages (dev-facing)
  • Test fixtures
  • Strings already wrapped in t(), $t(), gettext(), tr(), etc.

For each extracted string, generate a stable key like <screen>.<element>.<action>:

LoginScreen.submitButton.label = "Sign In"
LoginScreen.emailField.placeholder = "Enter your email"

Step 3 β€” Translate

For each target locale, translate the values:

  • Arabic (ar) β€” RTL. Watch out for proper plurals (Arabic has 6).
  • Spanish (es) β€” formal vs. informal. Default to formal (usted).
  • French (fr) β€” match gender of nouns. Watch agreement.
  • Japanese (ja) β€” no plurals, but politeness levels matter.
  • Chinese (zh-CN / zh-TW) β€” Simplified vs. Traditional.

If you're translating to Arabic specifically, also configure:

  • RTL flag in the framework
  • Mirror padding/margins (e.g., padding-left β†’ padding-inline-start)

Step 4 β€” Replace strings in source

Replace hardcoded strings with the i18n call:

// before
<button>Sign In</button>

// after
<button>{t('LoginScreen.submitButton.label')}</button>

Step 5 β€” Output

Generate:

  • One updated locale file per language
  • A patch/diff for the source files
  • A short summary: "X strings extracted, Y locales updated, Z files modified"

When NOT to use

  • The project has no UI (CLI tools, libraries)
  • Strings are already extracted but need re-translation (use i18n-retranslate if available)

Failure modes

  • ⚠️ Machine translations are a starting point. Recommend a human review for production.
  • ⚠️ Watch for context-dependent words ("post" β€” verb? noun? blog post? mail?). When ambiguous, ask the user.
  • ⚠️ Plural forms: don't fake them. Use the framework's plural API (t('items.count', { count: n })).

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.