views:

47

answers:

3

Hi,

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?

Thanks

+1  A: 

This is a good place to start.

Matt Ball
Thanks. Actually I want to use Django's i18n in some way.
pocoa
Ah, ok. I thought you were looking for a pure JavaScript solution. Sorry!
Matt Ball
It's alright. Thank you anyway!
pocoa
A: 

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.

Eli Grey