Python, flask and building a bilingual application

I need to create a web application that can support two languages, namely English and Japanese. I don't need a translator, just a workflow to display text based on user preferences.

Is there such a structure in which I do not need to invent a pause? Or do I need to create two separate sites?

+5
source share
2 answers

Multilingual sites are usually created using gettext (which is supported on many systems, including Django, as well as Flask). I have not used it personally, but Flask-Babel seems like the package you need.

: , , . ( Django , , Flask).

+9

python gettext , Accept-Language URL-.

+3

All Articles