sfnext-i18n

Installation
SKILL.md

Internationalization (i18n) Skill

This skill covers internationalization in Storefront Next using i18next with a dual-instance architecture (server + client).

Overview

  • Server instance — Has access to all translations for all languages
  • Client instance — Dynamically imports translations as JavaScript chunks
  • Dual APIuseTranslation() for components, getTranslation() for non-component code

Translation File Structure

Translations are organized as namespace files per locale, compiled into a TypeScript index:

src/locales/en-US/
├── index.ts              # Merges all namespace files + extensions
├── translations.json     # Default namespace (top-level keys become namespaces)
└── product.json          # "product" namespace (separate file)
Installs
3
GitHub Stars
45
First Seen
Jun 17, 2026
sfnext-i18n — salesforcecommercecloud/b2c-developer-tooling