Skip to main content
Module

x/grammy_i18n/mod.ts>I18n#loadLocale

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

Registers a locale in the Fluent instance based on the provided options.

Parameters

locale: LocaleId

Locale ID

Options to specify the source and behavior of the translation

Returns

Promise<void>