Search Results for

    Show / Hide Table of Contents

    Localization

    Framework has localization support.
    Before handler executes Current Culture Info updates with ICultureInfoUpdater

    ICultureInfoUpdater

    By default, used UserLanguageCultureInfoUpdater which get culture from telegram user lang code.

    To use own write implementation of ICultureInfoUpdater and configure TelegramModulesService with custom ICultureInfoUpdater

    .AddTelegramModulesService((context, c) =>
    {
        c.CultureInfoUpdater = new CustomCultureInfoUpdater();
    })
    

    Default Error Messages

    TelegramModularFramework.Localization.DefaultErrorMessages is resource file contains some common messages. You can use it to localize errors in post execution event.
    See Samples for more info.

    Type Readers

    Default Type Readers already have localization

    Contribution

    If you want to add new localization you can add new Resource with pull request or add localization to CSV FIle and open issue with updated file

    • Improve this Doc
    ☀
    ☾
    In This Article
    Back to top
    TelegramModularFramework (c) 2022-2022
    ☀
    ☾