i18n-localization

Detect hardcoded strings and missing locale keys in React, Vue, and Python codebases.

Updated Mar 3, 2025
One-click install
npx skills add https://github.com/cyhinverse/YiBu --skill i18n-localization-cyhinverse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: i18n-localization
Source: https://github.com/cyhinverse/YiBu/tree/main/.agents/skills/i18n-localization
Command: npx skills add https://github.com/cyhinverse/YiBu --skill i18n-localization-cyhinverse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Detect hardcoded strings and missing translations across React, Vue, and Python code to ensure proper internationalization coverage and RTL readiness.

Core Features & Use Cases

  • i18n pattern guidance for React, Next.js, and Python.
  • Hardcoded string detection and locale completeness checks across multiple locales.
  • RTL support guidance and a ready-to-run checker script.

Quick Start

Run the i18n_checker.py script against your project to identify hardcoded strings and locale gaps.

Frequently Asked Questions about i18n-localization

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

FAQPage Schema
How do I detect hardcoded strings in React and Vue for i18n localization?

To detect hardcoded strings for i18n localization, you can run the i18n_checker.py script against your React or Vue codebase. It scans your source code to surface hardcoded literals and identify missing translation coverage.

What is the best way to check locale file completeness across multiple translations?

Checking locale file completeness involves scanning your locale files and codebase to identify missing translation keys. The i18n_checker.py script enforces translation coverage by comparing locale files against actual i18n usage in your project.

Can I use a Python script to enforce i18n translation coverage in backend projects?

You can use the Python-based i18n_checker.py script to enforce i18n translation coverage in backend Python projects. It scans your codebase to surface hardcoded literals and checks for missing locale keys.

Does this i18n pattern guidance include RTL readiness for frontend applications?

Yes, i18n pattern guidance includes RTL readiness for frontend applications. The checker evaluates your React and Vue codebases to ensure proper internationalization coverage and right-to-left layout support.

How do I find missing locale keys in my Next.js application?

To find missing locale keys in a Next.js application, scan your codebase and locale files using a translation checker. This process detects hardcoded strings and enforces i18n coverage by highlighting missing keys.

What are the limitations of using a script to enforce i18n across frontend and backend?

Using a script to enforce i18n across frontend and backend relies on static scanning of locale files and hardcoded literals. It provides intermediate-level pattern guidance for React, Vue, and Python, but requires manual execution to validate coverage.