i18n
i18n development conventions for OPC-Starter (Supabase-only)
Install / Use
npx skills add alibaba/opc-starterInstalls into whichever agent you are using.
Cursor Rules
Cursor IDE rules (v2)
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of i18n
i18n scores 61/100 on our quality scale, 2116th of 2,717 Development & Engineering skills we index.
Its Cursor Rules is 1.2 KB long, split into 7 sections with 1 code example: moderately detailed.
It has no GitHub stars yet, so there is no community track record; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so i18n is actively maintained.
- Our last check on 2026-09-27 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 80/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
i18n compared with similar skills
All 4 of these similar skills score higher than i18n; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| i18n (this skill)by alibaba | 61 | 0 | 2mo ago | Cursor Rules |
| ai-job-searchby MadsLorentzen | 100 | 44.1k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | 1d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 5d ago | SKILL.md |
| constraint-driven-developmentby addyosmani | 100 | 98.8k | 4d ago | SKILL.md |
Frequently asked questions
- How do I install i18n?
- Run
npx skills add alibaba/opc-starter. The install tabs above show the steps for each supported agent. - Which AI agents does i18n work with?
- It is written for Cursor, as a Cursor Rules file. Other agents that read the same format can often use it too.
- Is i18n safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 80/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is i18n still maintained?
- The repository was last updated about 2 months ago, so i18n is actively maintained.
Skill content
View source on GitHubdescription: i18n development conventions for OPC-Starter (Supabase-only) globs: '*.tsx, *.ts'
i18n 开发规范
新增用户可见文案
- 在对应 namespace 的
app/src/locales/zh-CN/*.json中添加 key - 同步添加
app/src/locales/en-US/*.json的英文翻译 - 组件中使用
const { t } = useTranslation('namespace')获取文案 - 禁止在 JSX 中直接写中文字符串(新代码与改动页面必须遵守)
Namespace 选择
common:全局通用词条(确定/取消/保存/删除等)pages:页面级文案(标题/描述/空状态)components:组件内文案(A2UI/表单/对话框)errors:错误信息layout:布局壳层(Header/Sidebar 等)
Key 命名规范
- 使用 camelCase
- 带语义前缀:
dashboard.title、agent.create.success - Toast 消息:
toast.createSuccess、toast.deleteError
非 React 上下文
在非组件代码(utils / services)中使用 i18n.t() 而非 useTranslation:
import i18n from '@/lib/i18n'
i18n.t('common:networkError')
语言持久化
- 初始化:
app/src/lib/i18n.ts(react-i18next+i18next-browser-languagedetector) - localStorage key:
opc-starter-language(见app/src/lib/i18n/constants.ts) - UI 切换:
LanguageSelector(app/src/components/ui/language-selector.tsx)
Supabase / Edge Function
- 前端错误展示优先使用
errorsnamespace 或业务层映射,不在 UI 硬编码 - Edge Function 对外错误建议返回
{ code, message };message可按Accept-Language选择语言(Epic-27 后续完善) - 本项目 不引入 自建 Node/Nest 网关层的 error-codes 体系
Related Skills
ai-job-search
44.1kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
constraint-driven-development
98.8kEstablishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-i…
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
