Return a TFunction that can be used to translate strings server-side. This function is fixed to a specific namespace.
Optional
The namespaces to use for the T function. (Default: translation).
translation
The i18next init options and the key prefix to prepend to translation keys.
Detect the current locale by following the order defined in the detection.order option. By default the order is
detection.order
Get the namespaces required by the routes which are going to be rendered when doing SSR.
The EntryContext object received by handleRequest in entry.server
handleRequest
await instance.init({ ns: i18n.getRouteNamespaces(context), // ...more options}); Copy
await instance.init({ ns: i18n.getRouteNamespaces(context), // ...more options});
Return a TFunction that can be used to translate strings server-side. This function is fixed to a specific namespace.