开发者

Multilanguage support in my Javascript code

开发者 https://www.devze.com 2023-01-13 07:10 出处:网络
I\'m using Django and I need to support multilanguage in my Javascript code. But my Javascript files are into site_media so they are not rendering by the template engine. I would like to learn what is

I'm using Django and I need to support multilanguage in my Javascript code. But my Javascript files are into site_media so they are not rendering by the template engine. I would like to learn what is the most common solution for this situation, how do you handle it generally?

Tha开发者_高级运维nks


You may want to look into the l10n.js library I've written. The benefits are that you can separate language data files and code in a way that only optionally requires l10n.js.

0

精彩评论

暂无评论...
验证码 换一张
取 消