added setLanguage and otherLanguages snippets