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

x/grammy_i18n/mod.ts>I18n#t

Internationalization for grammY powered by Fluent.
Go to Latest
method I18n.prototype.t
import { I18n } from "https://deno.land/x/grammy_i18n@v1.0.2/mod.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