A
A
Andrey Grinevich2014-07-21 22:19:31
Flask
Andrey Grinevich, 2014-07-21 22:19:31

How to dynamically translate text in Jinja2?

Good day, there is a small project written in Flask, there was an urgent need to support Russian and English-speaking colleagues, everyone quarreled in search of a competent solution, how to translate into English / Russian by clicking, for example, on radio buttons?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s1dney, 2014-07-24
@s1dney

Here it will help - Babel .
And here there is even an example of how to use it with Flask.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question