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>) => stringThe localization function bound to the current command.
locale
property
LocaleThe locale to use for the command.
isEventWorker
property
booleanWhether the localization context is from event worker context.