Interface: InternationalizationContext
@sapphire/plugin-i18next.InternationalizationContext
Context for 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.
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:149
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.
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:147
interactionGuildLocale
• Optional
interactionGuildLocale: null
| Locale
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:152
interactionLocale
• Optional
interactionLocale: Locale
Defined in
projects/plugins/packages/i18next/src/lib/types.ts:153
user
• user: null
| User
The user to fetch the preferred language for.