locale-guard

Audit i18n translation keys and locale JSON consistency across frontend codebases.

12|2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/haomingz/kimi-skills --skill locale-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: locale-guard
Source: https://github.com/haomingz/kimi-skills/tree/main/skills/locale-guard
Command: npx skills add https://github.com/haomingz/kimi-skills --skill locale-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

在前端代码库(如 React/TypeScript、Vue 等)中,集中管理 i18n/本地化流程,确保翻译键覆盖、复数规则正确,以及多语言资源的一致性。

Core Features & Use Cases

  • 自动搭建 i18n 框架、语言文件结构和命名空间,支持 React、Vue、Next.js 等前端框架。
  • 审计翻译键的覆盖率与一致性,校验 en-US/zh-CN 的复数规则与格式化需求。
  • 提供将硬编码文本替换为翻译键的工作流,并支持路由层面的语言检测与切换。

Quick Start

Configure i18n scaffolding for your frontend project and run the audit to align translation keys across languages.

Frequently Asked Questions about locale-guard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit translation keys and ensure i18n consistency in a React frontend?

To audit translation keys and ensure i18n consistency in a React frontend, this Skill validates that all keys exist, enforces correct plural forms, and checks that locale JSON structures match across en-US and zh-CN.

What's the best way to replace hardcoded text with i18n translation keys in Vue?

The best way to replace hardcoded text with i18n translation keys in Vue is by using this Skill's workflow, which maps hardcoded strings to valid translation keys and aligns them with your language resource files.

Does this i18n audit work with Next.js and other modern frontend frameworks?

Yes, this i18n audit works with Next.js and other modern frontend frameworks like React and Vue, automatically scaffolding the i18n framework, language file structure, and namespaces for your specific setup.

How do I validate plural forms and locale JSON structures for zh-CN and en-US?

To validate plural forms and locale JSON structures for zh-CN and en-US, this Skill audits your translation files to enforce consistent locale JSON structures and verifies that pluralization rules are correctly applied across both languages.

Can I set up language detection and route-level locale switching for my frontend app?

Yes, you can set up language detection and route-level locale switching for your frontend app, as this Skill supports configuring routing-level language detection and switching alongside the core i18n scaffolding workflow.