i18n-sync

Extract `i18n("key", { ... })` calls from multi-platform code, fetch translations from server, validate placeholders, and emit flat JSON locale files for web/backend/iOS/Android.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "i18n-sync" with this command: npx skills add zhailei31665431/i18n-sync-skill/zhailei31665431-i18n-sync-skill-i18n-sync

i18n-sync

Use this skill when you need to keep i18n keys in sync across frontend, backend, iOS, and Android.

Contract

  • Function pattern: i18n("key", { count: 0, name: userName })
  • Function name is fixed to i18n
  • Second argument must be an object/map literal
  • Translation storage is always flat JSON: { "key": "value with {param}" }
  • API auth token is not required; fetch by projectKey

Commands

  • i18n-sync extract
  • i18n-sync validate
  • i18n-sync sync
  • Optional overrides: --project-key <key>, --url <api-url>

Required setup

Before running commands, create this file in the execution directory:

  • ./i18n.config.json

Required fields:

  • api.url
  • api.requestBody.projectKey

If ./i18n.config.json does not exist, the CLI exits and prompts user to create it.

What it does

  1. Extract keys and params from source code.
  2. Pull all project translation JSON from API once.
  3. Filter translations by extracted keys.
  4. Validate placeholders (translation side vs code side).
  5. Emit locale JSON into <dir>/i18n/.

Default backend endpoint in this repository: POST /api/i18n/translations.

Artifacts

  • .i18n-artifacts/report.json
  • Optional (disabled by default): .i18n-artifacts/keys.json

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated
Coding

clawhub-rate-limited-publisher

Queue and publish local skills to ClawHub with a strict 5-per-hour cap using the local clawhub CLI and host scheduler.

Archived SourceRecently Updated