Skip to content

SonentaProvider

Wrap your app once. Key SonentaConfig props:

PropTypeDescription
tokenstringrequiredAPI key (snt_live_<prefix>.<secret>, missing:write scope).
projectUuidstringrequiredThe project this provider is bound to.
defaultLocalestringrequiredInitial BCP-47 locale (e.g. en).
apiBasestringoptionalAPI base; defaults to https://api.sonenta.dev.
namespacesstring[]optionalNamespaces to preload (default ["common"]).
fallbackLngstring|string[]optionalFallback locale chain.
a11ySurfacesstring[]optionalEager-load a11y overlays: aria_label, alt_text, screen_reader, plain_language.
plainLanguagebooleanoptionalStart with the FALC simplified-language mode on.
initialBundlesobjectoptionalOffline/SSR snapshot (locale → namespace → tree).
import { SonentaProvider } from "@sonenta/react-i18next";
<SonentaProvider
apiBase="https://api.sonenta.dev"
projectUuid="<PROJECT_UUID>"
token="snt_live_<prefix>.<secret>"
defaultLocale="en"
namespaces={["common"]}
>
<App />
</SonentaProvider>