Interface: InternationalizationContext
Defined in: projects/plugins/packages/i18next/src/lib/types.ts:147
Context for InternationalizationHandler.fetchLanguage functions. This context enables implementation of per-guild, per-channel, and per-user localization.
Properties
channel
channel:
null
|DiscordChannel
Defined in: projects/plugins/packages/i18next/src/lib/types.ts:151
The DiscordChannel object to fetch the preferred language for.
guild
guild:
null
|Guild
Defined in: projects/plugins/packages/i18next/src/lib/types.ts:149
The Guild object to fetch the preferred language for, or null
if the language is to be fetched in a DM.
interactionGuildLocale?
optional
interactionGuildLocale:null
|Locale
Defined in: projects/plugins/packages/i18next/src/lib/types.ts:154
interactionLocale?
optional
interactionLocale:Locale
Defined in: projects/plugins/packages/i18next/src/lib/types.ts:155
user
user:
null
|User
Defined in: projects/plugins/packages/i18next/src/lib/types.ts:153
The user to fetch the preferred language for.