Communitygithub.com

lobehub/i18n

LobeHub i18n 借助 react-i18next。适用于面向用户的字符串、语言环境键、命名空间、useTranslation、t()、插值、zh-CN/en-US 预览、硬编码 UI 文字或 pnpm i18n。

i18n 是什么?

该技能为 LobeHub 项目提供基于 react-i18next 的国际化(i18n)解决方案。它专门处理面向用户的字符串翻译,包括语言环境键(locale keys)、命名空间(namespaces)、useTranslation hook 和 t() 函数的插值(interpolation)。支持 zh-CN 和 en-US 的实时预览,便于开发者在编码时直接验证翻译效果。此技能适用于管理硬编码 UI 文字、组织翻译 JSON 文件,并通过 pnpm i18n 命令执行自动化流程。支持平台包括 Claude Code、Cursor 和 Codex 等 AI 代理,帮助开发者高效维护多语言界面。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/lobehub/lobe-chat/tree/main/skills/i18n

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

i18n 是做什么的?

LobeHub i18n 借助 react-i18next。适用于面向用户的字符串、语言环境键、命名空间、useTranslation、t()、插值、zh-CN/en-US 预览、硬编码 UI 文字或 pnpm i18n。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

相关技能