aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHsuan Lee <hsuan@cobinhood.com>2018-12-05 10:30:37 +0800
committerHsuan Lee <hsuan@cobinhood.com>2018-12-10 18:52:54 +0800
commitc941911cf37a9baff8f40023b57ab413190b1a46 (patch)
tree9c3c573351a78b940833deb495daf7f22f91fa0f
parent56786da506cce8ec6e2239517514477671d2d1d3 (diff)
downloaddexon-wallet-c941911cf37a9baff8f40023b57ab413190b1a46.tar.gz
dexon-wallet-c941911cf37a9baff8f40023b57ab413190b1a46.tar.zst
dexon-wallet-c941911cf37a9baff8f40023b57ab413190b1a46.zip
Fix locale mapping
-rw-r--r--app/scripts/lib/get-first-preferred-lang-code.js2
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