Agent skill

I18n Guide

by mobazha in mobazha/mobazha-unified

Guide for internationalization development in Mobazha including translation key naming, adding new languages, parameter interpolation, and locale-specific formatting.

MPL-2.0Auto-check passedFrontend & Design

Install I18n Guide

skills CLI
$ npx skills add mobazha/mobazha-unified --skill i18n-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mobazha/mobazha-unified i18n-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mobazha/mobazha-unified.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/i18n-guide .claude/skills/i18n-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
i18n-guide
GitHub stars
165
Token cost
~1.1k tokens
SKILL.md length
117 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
MPL-2.0

At a glance

Guide for internationalization development in Mobazha including translation key naming, adding new languages, parameter interpolation, and locale-specific formatting.

  • Adding translations
  • SKILL.md covers 技术架构, 使用方式, 翻译 Key 命名规范 and 添加新翻译的流程, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Creating i18n keys

What it does

I18n Guide is an agent skill from mobazha/mobazha-unified. Guide for internationalization development in Mobazha including translation key naming, adding new languages, parameter interpolation, and locale-specific formatting. Use when adding translations, creating i18n keys, or working with multi-language features, "国际化", "多语言", "翻译", "i18n", "本地化", "添加翻译".

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Internationalization and Translation. The repository describes itself as: Open-source commerce frontend for storefronts, marketplaces, checkout, and seller management. The licence is MPL-2.0.

When your agent uses it

  • Adding translations
  • Creating i18n keys
  • Working with multi-language features

Example prompts

  • “/i18n-guide”

What it can do on your machine

Read from SKILL.md and the folder at commit 156c699. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

I18n Guide loads about 1.1k tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 117 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mobazha/mobazha-unified at commit 156c699, republished under its MPL-2.0 licence (© mobazha). 117 words, ~1,068 tokens.

