Skip to main content
Module

x/grammy_i18n/mod.ts>I18n#loadLocalesDir

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