aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-28 09:10:13 +0800
committerkumavis <aaron@kumavis.me>2018-03-28 09:10:13 +0800
commite3881143cb010c47464bf9af01014fe5bb045621 (patch)
tree901141b9c82b2cc4e0f843640554c3e95a8d6e4d
parent165ae7d193ba2d5f29e0a6472bb26fa13efd1625 (diff)
downloadtangerine-wallet-browser-e3881143cb010c47464bf9af01014fe5bb045621.tar
tangerine-wallet-browser-e3881143cb010c47464bf9af01014fe5bb045621.tar.gz
tangerine-wallet-browser-e3881143cb010c47464bf9af01014fe5bb045621.tar.bz2
tangerine-wallet-browser-e3881143cb010c47464bf9af01014fe5bb045621.tar.lz
tangerine-wallet-browser-e3881143cb010c47464bf9af01014fe5bb045621.tar.xz
tangerine-wallet-browser-e3881143cb010c47464bf9af01014fe5bb045621.tar.zst
tangerine-wallet-browser-e3881143cb010c47464bf9af01014fe5bb045621.zip
ui - settings - derrive locales from index
-rw-r--r--ui/app/settings.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/ui/app/settings.js b/ui/app/settings.js
index 7443f2bd4..e855d6324 100644
--- a/ui/app/settings.js
+++ b/ui/app/settings.js
@@ -9,6 +9,7 @@ const { exportAsFile } = require('./util')
const TabBar = require('./components/tab-bar')
const SimpleDropdown = require('./components/dropdowns/simple-dropdown')
const ToggleButton = require('react-toggle-button')
+const locales = require('../../app/_locales/index.json')
const { OLD_UI_NETWORK_TYPE } = require('../../app/scripts/config').enums
const getInfuraCurrencyOptions = () => {
@@ -25,13 +26,6 @@ const getInfuraCurrencyOptions = () => {
})
}
-const locales = [
- { name: 'English', code: 'en' },
- { name: 'Japanese', code: 'ja' },
- { name: 'French', code: 'fr' },
- { name: 'Spanish', code: 'es' },
-]
-
const getLocaleOptions = () => {
return locales.map((locale) => {
return {
@@ -491,4 +485,3 @@ const mapDispatchToProps = dispatch => {
}
module.exports = connect(mapStateToProps, mapDispatchToProps)(Settings)
-