sfnext-i18n
Translate and localize a Storefront Next storefront with i18next: useTranslation in components, getTranslation in loaders/actions/utilities, translations.json namespaces, pluralization and interpolation, Zod validation-message factories, adding a new language or locale, extension translations, and locale/currency switching. Use when adding or editing strings, "add a Brazilian Portuguese locale", supportedLngs / fallbackLng / supportedLocales, src/locales, locales:aggregate-extensions, LocaleSwitcher, mockI18nContext, hydration mismatch on translated text, or missing-key problems. Do not use for site/locale URL prefix routing (use storefront-next:sfnext-routing), site and currency configuration keys (use storefront-next:sfnext-configuration), or extension scaffolding (use storefront-next:sfnext-extensions).
Pinned to revision fe78868e0e70, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/sfnext-i18n/SKILL.md
- skills/sfnext-i18n/evals/trigger-evals.json
- skills/sfnext-i18n/references/locale-config.md
Every link opens the file at its source, pinned to the revision this page describes.