Simplify autoselect for languages and use lang object in template