changed getPreferredLanguage to getLocaleName to have the current language