Skip to content

API Reference / @gtkx/i18n / TransProps

Type Alias: TransProps<Key, Ns, KPrefix, TContext, TOpt, Ret, E> ​

TransProps<Key, Ns, KPrefix, TContext, TOpt, Ret, E> = E & object

Defined in: node_modules/.pnpm/react-i18next@17.0.12_i18next@26.4.0_typescript@6.0.3__react@19.2.8_typescript@6.0.3/node_modules/react-i18next/TransWithoutContext.d.ts:29

Type Declaration ​

children? ​

optional children?: TransChild | readonly TransChild[]

components? ​

optional components?: readonly React.ReactElement[] | {[tagName: string]: ReactElement<unknown, string | JSXElementConstructor<any>>; }

context? ​

optional context?: TContext

count? ​

optional count?: number

defaults? ​

optional defaults?: string

i18n? ​

optional i18n?: i18n

i18nKey? ​

optional i18nKey?: Key | Key[]

ns? ​

optional ns?: Ns | Ns extends readonly infer S[] ? S : never

parent? ​

optional parent?: string | React.ComponentType<any> | null

shouldUnescape? ​

optional shouldUnescape?: boolean

t? ​

optional t?: TFunction<Ns, KPrefix>

tOptions? ​

optional tOptions?: TOpt

values? ​

optional values?: InterpolationMap<Ret>

Type Parameters ​

Key ​

Key extends ParseKeys<Ns, TOpt, KPrefix>

Ns ​

Ns extends Namespace = _DefaultNamespace

KPrefix ​

KPrefix = undefined

TContext ​

TContext extends string | undefined = undefined

TOpt ​

TOpt extends TOptions & object = { context: TContext; }

Ret ​

Ret = TFunctionReturn<Ns, _AppendKeyPrefix<Key, KPrefix>, TOpt>

E ​

E = React.HTMLProps<HTMLDivElement>