Strict Internationalization (i18n)

Enforces next-intl translation hooks and manages keys across JSON files for web apps.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/a6232241/resume --skill strict-internationalization-i18n
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Strict Internationalization (i18n)
Source: https://github.com/a6232241/resume/tree/main/.agent/skills/strict-i18n
Command: npx skills add https://github.com/a6232241/resume --skill strict-internationalization-i18n

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of hard-coded strings in user interfaces, ensuring that all text is properly internationalized for global audiences.

Core Features & Use Cases

  • Enforces No Hard-coded Strings: Prevents direct embedding of user-facing text within components.
  • Promotes next-intl Usage: Guides developers to use useTranslations and getTranslations hooks/functions.
  • Streamlines Translation Workflow: Establishes a clear process for adding new translation keys and maintaining synchronization across language files.
  • Use Case: When developing a new feature, this skill ensures all labels, messages, and UI text are managed through the next-intl library, making it easy to add new languages later.

Quick Start

Add a new translation key for "welcome_message" to the primary language JSON file and then use it in your component.

Frequently Asked Questions about Strict Internationalization (i18n)

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

FAQPage Schema
How do I prevent hard-coded strings in Next.js frontend components?

To prevent hard-coded strings in frontend components, you must enforce strict internationalization (i18n) by mandating the use of translation hooks and managing all user-facing text through language JSON files.

What is the best way to manage translation keys across multiple language files?

The best way to manage translation keys across multiple language files is to establish a strict workflow that adds new keys to the primary JSON file first, ensuring synchronization across all localized language JSON files.

How do I use next-intl for internationalization in client and server components?

You use next-intl for internationalization by applying the useTranslations hook for client components and the getTranslations function for server components to fetch localized strings.

Why should I avoid embedding user-facing text directly in web applications?

You should avoid embedding user-facing text directly because hard-coded strings prevent proper internationalization, making it difficult to localize your web application for global audiences and add new languages later.

Can I use next-intl to synchronize UI text across different language JSON files?

Yes, you can use next-intl to synchronize UI text by defining a clear workflow that adds new translation keys to your primary language file and subsequently propagating them to all other language JSON files.