diff --git a/examples/i18n_example.py b/examples/i18n_example.py index 3bb624bd..2d65655a 100644 --- a/examples/i18n_example.py +++ b/examples/i18n_example.py @@ -62,8 +62,7 @@ async def cmd_start(message: types.Message): @dp.message_handler(commands='lang') async def cmd_lang(message: types.Message, locale): - # For setting custom lang you have to modify i18n middleware, like this: - # https://github.com/aiogram/EventsTrackerBot/blob/master/modules/base/middlewares.py + # For setting custom lang you have to modify i18n middleware await message.reply(_('Your current language: {language}').format(language=locale)) # If you care about pluralization, here's small handler