Little language gremlins in my code


Since once month ago I’m using a branch of TAP i18n that allows me to specify the language for each word on the client side. I have a current language for the interface, but show texts in 5 languages side by side.

Often the interface starts to mutate to a different language which is not the current language. I suspect it happens when I show words in other languages, and one of those languages “leak” to the interface language. It gets fixed if I choose the desired language again, but it gets annoying to do that repeatedly.

Maybe someone who can juggle with Coffeescript and Tracker.dependency could take a look at these changed lines which allow setting the language on the client side? I think there must be something that goes wrong when requesting several languages in one page, but I don’t know what it is. In this issue I included more details.

I hope someone can give me a hand with this. Thanks!