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

x/grammy_i18n/i18n.ts>I18n#t

Internationalization for grammY powered by Fluent.
Latest
method I18n.prototype.t
import { I18n } from "https://deno.land/x/grammy_i18n@v1.1.0/i18n.ts";

Gets a message by its key from the specified locale. Alias of translate.

Type Parameters

K extends string

Parameters

locale: LocaleId
key: string
optional
variables: TranslationVariables<K>

Returns

string