import { type I18nConfig } from "https://deno.land/x/grammy_i18n@v1.1.0/mod.ts";
Properties
A locale ID to use by default. This is used when locale negotiator and session (if enabled) returns an empty result. The default value is "en".
Whether to use session to get and set language code. You must be using session with it.
Configuration for the Fluent instance used internally.
Bundle options to use when adding a translation to the Fluent instance.
An optional function that determines which locale to use. See Locale Negotiation for more details.
Convenience function for defining global variables that are used frequently in the translation context. Variables defined inside this can be used directly in the translation source file without having to specifying them when calling the translate function. It is possible to overwrite the values by re-defining them in the translation context of translate function.