Configuration for the i18n plugin.
const options: I18nOptions = { default_locale: "en", locales: { en: { hello: "Hello, {name}!" }, vi: { hello: "Xin chào, {name}!" }, },}; Copy
const options: I18nOptions = { default_locale: "en", locales: { en: { hello: "Hello, {name}!" }, vi: { hello: "Xin chào, {name}!" }, },};
Locale used when the user's preferred locale has no translations.
Optional
Key inside context.user_data where the chosen locale is stored.
context.user_data
"_telebot_locale"
Translation tables keyed by locale code, then by message key.
Configuration for the i18n plugin.
Example