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
Ok, I think I found the answer in the Django documentation http://docs.djangoproject.com/en/dev/topics/i18n/internationalization/#specifying-translation-strings-in-javascript-code
. django javascript_catalog view?
- .
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.
Source: https://habr.com/ru/post/1761631/More articles:Почему параметры ковариантного типа не позволяют мне писать [List lst = new List ()]? - .net-4.0that empty regular expressions match in ruby? - ruby | fooobar.comKeypress Detection - cSelenium with Python, how do I get page output after running a script? - pythoncapture java mouse - javaTwo-dimensional matrix section rotation - ruby | fooobar.comIs there javascript lexer / tokenizer (in PHP)? - javascriptHTML value of an HTML form in a loadable AJAX div - javascriptHow to set default target in NLog - nlogCan named pipe names have a backslash? - windowsAll Articles