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

x/grammy_i18n/i18n.ts>I18n#loadLocalesDir

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

Loads locales from the specified directory and registers them in the Fluent instance.

Parameters

directory: string

Path to the directory to look for the translation files.

Returns

Promise<void>