Add getUILanguage function
Merge pull request #2958 from pine613/feature/chrome/i18n

Add getUILanguage function