SkillAgentSearch skills...

i18n

i18n development conventions for OPC-Starter (Supabase-only)

Install / Use

npx skills add alibaba/opc-starter

Installs into whichever agent you are using.

About this skill
📐

Cursor Rules

Cursor IDE rules (v2)

Quality Score

61/100

Supported Platforms

Cursor

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.

Substance
20/30
Structure
15/20
Description
12/15
Adoption
0/20
Freshness
15/15

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 found

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.

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.

SkillScoreStarsUpdatedFormat
i18n (this skill)by alibaba6102mo agoCursor Rules
ai-job-searchby MadsLorentzen10044.1ktodayCLAUDE.md
claude-howtoby luongnv8910041.7k1d agoCLAUDE.md
algorithmic-artby anthropics100177.9k5d agoSKILL.md
constraint-driven-developmentby addyosmani10098.8k4d agoSKILL.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.

description: i18n development conventions for OPC-Starter (Supabase-only) globs: '*.tsx, *.ts'

i18n 开发规范

新增用户可见文案

  1. 在对应 namespace 的 app/src/locales/zh-CN/*.json 中添加 key
  2. 同步添加 app/src/locales/en-US/*.json 的英文翻译
  3. 组件中使用 const { t } = useTranslation('namespace') 获取文案
  4. 禁止在 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

  • 前端错误展示优先使用 errors namespace 或业务层映射,不在 UI 硬编码
  • Edge Function 对外错误建议返回 { code, message };message 可按 Accept-Language 选择语言(Epic-27 后续完善)
  • 本项目 不引入 自建 Node/Nest 网关层的 error-codes 体系

Related Skills

View on GitHub
GitHub Stars0
CategoryDevelopment
Updated2mo ago
Forks0

Trust signals

80/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium1 low