findSupportedLanguage

Finds the first supported language from a list of preferred languages.