O
O
OCCASS OCCASSOVICH2022-03-21 21:52:35
Telegram
OCCASS OCCASSOVICH, 2022-03-21 21:52:35

How to make multilingual in aiogram?

I'm making a telegram bot, there were problems with adding a new language to the bot.
Yes, I read the documentation about i18n, watched videos about localization. Everything doesn’t work right from the first point, like pybabel should take text from files, but it doesn’t take anything, then I started to do everything manually, but it still doesn’t work, what should I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2022-03-22
@shurshur

Like any multilingualism - through the replacement of the direct output of strings with a language-dependent substitution of the desired variant. You can either cut it yourself or use ready-made solutions. For example, gettext was discussed here https://qna.habr.com/q/960557

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question