Overview of the @grammyjs/i18n plugin
The
@grammyjs/i18n plugin enables multi-language support (localization) for grammy bots. It is based on the Fluent localization system by Mozilla, allowing developers to move hard-coded strings into external translation files (.ftl). The plugin automatically determines the user's locale and provides a ctx.t() method to retrieve the translated text.