Agent skill

I18n Naming

by maotoumao in maotoumao/Cebian

Cebian project i18n key naming, placeholder, pluralization, file layout, and glossary conventions.

AGPL-3.0Auto-check passedFrontend & Design

Install I18n Naming

skills CLI
$ npx skills add maotoumao/Cebian --skill i18n-naming -a claude-code

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

GitHub CLI
$ gh skill install maotoumao/Cebian i18n-naming --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/maotoumao/Cebian.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/i18n-naming .claude/skills/i18n-naming && 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-naming
GitHub stars
164
Token cost
~3.7k tokens
SKILL.md length
1,358 words
Files
2
Skills in repo
7
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Cebian project i18n key naming, placeholder, pluralization, file layout, and glossary conventions.

  • Works in 6 steps: Add the key to locales/en.yml first. → Add the same key to locales/zh_CN.yml… → Add the same key to locales/zh_TW.yml… → …
  • Reviewing diffs that touch i18n files
  • SKILL.md covers When to apply, Languages & file layout, Key naming rules and Placeholders, plus 8 more sections
  • Calls pnpm

What it does

I18n Naming is an agent skill from maotoumao/Cebian. Cebian project i18n key naming, placeholder, pluralization, file layout, and glossary conventions. MUST be used whenever adding, editing, refactoring, or reviewing any translation key in locales/.yml, any t(...) call in source code, or any MSG placeholder in manifest. Also triggers when reviewing diffs that touch i18n files, when proposing new user-facing strings, or when validating translation completeness/consistency between en.yml, zhCN.yml, and zhTW.yml.

Its SKILL.md is about 3.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Frontend & Design, covering Internationalization and Translation. It works with Chrome Extensions. The repository describes itself as: An AI assistant that lives in your browser side panel. The licence is AGPL-3.0.

When your agent uses it

  • Reviewing diffs that touch i18n files
  • Proposing new user-facing strings
  • Validating translation completeness/consistency between en.yml

Example prompts

  • “/i18n-naming”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Add the key to locales/en.yml first.
  2. Add the same key to locales/zh_CN.yml (Simplified, Mainland style).
  3. Add the same key to locales/zh_TW.yml (Traditional, Taiwan style).
  4. Update the call site to t('your.key') (or t('your.key', [arg1, ...])).
  5. If using positional placeholders, document the meaning of each $N
  6. Run pnpm check (compiles types and runs the i18n lint).

What it can do on your machine

Read from SKILL.md and the folder at commit da045e6. 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

    Shell commands in SKILL.md call:

    • pnpm

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

  • Network

    No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.

    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 Naming loads about 3.7k tokens when it runs. Until then it costs about 124 tokens; SKILL.md has 1,358 words of instructions outside code blocks.

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

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 maotoumao/Cebian at commit da045e6, republished under its AGPL-3.0 licence (© maotoumao). 1,358 words, ~3,658 tokens.

Download SKILL.mdSave it as .claude/skills/i18n-naming/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
i18n-naming
description
Cebian project i18n key naming, placeholder, pluralization, file layout, and glossary conventions. MUST be used whenever adding, editing, refactoring, or reviewing any translation key in `locales/*.yml`, any `t(...)` call in source code, or any `__MSG_*__` placeholder in manifest. Also triggers when reviewing diffs that touch i18n files, when proposing new user-facing strings, or when validating translation completeness/consistency between `en.yml`, `zh_CN.yml`, and `zh_TW.yml`.

Cebian i18n Naming & Convention Skill

This skill captures the agreed-upon rules for the Cebian extension's i18n implementation, built on @wxt-dev/i18n with its simple YAML format. All translation work — both authoring and review — must follow these rules.

When to apply

  • Adding any new t('...') call in source.
  • Editing any of locales/en.yml, locales/zh_CN.yml, or locales/zh_TW.yml.
  • Reviewing a diff that touches i18n.
  • Validating that a translation set is complete & consistent.
  • Adding a manifest-level localized string (__MSG_*__).

Languages & file layout

