Guides users through Lingui i18n workflow commands (extract, compile, check, manifest) for daily catalog maintenance in existing projects. Helps choose the right command sequence and troubleshoot failures.
Ships in adonis-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
处理已经接入 Lingui 的项目。先回答当前问题或执行已授权的步骤;只有用户要完整速查时才输出命令表。
package.json 与 Lingui 配置,再按问题查看对应入口;不预先读取所有脚本。i18n:* 是项目自定义名称,不是 Lingui 标准接口。下文示例来自已退役的 lingui-next-init 历史模板,仅用于维护既有项目;所有项目以实际脚本为准。不要因缺少 scripts/i18n、manifest 或 Next.js SWC 配置就判定普通 React/Lingui 接入不完整。@your/web 是占位符,先替换成已核实的包名;非 workspace 项目在目标包目录运行相应脚本。沿用已有包管理器。i18n:check;不附加 extract、占位回填或 compile。i18n:manifest。i18n:compile / build 是否已包含 manifest 或 compile,避免重复执行。采用该历史脚本约定的既有项目,新增源码文案的示例:
pnpm --filter @your/web run i18n:extract
pnpm --filter @your/web run i18n:translate
pnpm --filter @your/web run i18n:compile
i18n:translate 默认统计缺失,并不调用翻译服务。只有明确接受源文案占位时才用 --fill-source,不能把占位回填报告为完成翻译。
需要参数或输入/输出细节时读 references/i18n-commands.md。需要场景例子时读 references/workflow-daily.md。不要为一个命令问题同时加载全部参考。
仅对经核对仍采用以下历史脚本约定的项目:
i18n 默认 extract + translate,显式 --compile 才编译;i18n:sync 仅 extract。i18n:compile 包含 manifest;i18n:manifest 不生成编译 catalog。i18n:check 是只读严格检查。组合入口的 --strict 仍会先 extract,不能作为只读检查的替代。I18N_DRY_RUN=1 只预览清理阶段,不阻止 extract 写入;需要只读探测时选只读命令或可丢弃副本。从失败阶段开始,不固定重跑整个流程:
po、编译产物与实际 locale loader;有 manifest 的项目再检查它。Attempted to call a translation function without setting a locale:先查 locale 初始化与调用顺序,不先修改翻译内容。useLingui/Trans 约定取上下文。此项不适用于普通 React 客户端项目。运行命令只能证明对应步骤。涉及页面显示时,还需在目标 locale 的真实页面核对文案;没运行就标记 UNVERIFIED。
仅在修改本仓库 Lingui 工作流文档时读取 references/maintenance-playbook.md。已有项目的命令语义变化经核实后,同步此入口与命令参考;不再维护或同步已退役的初始化模板,也不把仓库维护流程加入下游项目的日常翻译任务。
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/adonis-skills:lingui-workflowfrom adonis-skills
npx claudepluginhub adonis0123/adonis-skills --plugin adonis-skills34 skills in this plugin
/agent-dispatchPick the lightest agent setup for coding, review, drafting or design research: do it yourself, fan out 2-3 workers across local CLIs and accounts (Claude Code, Codex, Grok, Cursor), run a scoped architecture loop, or brief independent researchers; choose a cross-model reviewer and track dispatched work on a Run Board. Use when work may need delegation, or the user asks to dispatch, parallelize, run several agents or accounts, get another AI's review or independent design opinions, or check dispatched work. 中文触发:派活、并行、多开几个 agent、分给多个账号 / codex / grok、找另一个 AI 审、多方意见、派出的任务进行到哪了。Not for trivial edits, a single diff review (agentic-review-handoff) or the session list (sideby sessions); inside another named workflow, only size its workers./agentic-review-handoffValidate review findings, run auto Git review-fix-re-review loop, DecisionConsult, or DDD/cohesion review. Requires Git & review/consult intent.Other plugins' skills for the same job
/agent-practice-audit