API Reference / @gtkx/i18n / withTranslation
Function: withTranslation()
withTranslation<
Ns,KPrefix>(ns?,options?): <C,ResolvedProps>(component) =>ComponentType<Omit<ResolvedProps, keyofWithTranslation<Ns,undefined>> &WithTranslationProps>
Defined in: node_modules/.pnpm/react-i18next@17.0.13_i18next@26.4.1_typescript@6.0.3__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/index.d.ts:286
Type Parameters
Ns
Ns extends string | $Tuple<string> | undefined = undefined
KPrefix
KPrefix extends KeyPrefix<Ns> = undefined
Parameters
ns?
Ns
options?
keyPrefix?
KPrefix
withRef?
boolean
Returns
<C, ResolvedProps>(component) => ComponentType<Omit<ResolvedProps, keyof WithTranslation<Ns, undefined>> & WithTranslationProps>