Implement function for getting current language in templates