B
B
bituke2021-08-17 12:02:42
Django
bituke, 2021-08-17 12:02:42

What is the best way to implement multilingualism?

Good day! There is a project written in django, the front is written using a template engine.
The next task is to introduce multilingualism into the project (in general, 3 languages), all the lines have already been translated in the form I need, everything needs to be integrated up to the letter. I think, just add js buttons with a choice of language, when you click on which all the displayed information will change to the desired language. But this is how you need to rewrite absolutely all the templates, stupidly copy them into 3 copies, and with the selected language, display the one we need with the right language. Does this have some more elegant solution? How would you accomplish this task? And where do you need to store information about the selected language? In back? In cookies? Or just hash?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-08-17
@bituke

https://docs.djangoproject.com/en/3.2/topics/i18n/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question