CommandLocalizationContext
CommandLocalizationContext
Signature
interface CommandLocalizationContext {
i18n: i18n;
t: (key: string, options?: Record<string, unknown>) => string;
locale: Locale;
isEventWorker?: boolean;
}
i18n
property
The i18next instance.
t
property
(key: string, options?: Record<string, unknown>) => string
The localization function bound to the current command.
locale
property
Locale
The locale to use for the command.
isEventWorker
property
boolean
Whether the localization context is from event worker context.