diff options
-rw-r--r-- | app/scripts/lib/get-first-preferred-lang-code.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/lib/get-first-preferred-lang-code.js b/app/scripts/lib/get-first-preferred-lang-code.js index 55f3fb6f..8fe6b1f9 100644 --- a/app/scripts/lib/get-first-preferred-lang-code.js +++ b/app/scripts/lib/get-first-preferred-lang-code.js @@ -7,7 +7,7 @@ const getPreferredLocales = extension.i18n ? promisify( { errorFirst: false } ) : async () => [] -const existingLocaleCodes = allLocales.map(locale => locale.code.toLowerCase().replace('_', '-')) +const existingLocaleCodes = allLocales.map(locale => locale.code) /** * Returns a preferred language code, based on settings within the user's browser. If we have no translations for the |