Skip to main content

Interface: InternationalizationContext

i18next/src.InternationalizationContext

Context for InternationalizationHandler.fetchLanguage functions. This context enables implementation of per-guild, per-channel, and per-user localization.

Properties

author

Optional author: null | User

deprecated Use InternationalizationContext.user instead; this will be removed in the next major version. The user to fetch the preferred language for.

Defined in

projects/plugins/packages/i18next/src/lib/types.ts:144


channel

channel: null | DiscordChannel

The DiscordChannel object to fetch the preferred language for.

Defined in

projects/plugins/packages/i18next/src/lib/types.ts:139


guild

guild: null | Guild

The {@link Guild} object to fetch the preferred language for, or null if the language is to be fetched in a DM.

Defined in

projects/plugins/packages/i18next/src/lib/types.ts:137


interactionGuildLocale

Optional interactionGuildLocale: null | string

Defined in

projects/plugins/packages/i18next/src/lib/types.ts:147


interactionLocale

Optional interactionLocale: string

Defined in

projects/plugins/packages/i18next/src/lib/types.ts:148


user

user: null | User

The user to fetch the preferred language for.

Defined in

projects/plugins/packages/i18next/src/lib/types.ts:146