remove usage of lang where it's optional in templates