Agent skill

Add I18n Locale

by GXFG in GXFG/newtab-naivetab

NaiveTab 浏览器扩展的 i18n 国际化开发指南。当用户要新增/修改翻译文本、添加多语言 key 时使用。涵盖中英文同步更新规则、变量替换模式等,防止遗漏或格式错误。

GPL-3.0Auto-check passedFrontend & Design

Install Add I18n Locale

skills CLI
$ npx skills add GXFG/newtab-naivetab --skill add-i18n-locale -a claude-code

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

GitHub CLI
$ gh skill install GXFG/newtab-naivetab add-i18n-locale --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/GXFG/newtab-naivetab.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-i18n-locale .claude/skills/add-i18n-locale && 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
add-i18n-locale
GitHub stars
137
Token cost
~269 tokens
SKILL.md length
50 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
GPL-3.0

At a glance

NaiveTab 浏览器扩展的 i18n 国际化开发指南。当用户要新增/修改翻译文本、添加多语言 key 时使用。涵盖中英文同步更新规则、变量替换模式等,防止遗漏或格式错误。

  • Tasks that involve Internationalization
  • SKILL.md covers 文件位置, Key 命名规范, 变量替换 and 覆盖范围, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Add I18n Locale is an agent skill from GXFG/newtab-naivetab. NaiveTab 浏览器扩展的 i18n 国际化开发指南。当用户要新增/修改翻译文本、添加多语言 key 时使用。涵盖中英文同步更新规则、变量替换模式等,防止遗漏或格式错误。

Its SKILL.md is about 270 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. It works with Vue.js. The repository describes itself as: NaiveTab - newtab extension for browser |浏览器新标签页扩展|Visual keyboard for bookmarks & browser commands — one-press access. Drag & drop layout, full customization, focus mode, and…. The licence is GPL-3.0.

When your agent uses it

  • Tasks that involve Internationalization

Example prompts

  • “/add-i18n-locale”

What it can do on your machine

Read from SKILL.md and the folder at commit ae78a42. 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 json, vue and 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

Add I18n Locale loads about 269 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 50 words of instructions outside code blocks.

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

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 GXFG/newtab-naivetab at commit ae78a42, republished under its GPL-3.0 licence (© GXFG). 50 words, ~269 tokens.

