Skip to content

API Reference / @gtkx/i18n / IcuTransWithoutContextProps

Type Alias: IcuTransWithoutContextProps<Key, Ns, KPrefix, TContext, TOpt> ​

IcuTransWithoutContextProps<Key, Ns, KPrefix, TContext, TOpt> = object

Props for IcuTransWithoutContext component (no React context)

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; }

Properties ​

content ​

content: IcuTransContentDeclaration[]

Declaration tree describing React components and their props


defaultTranslation ​

defaultTranslation: string

The default translation in ICU format with numbered tags (e.g., "<0>Click here</0>")


i18n? ​

optional i18n?: i18n

i18next instance. If not provided, uses global instance


i18nKey ​

i18nKey: Key

The i18n key to look up the translation


ns? ​

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

Optional namespace(s) for the translation


t? ​

optional t?: TFunction<Ns, KPrefix>

Custom translation function


values? ​

optional values?: Record<string, any>

Optional values for ICU variable interpolation