2233admin/cicada/i18n

Claude Code and agent skill by 2233admin/cicada

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Internationalization and localization assistance for multi-language applications

Install

npx vskill@latest install 2233admin/cicada/i18n

SKILL.md

Internationalization (i18n) Helper

Assist with internationalization and localization of applications, including translation management, locale handling, and i18n best practices.

When to Activate

Explicit Triggers
  • User says "translate this"
  • User says "国际化"
  • User says "add i18n support"
  • User says "localization"
Implicit Triggers
  • User mentions multi-language support
  • User asks about translation files
  • User needs to support multiple locales
NOT Activated For
  • Simple text changes
  • Code comments translation
  • Documentation translation (unless i18n-related)

i18n Fundamentals

Key Concepts
  • i18n: Internationalization (18 letters between 'i' and 'n')
  • l10n: Localization (10 letters between 'l' and 'n')
  • Locale: Language + region code (e.g., en-US, zh-CN, fr-FR)
  • Translation Key: Unique identifier for translatable text
  • Fallback Language: Default language when translation missing

Translation File Structure

JSON Format (Common)
json
// en.json
{
"common": {
"welcome": "Welcome",
"save": "Save",
"cancel": "Cancel",
"error": "An error occurred"
},
"auth": {
"login": "Log In",
"logout": "Log Out",
"email": "Email Address",
"password": "Password"
}
}
json
// zh-CN.json
{
"common": {
"welcome": "欢迎",
"save": "保存",
"cancel": "取消",
"error": "发生错误"
},
"auth": {
"login": "登录",
"logout": "退出登录",
"email": "电子邮箱",
"password": "密码"
}
}

i18n Best Practices

1. Use Translation Keys, Not Raw Text

Bad:

typescript
<button>Save</button>

Good:

typescript
<button>{t('common.save')}</button>
2. Organize by Feature/Module
locales/
├── en/
│ ├── common.json
│ ├── auth.json
│ └── settings.json
└── zh-CN/
├── common.json
├── auth.json
└── settings.json
3. Handle Pluralization
json
{
"items": {
"zero": "No items",
"one": "{{count}} item",
"other": "{{count}} items"
}
}
4. Support Variable Interpolation
json
{
"greeting": "Hello, {{name}}!",
"itemsInCart": "You have {{count}} items"
}
5. Handle Date/Time Formatting
typescript
const date = new Date();
date.toLocaleDateString('en-US'); // "3/15/2026"
date.toLocaleDateString('zh-CN'); // "2026/3/15"
6. Handle Currency Formatting
typescript
const amount = 1234.56;
amount.toLocaleString('en-US', { style: 'currency', currency: 'USD' }); // "$1,234.56"
amount.toLocaleString('zh-CN', { style: 'currency', currency: 'CNY' }); // "¥1,234.56"

Common i18n Libraries

JavaScript/TypeScript
  • react-i18next: React integration
  • i18next: Framework-agnostic
  • vue-i18n: Vue.js integration
Python
  • gettext: Standard library
  • Babel: Comprehensive toolkit
Go
  • go-i18n: Popular library

Translation Workflow

  1. Extract Strings: Identify all user-facing text
  2. Create Keys: Replace with translation keys
  3. Translate: Get professional translations
  4. Test: Verify all locales work correctly

Common Pitfalls

1. String Concatenation

Bad:

typescript
const msg = t('hello') + ' ' + userName;

Good:

typescript
const msg = t('greeting', { name: userName });
2. Hardcoded Text

Bad:

typescript
<p>Welcome to our app</p>

Good:

typescript
<p>{t('common.welcome')}</p>
3. Missing Fallbacks

Always provide fallback language for missing translations.

Related Resources

  • Use professional translators for production
  • Test all supported locales
  • Consider RTL languages (Arabic, Hebrew)
  • Handle date/time/currency formatting properly

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/2233admin/cicada/i18n/badge)](https://verified-skill.com/skills/2233admin/cicada/i18n)

Something wrong with this skill or its page? Tell us.