diff --git a/src/languageHandler.js b/src/languageHandler.js index c56e5378df..c11f26ddf1 100644 --- a/src/languageHandler.js +++ b/src/languageHandler.js @@ -336,6 +336,10 @@ export function getLanguagesFromBrowser() { return [navigator.userLanguage || "en"]; } +export function getLanguageFromBrowser() { + return getLanguagesFromBrowser()[0]; +} + /** * Turns a language string, normalises it, * (see normalizeLanguageKey) into an array of language strings