Skip to content

API Reference / @gtkx/i18n / IcuTransWithoutContextProps

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

IcuTransWithoutContextProps<Key, Ns, KPrefix, TContext, TOpt> = 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/index.d.ts:51

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[]

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/index.d.ts:63

Declaration tree describing React components and their props


defaultTranslation

defaultTranslation: string

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/index.d.ts:61

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


i18n?

optional i18n?: i18n

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/index.d.ts:70

i18next instance. If not provided, uses global instance


i18nKey

i18nKey: Key

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/index.d.ts:59

The i18n key to look up the translation


ns?

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

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/index.d.ts:66

Optional namespace(s) for the translation


t?

optional t?: TFunction<Ns, KPrefix>

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/index.d.ts:72

Custom translation function


values?

optional values?: Record<string, any>

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/index.d.ts:68

Optional values for ICU variable interpolation

Released under the MPL-2.0 License.