Interface MtcuteI18nParameters<Strings, Input>

interface MtcuteI18nParameters<Strings, Input> {
    adapter?: MtcuteI18nAdapter<Input>;
    defaultLanguage?: string;
    otherLanguages?: Record<string, OtherLanguageWrap<Strings>>;
    primaryLanguage: {
        name: string;
        strings: Strings;
    };
}

Type Parameters

Properties

Adapter that will be used to extract language from the update.

defaultLanguage?: string

Language that will be used if no language is specified

otherLanguages?: Record<string, OtherLanguageWrap<Strings>>
primaryLanguage: {
    name: string;
    strings: Strings;
}

Primary language which will also be used as a fallback

Type declaration

  • name: string

    Two letter language code.

  • strings: Strings

    Strings for the language.