i18n
LobeHub i18n with react-i18next. Use for user-facing strings, locale keys, namespaces, useTranslation, t(), interpolation, zh-CN/en-US previews, hardcoded UI copy, or bun run i18n.
npx skills add lobehub/lobehub --skill i18n --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# LobeHub Internationalization Guide - Default language: English (en-US) - Framework: react-i18next - **Only edit files in `packages/locales/src/default/`** - Never edit JSON files in `locales/` (except hand-written en-US/zh-CN previews) - Leave generated locales to the daily `auto-i18n.yml` workflow by default; run `bun run i18n` manually only when they are needed immediately ## Key Naming Convention **Flat keys with dot notation** (not nested objects): ```typescript // ✅ Correct export default { 'alert.cloud.action': '立即体验', 'sync.actions.sync': '立即同步', 'sync.status.ready': '已连接', }; // ❌ Avoid nested objects export default { alert: { cloud: { action: '...' } }, }; ``` **Patterns:** `{feature}.{context}.{action|status}` **Parameters:** Use `{{variableName}}` syntax ```typescript 'alert.cloud.desc': '我们提供 {{credit}} 额度积分', ``` **Avoid key conflicts:** ```typescript // ❌ Conflict 'clientDB.solve': '自助解决', 'clientDB.solve.backup.title': '数据备份', // ✅ Solution 'clientDB.solve.action': '自助解决', 'clientDB.solve.backup.title': '数据备份', ``` ## Workflow 1. Add keys to `packages/locales/src/default/{namespace}.ts` 2. Export new namespace in `packages/locales/src/default/index.ts` 3. For dev p
- Key Naming Convention
- Workflow
- Usage
- Common Namespaces
What does the i18n skill do?
LobeHub i18n with react-i18next. Use for user-facing strings, locale keys, namespaces, useTranslation, t(), interpolation, zh-CN/en-US previews, hardcoded UI copy, or bun run i18n.
How do I install it?
Run `npx skills add lobehub/lobehub --skill i18n --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From lobehub/lobehub, a repository with 81,252 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.