Interface: InternationalizationContext
Context for InternationalizationHandler.fetchLanguage functions. This context enables implementation of per-guild, per-channel, and per-user localization.
Properties
channel
channel:
null|DiscordChannel
The DiscordChannel object to fetch the preferred language for.
Source
projects/plugins/packages/i18next/src/lib/types.ts:141
guild
guild:
null|Guild
The Guild object to fetch the preferred language for, or null if the language is to be fetched in a DM.
Source
projects/plugins/packages/i18next/src/lib/types.ts:139
interactionGuildLocale?
optionalinteractionGuildLocale:null|Locale
Source
projects/plugins/packages/i18next/src/lib/types.ts:144
interactionLocale?
optionalinteractionLocale:Locale
Source
projects/plugins/packages/i18next/src/lib/types.ts:145
user
user:
null|User
The user to fetch the preferred language for.