UNPKG

@moebius/grammy-fluent

Version:

Fluent localization system integration for grammY Telegram bot framework

5 lines (4 loc) 293 B
import { LocaleId } from '@moebius/fluent'; import { Context } from 'grammy'; export declare type LocaleNegotiator<ContextType extends Context = Context> = (context: ContextType) => (LocaleId | PromiseLike<LocaleId>); export declare function defaultLocaleNegotiator(context: Context): string;