Download SKILL.mdSave it as .claude/skills/i18n-guide/SKILL.md (or your agent's skills folder).
name
i18n-guide
description
Guide for internationalization development in Mobazha including translation key naming, adding new languages, parameter interpolation, and locale-specific formatting. Use when adding translations, creating i18n keys, or working with multi-language features, "国际化", "多语言", "翻译", "i18n", "本地化", "添加翻译".

国际化开发指南

Mobazha 项目的多语言开发规范,支持 9 种语言。

技术架构

packages/core/i18n/
├── i18n.ts       # 核心实现:getTranslation(), setLocale(), formatDate()
├── types.ts      # TranslationKey, TranslationParams 类型
├── index.ts      # 统一导出
└── locales/
    ├── en.ts     # 英语(主语言,所有 key 必须先在此定义)
    ├── zh.ts     # 中文
    ├── ja.ts     # 日语
    ├── ko.ts     # 韩语
    ├── es.ts     # 西班牙语
    ├── fr.ts     # 法语
    ├── de.ts     # 德语
    ├── ru.ts     # 俄语
    ├── pt.ts     # 葡萄牙语
    └── index.ts  # 统一导出

使用方式

useI18n Hook
typescript
import { useI18n } from '@mobazha/core';

function MyComponent() {
  const { t, locale, setLocale, formatDate, formatNumber } = useI18n();

  return (
    <div>
      <h1>{t('order.title')}</h1>
      <p>{t('order.itemCount', { count: 5 })}</p>
      <p>{formatDate(new Date())}</p>
      <p>{formatNumber(1234.56)}</p>
    </div>
  );
}
参数插值

使用 {{参数名}} 语法:

typescript
// en.ts
order: {
  itemCount: '{{count}} items in your order',
  greeting: 'Hello, {{name}}!',
}

// 使用
t('order.itemCount', { count: 3 })  // "3 items in your order"
t('order.greeting', { name: 'Alice' })  // "Hello, Alice!"

翻译 Key 命名规范

层级结构
模块.功能.描述
命名规则
规则示例说明
模块名order, wallet, settings, chat对应功能模块
通用词汇common.loading, common.error, common.cancelcommon 前缀
导航nav.home, nav.orders, nav.walletnav 前缀
按钮order.submit, cart.checkout动词形式
标题settings.general.titletitle 后缀
占位符search.placeholderplaceholder 后缀
错误消息order.error.notFounderror 层级
状态order.status.completedstatus 层级
示例对照
typescript
// ✅ 好的命名
'common.loading'; // 通用加载
'common.noItems'; // 通用空状态
'order.status.completed'; // 订单状态
'wallet.send.confirm'; // 钱包发送确认
'settings.general.language'; // 设置-通用-语言
'product.price.from'; // 商品价格起始

// ❌ 差的命名
'loading'; // 缺少模块前缀
'orderCompleted'; // 没有用点分隔
'settings_language'; // 用了下划线而不是点
'btn_submit'; // 不要用缩写前缀

添加新翻译的流程

第一步:在 en.ts 中添加
typescript
// packages/core/i18n/locales/en.ts
export const en = {
  // ... 已有内容
  shipping: {
    // ... 已有内容
    newFeature: {
      title: 'New Feature Title',
      description: 'Description of the new feature',
    },
  },
};
第二步:更新类型(自动推断)

如果 TranslationKey 是从 en.ts 自动推断的,无需手动更新类型。 否则需要在 types.ts 中添加新 key。

第三步:添加其他语言
typescript
// packages/core/i18n/locales/zh.ts
shipping: {
  newFeature: {
    title: '新功能标题',
    description: '新功能描述',
  },
},

优先级:先完成 en.ts 和 zh.ts,其他语言可后续补充。

特殊场景处理

日期格式化
typescript
const { formatDate } = useI18n();

// 使用 locale-aware 格式化
formatDate(new Date('2024-01-15'));
// en: "January 15, 2024"
// zh: "2024年1月15日"
数字格式化
typescript
const { formatNumber } = useI18n();

formatNumber(1234567.89);
// en: "1,234,567.89"
// de: "1.234.567,89"
货币金额

不要用 i18n 处理货币,使用 useCurrency() hook:

typescript
import { useCurrency } from '@mobazha/core';

const { formatPrice, renderPairedPrice } = useCurrency();
formatPrice(amount, 'BTC'); // 正确的货币格式化
条件文本
typescript
// ❌ 禁止用语言判断
{
  lang === 'zh' ? '中文文本' : 'English text';
}

// ✅ 用同一个 key,不同 locale 文件提供不同翻译
{
  t('feature.description');
}

快速检查清单

  • 新增的用户可见文本是否都使用了 t() ?
  • 翻译 key 是否遵循 模块.功能.描述 格式?
  • 是否在 en.ts 中先添加了新 key?
  • 动态内容是否使用 {{参数}} 插值?
  • 货币金额是否使用 useCurrency() 而非 t()?
  • 日期是否使用 formatDate() 而非硬编码格式?

相关功能文档

  • 国际化系统 — useI18n 完整 API、9 种语言列表、翻译键结构、新语言添加流程

© mobazha, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/i18n-guide of mobazha/mobazha-unified.

Open the folder on GitHubat commit 156c699

Compare with similar skills

I18n Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

I18n Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
I18n Guide this skillmobazha/mobazha-unified165—~1.1kAutomated safety check: PassMPL-2.0
Chatbox i18n Translatorchatboxai/chatbox42k—~508Automated safety check: PassGPL-3.0
Internationalization Workflow with i18niOfficeAI/AionUi33k1 repos~1.9kAutomated safety check: PassApache-2.0
Enforce Rules For I18nmoeru-ai/airi50k—~1.5kAutomated safety check: PassMIT
Claude Desktop Chinese Localizationjavaht/claude-desktop-zh-cn7.5k—~1.6kAutomated safety check: PassMIT
Translation ReviewDevolutions/UniGetUI26k—~1.3kAutomated safety check: PassMIT

Similar skills

  • Chatbox i18n Translator

    chatboxai/chatbox

    Translates new or changed i18n keys from a Chatbox Pro diff, staged changes or a commit range, writing the locale JSON files directly with a built-in glossary.

    42k GitHub stars~508 tokensUpdated 15 days ago
    Frontend & DesignAuto-check passed
  • Standards for keeping all user-facing text translatable: read the i18n config first, use namespaced keys, reuse shared strings and follow the key naming rules.

    33k GitHub starsUsed in 1 repo~1.9k tokens
    Frontend & DesignAuto-check passed
  • Review pending AIRI translations on Crowdin in a batch, then sync them into the repository.

    50k GitHub stars~1.5k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Claude Desktop Chinese Localization

    javaht/claude-desktop-zh-cn

    Adds missing Simplified and Traditional Chinese translations to the Claude Desktop Chinese patch across three layers, then checks how many mappings actually hit.

    7.5k GitHub stars~1.6k tokensUpdated 4 days ago
    Frontend & DesignAuto-check passed
  • Translation Review

    Devolutions/UniGetUI

    Reviews UniGetUI .json language files for localization quality, detects parity issues, English-equal entries, wrong-script content, and cross-language outliers, then generates a dataset for…

    26k GitHub stars~1.3k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Frontend I18n

    langflow-ai/langflow

    Add, change, or review user-facing text in the Langflow frontend using the i18n system (i18next / react-i18next).

    155k GitHub stars~1k tokensUpdated today
    Frontend & DesignAuto-check passed

More from mobazha/mobazha-unified

All 29 skills in this repo
  • A11y Guide

    mobazha/mobazha-unified

    Accessibility guide for Mobazha following WCAG 2.1 AA standards including color contrast, reduced motion, ARIA patterns, keyboard navigation, focus management, and screen reader testing.

    165 GitHub stars~1.4k tokensUpdated 6 days ago
    Auto-check passed
  • API Reference

    mobazha/mobazha-unified

    Look up Mobazha backend API endpoints, request/response formats, and field mappings.

    165 GitHub stars~1.7k tokensUpdated 6 days ago
    Auto-check passed
  • Code Review

    mobazha/mobazha-unified

    Review code for quality, architecture consistency, and adherence to Mobazha project standards using confidence-based filtering.

    165 GitHub stars~464 tokensUpdated 6 days ago
    Auto-check passed
  • Code Simplifier

    mobazha/mobazha-unified

    Simplify and refine recently written code for clarity, consistency, and maintainability while preserving all functionality.

    165 GitHub stars~601 tokensUpdated 6 days ago
    Auto-check passed
  • Commit Helper

    mobazha/mobazha-unified

    Generate commit messages and run pre-commit validation following Mobazha conventions.

    165 GitHub stars~735 tokensUpdated 6 days ago
    Auto-check passed
  • Component Dev

    mobazha/mobazha-unified

    Create and modify UI components following Mobazha conventions including directory structure, spacing standards, accessibility, and testing.

    165 GitHub stars~638 tokensUpdated 6 days ago
    Auto-check passed

Questions about I18n Guide

What does I18n Guide do?

Guide for internationalization development in Mobazha including translation key naming, adding new languages, parameter interpolation, and locale-specific formatting. I18n Guide is an agent skill from mobazha/mobazha-unified. Guide for internationalization development in Mobazha including translation key naming, adding new languages, parameter interpolation, and locale-specific formatting.

When should I use I18n Guide?

I18n Guide fits situations like: adding translations; creating i18n keys; working with multi-language features.

How do I install I18n Guide in Claude Code?

Run `npx skills add mobazha/mobazha-unified --skill i18n-guide -a claude-code`. Or copy the skill folder (.cursor/skills/i18n-guide in mobazha/mobazha-unified) into .claude/skills/i18n-guide in your project. Claude Code loads it when a task matches its description.

How do I install I18n Guide in Codex?

Run `npx skills add mobazha/mobazha-unified --skill i18n-guide -a codex`. Or copy the skill folder (.cursor/skills/i18n-guide in mobazha/mobazha-unified) into .agents/skills/i18n-guide in your project. Codex loads it when a task matches its description.

Can I use I18n Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mobazha/mobazha-unified --skill i18n-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/i18n-guide, .gemini/skills/i18n-guide, .github/skills/i18n-guide and .opencode/skills/i18n-guide in your project.

What does I18n Guide need to run?

SKILL.md names no scripts, command-line tools or credentials: I18n Guide is instructions for the agent only.

Does I18n Guide access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is I18n Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does I18n Guide use?

I18n Guide is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does I18n Guide use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to I18n Guide?

Skills that share tags, products or a category with I18n Guide: Chatbox i18n Translator (chatboxai/chatbox, 42k stars), Internationalization Workflow with i18n (iOfficeAI/AionUi, 33k stars), Enforce Rules For I18n (moeru-ai/airi, 50k stars) and Claude Desktop Chinese Localization (javaht/claude-desktop-zh-cn, 7.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains I18n Guide?

mobazha (a GitHub organization) maintains it in mobazha/mobazha-unified, which has 165 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 3, 2026.

Source: mobazha/mobazha-unified on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.