I am trying to make a bilingual website (English and Greek). I use tornadoes and I put the global function _() in my templates. The translation comes directly from .csv. Everything is fine in html, so I can write {{_("Hello")}} , and if the user language is Greek, the word "Hello" is translated in Greek. However, I do not know how to do the same in javascript. For instance:
foo.html("Hello")
I do not know how to enable javascript to work with Tornado localization.
thanks
source share