i18n-localization

Detect hardcoded strings and manage translation files for i18n compliance.

1|Updated Dec 21, 2024
One-click install
npx skills add https://github.com/SergeiGolos/wod-wiki --skill i18n-localization-sergeigolos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: i18n-localization
Source: https://github.com/SergeiGolos/wod-wiki/tree/main/.agent/skills/i18n-localization
Command: npx skills add https://github.com/SergeiGolos/wod-wiki --skill i18n-localization-sergeigolos

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of making applications accessible to a global audience by providing patterns and tools for internationalization (i18n) and localization (L10n). It helps prevent hardcoded strings and ensures proper handling of different languages and regional formats.

Core Features & Use Cases

  • Detects hardcoded strings: Identifies untranslated text within code.
  • Manages translation files: Organizes locale data in a structured format.
  • Supports RTL: Provides guidance for right-to-left language layouts.
  • Use Case: Ensure your web application can be easily translated into Spanish, French, and Arabic by following the best practices and using the provided script to check for any missed translations.

Quick Start

Run the i18n checker script against your project directory to find hardcoded strings and missing translations.

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 my codebase for internationalization?

You can detect hardcoded strings by running the included i18n checker script against your project directory to identify untranslated text and missing translations. This script audits your source files to ensure proper internationalization compliance.

What is the best way to manage translation files for multiple locales?

The best way to manage translation files is to organize your locale data in a structured format using the provided internationalization patterns. This approach ensures your web application can easily support translations into multiple languages.

Does this internationalization tool support right-to-left (RTL) language layouts?

Yes, this internationalization tool supports right-to-left (RTL) language layouts. It provides specific guidance and implementation patterns to ensure your application's UI correctly adapts for RTL languages like Arabic.

Can I use these i18n patterns with my Next.js and React projects?

Yes, you can use these i18n patterns with Next.js and React projects. The Skill includes specific implementation examples for React, Next.js, and Python to help you integrate internationalization seamlessly.

How do I audit my web application for missing translations?

You audit your web application for missing translations by executing the provided i18n compliance script. This script checks your project directory to find hardcoded strings and verifies that all locale data is properly structured.