telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Interface I18nOptions

    Configuration for the i18n plugin.

    const options: I18nOptions = {
    default_locale: "en",
    locales: {
    en: { hello: "Hello, {name}!" },
    vi: { hello: "Xin chào, {name}!" },
    },
    };
    interface I18nOptions {
        default_locale: string;
        locale_key?: string;
        locales: Record<string, Record<string, string>>;
    }
    Index
    default_locale: string

    Locale used when the user's preferred locale has no translations.

    locale_key?: string

    Key inside context.user_data where the chosen locale is stored.

    "_telebot_locale"

    locales: Record<string, Record<string, string>>

    Translation tables keyed by locale code, then by message key.