Download SKILL.mdSave it as .claude/skills/add-i18n-locale/SKILL.md (or your agent's skills folder).
name
add-i18n-locale
description
NaiveTab 浏览器扩展的 i18n 国际化开发指南。当用户要新增/修改翻译文本、添加多语言 key 时使用。涵盖中英文同步更新规则、变量替换模式等,防止遗漏或格式错误。

NaiveTab Add i18n Locale

新增或修改 i18n 翻译文本需遵守以下规则。

文件位置

  • 中文:src/locales/zh-CN.json
  • 英文:src/locales/en-US.json

两个文件必须同步更新,不能只改一个。

Key 命名规范

采用扁平嵌套结构,按功能分组:

json
{
  "common": {
    "save": "保存",
    "cancel": "取消"
  },
  "setting": {
    "group": {
      "myPane": "我的面板"
    }
  }
}

引用方式:window.$t('common.save') 或模板中 $t('setting.group.myPane')。

变量替换

使用 __key__ 占位符 + .replace() 方式,禁止使用 vue-i18n 默认的 {key} 语法:

vue
<!-- 正确 -->
{{ $t('key.xxx').replace('__n__', value) }}

<!-- 错误 -->
{{ $t('key.xxx', { n: value }) }}
ts
// 正确
window.$t('key.xxx').replace('__count__', String(count))

覆盖范围

所有面向用户的文本都必须 i18n,包括但不限于:

  • Dialog 的 title/content/positiveText/negativeText
  • showToast / $notification 文案
  • placeholder、按钮文案
  • Setting 面板的 labelKey

注意事项

  • 写代码时先想 i18n key,再写实现
  • 不要因为"只是 dialog 文案"就跳过 i18n
  • 完整规则见 no-hardcode.md

© GXFG, GPL-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

Just SKILL.md in .claude/skills/add-i18n-locale of GXFG/newtab-naivetab.

Open the folder on GitHubat commit ae78a42

Compare with similar skills

Add I18n Locale 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.

Add I18n Locale compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add I18n Locale this skillGXFG/newtab-naivetab137—~269Automated safety check: PassGPL-3.0
Create Docsvictorgarciaesgi/nuxt-typed-router4132 repos~2.8kAutomated safety check: PassMIT
Localization Toolkitzebbern/claude-code-guide4.7k1 repos~1.3kAutomated safety check: PassMIT
I18n Vue Templaterundeck/rundeck6.3k—~523Automated safety check: NotesApache-2.0
Vtdfany-tdf/any-tdf778—~1.1kAutomated safety check: PassMIT
Vue Route Breadcrumbschamilo/chamilo-lms1k—~2kAutomated safety check: PassGPL-3.0

Similar skills

  • Create Docs

    victorgarciaesgi/nuxt-typed-router

    Create complete documentation sites for projects. An agent skill from victorgarciaesgi/nuxt-typed-router.

    413 GitHub starsUsed in 2 repos~2.8k tokens
    Frontend & DesignAuto-check passed
  • Localization Toolkit

    zebbern/claude-code-guide

    This skill should be used when setting up, auditing, or enforcing internationalization/localization in UI codebases (React/TS, i18next or similar, JSON locales), including installing/configuring the…

    4.7k GitHub starsUsed in 1 repo~1.3k tokens
    Frontend & DesignAuto-check passed
  • I18n Vue Template

    rundeck/rundeck

    Internationalize Vue component templates by replacing all hardcoded strings with $t() calls and adding translations to i18n.ts or enUS.js.

    6.3k GitHub stars~523 tokensUpdated yesterday
    Frontend & DesignAuto-check: notes
  • Vtdf

    any-tdf/any-tdf

    Build, review, and troubleshoot VTDF Vue 3 applications using exact component APIs, themes, icons, localization, and scaffolding.

    778 GitHub stars~1.1k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Vue Route Breadcrumbs

    chamilo/chamilo-lms

    Gives a route in Chamilo's Vue app its breadcrumb entirely from router meta fields, without editing the Breadcrumb component or naming pages.

    1k GitHub stars~2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Docs I18n

    opentiny/genui-sdk

    Sync GenUI SDK docs between Chinese and English when adding, editing, renaming, or deleting documentation under docs/.

    172 GitHub stars~962 tokensUpdated yesterday
    Frontend & DesignAuto-check passed

More from GXFG/newtab-naivetab

  • Add Command

    GXFG/newtab-naivetab

    NaiveTab 浏览器扩展的全局命令快捷键开发指南。当用户要新增/修改命令快捷键(如新增 tab 操作、页面滚动、窗口操作等命令)时使用。涵盖需要修改的完整文件清单、执行环境分类、类型注册等,防止遗漏关键步骤。

    137 GitHub stars~1.2k tokensUpdated 4 days ago
    Auto-check passed
  • Add Widget

    GXFG/newtab-naivetab

    NaiveTab 浏览器扩展的 Widget 开发指南。当用户要在 newtab-naivetab 项目中新增 Widget 组件、添加新功能组件时使用。涵盖需要修改的完整文件清单、配置规范、类型注册等,防止遗漏关键步骤。

    137 GitHub stars~1.4k tokensUpdated 4 days ago
    Auto-check passed
  • Add Setting Pane

    GXFG/newtab-naivetab

    NaiveTab 浏览器扩展的 Setting 面板开发指南。当用户要新增 Setting 设置面板、添加新的设置页时使用。涵盖需要修改的完整文件清单、注册规范等,防止遗漏关键步骤。

    137 GitHub stars~279 tokensUpdated 4 days ago
    Auto-check passed
  • Config Migration

    GXFG/newtab-naivetab

    NaiveTab 浏览器扩展的配置迁移开发指南。当用户要修改持久化配置结构(新增/重命名/删除字段、修改类型)时使用。强制走 handleAppUpdate 迁移流程,防止破坏老用户数据。

    137 GitHub stars~345 tokensUpdated 4 days ago
    Auto-check passed

Works with

Questions about Add I18n Locale

What does Add I18n Locale do?

NaiveTab 浏览器扩展的 i18n 国际化开发指南。当用户要新增/修改翻译文本、添加多语言 key 时使用。涵盖中英文同步更新规则、变量替换模式等,防止遗漏或格式错误。. Add I18n Locale is an agent skill from GXFG/newtab-naivetab.

When should I use Add I18n Locale?

Add I18n Locale fits situations like: tasks that involve Internationalization.

How do I install Add I18n Locale in Claude Code?

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

How do I install Add I18n Locale in Codex?

Run `npx skills add GXFG/newtab-naivetab --skill add-i18n-locale -a codex`. Or copy the skill folder (.claude/skills/add-i18n-locale in GXFG/newtab-naivetab) into .agents/skills/add-i18n-locale in your project. Codex loads it when a task matches its description.

Can I use Add I18n Locale 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 GXFG/newtab-naivetab --skill add-i18n-locale -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-i18n-locale, .gemini/skills/add-i18n-locale, .github/skills/add-i18n-locale and .opencode/skills/add-i18n-locale in your project.

What does Add I18n Locale need to run?

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

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

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

How many tokens does Add I18n Locale use?

About 269 tokens (SKILL.md is roughly 1.1k 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 Add I18n Locale?

Skills that share tags, products or a category with Add I18n Locale: Create Docs (victorgarciaesgi/nuxt-typed-router, 413 stars), Localization Toolkit (zebbern/claude-code-guide, 4.7k stars), I18n Vue Template (rundeck/rundeck, 6.3k stars) and Vtdf (any-tdf/any-tdf, 778 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add I18n Locale?

GXFG (a GitHub user) maintains it in GXFG/newtab-naivetab, which has 137 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 7, 2026.

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