solving i18n for templates. Crappy solution, but I did not find any other better