M
M
MarianaSE2017-08-18 19:04:22
Python
MarianaSE, 2017-08-18 19:04:22

How to make a multilingual telegram bot?

I only have 2 options in my mind:
1. Use gettext, but it's not clear how to implement it.
2. Make a bunch of if-else functions, but it's very cumbersome.
Are there alternative options? Thank you in advance for your response.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artyom Belousov, 2017-08-18
@MarianaSE

It was

W
Weridy, 2017-08-18
@Weridy

By json for each language, and by keys you get the necessary phrases for the desired language.

A
Alexey, 2017-08-18
@RusTech

make a choice of language

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question