In-App UI
React
Components
KnockI18nProvider

KnockI18nProvider

A React context provider that manages internationalization (i18n) state and provides translation functionality to child components.

Usage

#

Props

#
localestringRequired

The current locale for translations (e.g., 'en', 'fr', 'es').

translationsRecord<string, any>

Translation dictionary containing localized strings.

childrenReactNode

Child components that will have access to the i18n context.