i18n

Manage translation keys and namespaces for React apps using react-i18next.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dodevproject/lobe-chat --skill i18n-dodevproject
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: i18n
Source: https://github.com/dodevproject/lobe-chat/tree/main/.agents/skills/i18n
Command: npx skills add https://github.com/dodevproject/lobe-chat --skill i18n-dodevproject

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of managing internationalization (i18n) for React applications, ensuring consistent and accurate localized text across different languages.

Core Features & Use Cases

  • Translation Key Management: Provides a clear convention for creating and organizing translation keys using dot notation.
  • Workflow Guidance: Outlines the steps for adding new keys, exporting namespaces, and previewing translations.
  • Usage Examples: Demonstrates how to use the useTranslation hook in React components for accessing translated strings and parameters.
  • Use Case: When developing a new feature that requires user-facing text, use this Skill to add the necessary translation keys to the appropriate namespace and ensure they are correctly implemented in the UI.

Quick Start

Add a new translation key for a user greeting to the 'common' namespace.

Frequently Asked Questions about i18n

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

FAQPage Schema
How do I manage internationalization in a React app using react-i18next?

To manage internationalization in a React app, this Skill facilitates structured translation key creation, namespace management, and in-component localization using react-i18next. It supports defining keys with dot notation and parameters for dynamic content.

What is the best way to organize translation keys for dynamic content in React?

The best way to organize translation keys is using a clear dot notation convention. This Skill provides structured key management and supports parameters, allowing you to efficiently handle dynamic content within your defined namespaces.

How do I add new translation keys to a namespace and use them in my components?

To add new translation keys, follow the guided workflow for adding keys to the appropriate namespace and exporting them. You then use the useTranslation hook in your React components to access the translated strings and parameters.

Does this approach work for structuring localization workflows in React applications?

Yes, this approach works for structuring localization workflows by outlining specific steps for adding new keys, exporting namespaces, and previewing translations, ensuring consistent and accurate localized text across different languages.

When do I need to use namespaces for React app translations?

You need to use namespaces for React app translations when developing new features that require user-facing text, allowing you to separate localized strings into structured groups and ensure they are correctly implemented in the UI.