Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/grammy_i18n/deps.ts

Internationalization for grammY powered by Fluent.
Latest
import * as grammyI18n from "https://deno.land/x/grammy_i18n@v1.1.0/deps.ts";

Classes

When your bot receives a message, Telegram sends an update object to your bot. The update contains information about the chat, the user, and of course the message itself. There are numerous other updates, too: https://core.telegram.org/bots/api#update

Message bundles are single-language stores of translation resources. They are responsible for formatting message values and attributes to strings.

Fluent Resource is a structure storing parsed localization entries.

Functions

Negotiates the languages between the list of requested locales against a list of available locales.

Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options.

Same as walk() but uses synchronous ops

Type Aliases

Type of the context object that is available inside the handlers for bot.hears.

Middleware in the form of a function.