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

x/grammy_i18n/fluent.ts>Fluent#withLocale

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

Returns translation function bound to the specified locale(s).

Parameters

localeOrLocales: MaybeArray<LocaleId>