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

x/grammy_i18n/types.ts>I18nFlavor

Internationalization for grammY powered by Fluent.
Latest
interface I18nFlavor
import { type I18nFlavor } from "https://deno.land/x/grammy_i18n@v1.1.0/types.ts";

Properties

i18n: { fluent: Fluent; getLocale(): Promise<string>; setLocale(locale: LocaleId): Promise<void>; useLocale(locale: LocaleId): void; renegotiateLocale(): Promise<void>; }

I18n context namespace object

Translation function bound to the current locale.

Translation function bound to the current locale.