import { Fluent } from "https://deno.land/x/grammy_i18n@v1.1.0/fluent.ts";
Constructors
new
Fluent(options?: FluentOptions)Properties
private
readonly
bundles: Set<FluentBundle>private
optional
defaultBundle: FluentBundleprivate
handleWarning: WarningHandlerMethods
private
addBundle(options: AddTranslationOptions, source: string)private
createBundle(): FluentBundleprivate
matchBundles(locales: LocaleId[]): Set<FluentBundle>addTranslation(options: AddTranslationOptions): Promise<void>
addTranslationSync(options: AddTranslationOptions): void
translate<K extends string>(): string
withLocale(localeOrLocales: MaybeArray<LocaleId>)
Returns translation function bound to the specified locale(s).