i18n

Complete i18n (internationalization) toolkit for projects using i18next.

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" with this command: npx skills add project-n-e-k-o/n.e.k.o/project-n-e-k-o-n-e-k-o-i18n

i18n Toolkit

Complete i18n (internationalization) toolkit for projects using i18next.

Architecture

  • i18n library: i18next

  • Locale files: static/locales/ (zh-CN, zh-TW, en, ja, ko)

  • HTML attributes: data-i18n , data-i18n-placeholder , data-i18n-title , data-i18n-alt

  • JS function: window.t() or i18next.t()

  • Progress file: .claude/i18n-progress.json

Three Main Commands

  1. i18n-check - Detect Issues

Check frontend files for hardcoded Chinese text.

/i18n-check <module> [options]

Modules: main, live2d, voice, steam, settings, chat, custom

Options: --status , --reset , --files=<path> , --html , --js , --strict

See references/check-modules.md for module file mappings.

  1. i18n-fix - Fix Issues

Replace hardcoded Chinese with i18n markers.

/i18n-fix <module> [--add-keys]

Fix patterns:

  • HTML: Add data-i18n="key" attributes

  • JS: Use window.t('key') with fallback

See references/fix-patterns.md for examples.

  1. i18n-sync - Sync Languages

Align translation keys across all languages.

python3 scripts/i18n_sync.py # Check status python3 scripts/i18n_sync.py --apply # Apply changes

Quick Workflow

  • Check: /i18n-check steam

  • Find hardcoded strings

  • Fix: /i18n-fix steam

  • Replace with i18n markers

  • Verify: /i18n-check steam

  • Confirm fixes

  • Sync: /i18n-sync

  • Sync to other languages

Detection Rules

Check for:

  • HTML: Chinese text in elements or attributes

  • JS: Chinese strings not wrapped in window.t()

Skip:

  • Already has data-i18n* or window.t() wrapper

  • console.log/error/warn debug messages

  • Third-party libs (static/libs/ )

  • Comments

  • Internal logic strings (e.g., includes('已离开') )

  • Data keys (e.g., data['档案名'] )

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.

General

vrm-springbone-physics

No summary provided by upstream source.

Repository SourceNeeds Review
General

3d-camera-interaction

No summary provided by upstream source.

Repository SourceNeeds Review
General

pdf

No summary provided by upstream source.

Repository SourceNeeds Review
General

skill-creator

No summary provided by upstream source.

Repository SourceNeeds Review