Internationalizing Components - Server and client component internationalization
Provides i18n patterns for server and client components using getTranslations and useTranslations
Tags
Updated: 2026-03-20Capabilities
Typical Inputs
Typical Outputs
What this skill does
- read translation files
- use getTranslations utility
- use useTranslations hook
- provide translation context
- generate localized URLs
- switch locales
- import translation JSON
- wrap components with context
Inputs
- translation.json files
- component translation files
- locale parameter
- translation keys
Outputs
- localized text
- localized URLs
- rendered routes with locale
Requirements
- TranslationContextProvider
- getTranslations utility
- useTranslations hook
- locale-aware routing
- translation file structure
