Multilingual support in my javascript code

I am using Django and I need to support multilingualism in my Javascript code. But my Javascript files are in site_media, so they are not displayed by the template engine. I would like to know what is the most common solution for this situation, how do you deal with this in general?

thank

+3
source share
3 answers

- .

+2

You might want to check out the l10n.js library that I wrote. The advantage is that you can separate the data files and the language code in such a way that l10n.js is not necessarily required.

0
source

Source: https://habr.com/ru/post/1761631/