Skip to main content
Translation function and live override stores exposed by useTranslation.

Properties

Record<string, unknown> | null
required
Active-locale translated keys loaded from the storefront API.
Translate a key with optional variable interpolation.Priority chain (highest wins):
  1. External t (passed into WeaverseNextRootProvider / TranslationProvider)
  2. Design overrides (live Builder edits from TranslationStore)
  3. merchantOverrides (DB/API overrides for the current locale)
  4. staticContent (theme default JSON)
  5. The key itself (fallback)
TranslationStore | null
required
Type: TranslationStoreLegacy name for the live design-mode translation store.
Deprecated: Migrate to TranslationValue.translationStore. This alias points at the same store instance.
TranslationStore | null
required
Type: TranslationStoreExposed so the runtime/Studio bridge can attach it to internal.