Cebian ships three independently maintained locales:

  • en — default (fallback for all non-Chinese users)
  • zh_CN — Simplified Chinese (Mainland conventions)
  • zh_TW — Traditional Chinese (Taiwan conventions; also serves HK users via Chrome's zh_TW → zh → default fallback chain when no zh_HK is present — we do not ship a separate zh_HK)

Source files live at:

locales/en.yml
locales/zh_CN.yml
locales/zh_TW.yml

All three are hand-authored and must respect each language's idiomatic style. zh_TW is NOT a mechanical character conversion of zh_CN; word choice differs (see the Traditional Chinese glossary below).

The WXT module compiles them into .output/<browser>/_locales/{en,zh_CN,zh_TW}/messages.json at build time. Never edit generated messages.json files by hand. Chrome's _locales/ directory does not accept a bare zh folder, which is why we ship zh_CN and zh_TW separately.

Key naming rules

Namespace hierarchy

Use a fixed top-level namespace set. Do not invent new top-level namespaces without updating this skill first.

common      # generic verbs/labels reused across UI (send, cancel, save, ...)
chat        # /chat/* page (input, message, tools)
settings    # /settings/* page (layout, providers, chat, prompts, skills, data, about)
provider    # provider sub-components (oauth, apiKey, custom)
tools       # agent tool runtime labels (shown in ToolCard while a tool runs)
vfs         # standalone VFS browser entrypoint (entrypoints/vfs)
permission  # standalone user-permission entrypoint (entrypoints/user-permission)
dialogs     # modal dialogs
errors      # toast / inline error messages
agent       # agent-runtime user-facing strings
pageActions # in-page injected UI (floating ball, selection toolbar)

# Flat top-level keys (manifest exception, see "Manifest localization"):
# extName, extDescription, actionTitle
Key syntax
  • Dot-separated path: namespace.block.name (e.g. chat.input.placeholder).
  • Each segment is lowerCamelCase: apiKey not api-key, not api_key.
  • Final segment names the thing, not the element type.
    • Good: common.cancel, errors.fileTooLarge
    • Bad: common.cancelButton, errors.fileTooLargeMessage
  • Action labels use a verb: common.send, common.delete.
  • Status labels use an adjective/past participle: provider.oauth.loggedIn.
  • Errors live under errors.* and read as a sentence.
Reuse vs duplication

Prefer one canonical key per concept, reused across the UI, over near-duplicates. Every "Cancel" button must use common.cancel. Add a non-common key only when the wording legitimately differs in context.

Placeholders

@wxt-dev/i18n's simple YAML format only supports positional substitutions $1–$9. Named placeholders ($NAME$) are only available via the verbose Chrome messages.json format, which we do not use.

Rules
  • Use $1, $2, ... $9 in message text.
  • Document the meaning of each $N with an inline YAML comment on the line above the message, so translators see what they are.
  • Pass substitutions as an array literal at the call site, in the same order as the comment documents.
yaml
errors:
  # $1 = file name, $2 = size limit
  fileTooLarge: "$1 exceeds $2 limit"
ts
t('errors.fileTooLarge', [file.name, '5MB']);
Escaping

To produce a literal $, double it: $$.

Word-order differences across locales

If natural sentence order differs between en and zh, keep the indices the same and rearrange the surrounding text:

yaml
# en.yml — $1 = model, $2 = provider
chat.modelLine: "Using $1 from $2"

# zh.yml — same indices, different surrounding text
chat.modelLine: "正在使用 $2 的 $1"

The call site t('chat.modelLine', [model, provider]) works for both.

Forbidden in placeholder values
  • HTML or markdown — placeholders interpolate as plain text.
  • Nested translation calls — compose at the call site instead.

Pluralization

@wxt-dev/i18n plural syntax (NOT i18next's _one/_other suffixes). A pluralized key is a map with numeric keys plus n:

yaml
chat:
  history:
    # $1 = count
    count:
      0: "No messages"
      1: "1 message"
      n: "$1 messages"

Call with the count as the second argument:

ts
t('chat.history.count', 0);   // "No messages"
t('chat.history.count', 1);   // "1 message"
t('chat.history.count', 5);   // "5 messages"

Chinese has no plural form, but must still provide the same shape so the key set is symmetric:

yaml
chat:
  history:
    count:
      0: "暂无消息"
      1: "1 条消息"
      n: "$1 条消息"

Manifest localization

For manifest.json fields use __MSG_<key>__ placeholders. Chrome restricts the key to [a-zA-Z0-9_] — dots are not allowed inside the placeholder. Therefore manifest keys are an exception to the namespace rule and live as flat top-level entries in the YAML files:

yaml
# en.yml
extName: "Cebian"
extDescription: "AI-powered browser sidebar assistant"
actionTitle: "Open Cebian sidebar"

# (all other keys remain nested under their namespace)
common:
  newChat: "New chat"
ts
// wxt.config.ts
manifest: {
  default_locale: 'en',
  name: '__MSG_extName__',
  description: '__MSG_extDescription__',
  action: { default_title: '__MSG_actionTitle__' },
}

The allow-list of flat top-level keys is fixed: extName, extDescription, actionTitle. Adding a new flat key requires updating this skill.

Glossary (canonical translations)

Authoritative. Any deviation must be discussed and added here. The zh_TW column is not a character-conversion of zh_CN — Taiwan usage frequently picks a different word entirely.

EN简体中文 (zh_CN)繁體中文 (zh_TW)Notes
CebianCebianCebianBrand name, never translated
Extension扩展擴充功能TW prefers 擴充功能 over 擴充/擴展
Provider提供商供應商TW commonly uses 供應商
Model模型模型
Skill技能技能Translated
Prompt提示词提示詞Translated
Agent智能体智慧型代理TW: 智慧型代理 (avoid bare 代理)
Tool工具工具
Session / Chat会话 / 对话工作階段 / 對話TW: 工作階段 for technical session
Thinking思考思考
Settings设置設定TW: 設定 (not 設置)
Sidepanel侧边栏側邊欄
TokenTokenTokenKeep English
API KeyAPI KeyAPI KeyKeep English
OAuthOAuthOAuthKeep English
Sign in / Login登录登入TW: 登入 (not 登錄)
Sign out / Logout退出登出TW: 登出
Verify验证驗證
Archive (verb)归档封存TW: 封存 (not 歸檔)
Save保存儲存TW: 儲存 (not 保存)
Cancel取消取消
Delete删除刪除
Confirm确认確認
Send发送傳送TW: 傳送 (not 發送)
Open打开開啟TW: 開啟 (not 打開)
Close关闭關閉
New chat新对话新對話
History历史 / 历史记录歷史 / 歷史記錄Use longer form as panel title
Search搜索搜尋TW: 搜尋 (not 搜索)
File文件檔案TW: 檔案 (not 文件)
Folder文件夹資料夾TW: 資料夾
Network网络網路TW: 網路 (not 網絡)
Default默认預設TW: 預設 (not 默認)
Information信息資訊TW: 資訊 (not 訊息/信息)
Program / Software程序 / 软件程式 / 軟體TW: 程式, 軟體
Data数据資料TW: 資料 (not 數據)
Show full SKILL.md (564 more words)Show less

Style rules

  • Buttons / menu items: imperative verb phrase, no trailing punctuation.
    • en: Send, Open in new tab
    • zh_CN: 发送、在新标签页打开
    • zh_TW: 傳送、在新分頁開啟
  • Tooltips / aria-label: same as button text unless it adds info.
  • Toasts:
    • Success: short statement, no exclamation. en: Saved / zh_CN: 已保存 / zh_TW: 已儲存
    • Error: state what failed and (when actionable) why.
  • Placeholders / empty states: hint, not instruction.
    • en: Search models… zh_CN: 搜索模型… zh_TW: 搜尋模型…
  • Sentence punctuation:
    • en: ASCII punctuation (. , ! ? : ;).
    • zh_CN / zh_TW: full-width Chinese punctuation (。,!?:;).
    • Ellipsis: single character … for all locales, never ....
  • Length budget: a zh string used inside a button or badge should not exceed the en string by more than ~30% in rendered width.
  • Capitalization (en): sentence case for body text and tooltips, Title Case only for proper nouns and section headings.

Authoring workflow

  1. Add the key to locales/en.yml first.
  2. Add the same key to locales/zh_CN.yml (Simplified, Mainland style).
  3. Add the same key to locales/zh_TW.yml (Traditional, Taiwan style). This is NOT a character conversion of zh_CN — use Taiwan-idiomatic word choices per the Traditional Chinese glossary below.
  4. Update the call site to t('your.key') (or t('your.key', [arg1, ...])).
  5. If using positional placeholders, document the meaning of each $N with an inline YAML comment on the preceding line, in all three locales.
  6. Run pnpm check (compiles types and runs the i18n lint).

Review checklist

Run through this list explicitly when reviewing any i18n-touching diff. Cite each item as pass/fail.

  1. Key parity: every key in en.yml, zh_CN.yml, and zh_TW.yml matches the same set. No orphans in any locale.
  2. Placeholder index parity: for every key, the set of $N indices in en, zh_CN, and zh_TW is identical (same numeric set, same count). The surrounding text may differ for word order.
  3. Pluralization parity: any plural key (with 0/1/n subkeys) has the same subkey set in all three languages.
  4. Namespace conformance: every new key sits under one of the approved top-level namespaces.
  5. Naming conformance: every segment is lowerCamelCase; final segment names the thing, not the element type.
  6. Glossary conformance: every glossary term in en is rendered with the canonical zh translation. Flag deviations.
  7. Style conformance: buttons are verb phrases; zh punctuation is full-width; ellipsis is …; no trailing punctuation in button labels.
  8. Placeholder doc comment present for every key with $N, in both locales.
  9. No HTML / markdown / interpolated keys in message strings.
  10. Reuse check: does an existing common.* key already cover this? If yes, prefer reusing.
  11. Length sanity: zh strings used in tight UI (buttons, badges, tabs) are not dramatically longer than their en counterparts.
  12. Back-translation spot-check: pick ~10% of new zh keys and silently back-translate to en; flag any that drift in meaning.

Output the review as a structured report:

## i18n review

Pass:  <count>
Fail:  <count>
Notes: <count>

### Failures
- <key>: <reason> -> <suggested fix>

### Notes (non-blocking)
- <key>: <observation>

Anti-patterns (never do)

  • Hard-coding zh in .tsx "just for this one toast".
  • Inventing a new top-level namespace without updating this skill.
  • Translating brand names, code identifiers, file paths, or HTTP method names.
  • Embedding line breaks inside a translation string for layout. Use separate keys or component composition instead.
  • Concatenating translated fragments in code (t('a') + ' ' + t('b')). Make one key with placeholders.

Migration-friendliness reminder

These conventions exist so a future move to react-i18next is mechanical:

  • positional $1 $2 → i18next {{0}} {{1}} (or named via codemod)
  • 0/1/n plural maps → i18next _zero / _one / _other suffixes
  • nested dot keys → nested JSON (already shaped)
  • t('key', [...]) → t('key', [...]) (codemod-friendly)

Do not introduce features that break this property without explicit project-level approval.

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

Files

SKILL.md and 1 other file in .agents/skills/i18n-naming of maotoumao/Cebian.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit da045e6

Compare with similar skills

I18n Naming 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 Naming compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
I18n Naming this skillmaotoumao/Cebian164—~3.7kAutomated safety check: PassAGPL-3.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 16 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 6 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 yesterday
    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 yesterday
    Frontend & DesignAuto-check passed

More from maotoumao/Cebian

  • Code Review

    maotoumao/Cebian

    A skill your agent uses when completing a coding task to perform senior-level code review.

    164 GitHub stars~3.6k tokensUpdated yesterday
    Auto-check passed
  • Skill Creator

    maotoumao/Cebian

    Create new Cebian skills, edit or improve existing ones, scaffold multi-file skill packages, and validate them against the agentskills.io specification.

    164 GitHub stars~3k tokensUpdated yesterday
    Auto-check passed
  • Cl

    maotoumao/Cebian

    审计自上次发版以来的提交,把遗漏的「用户可见变更」补进 CHANGELOG.md 的 [Unreleased];可选地把 [Unreleased] 收口成正式版本节

    164 GitHub stars~428 tokensUpdated yesterday
    Auto-check passed
  • Upgrade Packages

    maotoumao/Cebian

    调研 package.json 所有依赖的最新版本,交叉验证版本差异,给出可升级到最新版的结论. An agent skill from maotoumao/Cebian.

    164 GitHub stars~505 tokensUpdated yesterday
    Auto-check passed
  • Start Task

    maotoumao/Cebian

    Resume execution of an approved plan from the next unchecked subtask, following the gated Task Execution Workflow in AGENTS.md.

    164 GitHub stars~580 tokensUpdated yesterday
    Auto-check passed
  • Upgrade Pi

    maotoumao/Cebian

    升级pi-agent-core和pi-ai到最新版本

    164 GitHub stars~894 tokensUpdated yesterday
    Auto-check passed

Questions about I18n Naming

What does I18n Naming do?

Cebian project i18n key naming, placeholder, pluralization, file layout, and glossary conventions. I18n Naming is an agent skill from maotoumao/Cebian. Cebian project i18n key naming, placeholder, pluralization, file layout, and glossary conventions.

When should I use I18n Naming?

I18n Naming fits situations like: reviewing diffs that touch i18n files; proposing new user-facing strings; validating translation completeness/consistency between en.yml.

How do I install I18n Naming in Claude Code?

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

How do I install I18n Naming in Codex?

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

Can I use I18n Naming 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 maotoumao/Cebian --skill i18n-naming -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-naming, .gemini/skills/i18n-naming, .github/skills/i18n-naming and .opencode/skills/i18n-naming in your project.

What does I18n Naming need to run?

Going by SKILL.md and its folder, I18n Naming needs the command-line tools its instructions call (pnpm).

Does I18n Naming 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 Naming 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 Naming use?

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

How many tokens does I18n Naming use?

About 3.7k tokens (SKILL.md is roughly 15k 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 Naming?

Skills that share tags, products or a category with I18n Naming: 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 Naming?

maotoumao (a GitHub user) maintains it in maotoumao/Cebian, which has 164 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 10, 2026.

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