03a8026
1
2
3
4
5
6
7
8
9
10
11
12
from utils.translators.en_ru.ru_en import translate_ru_en translators = {"ru": translate_ru_en} def translate_input(inputs, lang="ru"): translator = translators[lang] text = translator(inputs) return text