template.html, js detect "lang"