From ff7fc23336742185801aa56abbc5d29c92758592 Mon Sep 17 00:00:00 2001 From: Vit Stanislav Date: Tue, 11 Dec 2018 14:48:20 +0100 Subject: [PATCH] :recycle: Remove commented out code for Language switcher in settings --- i18n/locales/en/common.json | 2 -- src/components/setting/setting.js | 34 ------------------------------- 2 files changed, 36 deletions(-) diff --git a/i18n/locales/en/common.json b/i18n/locales/en/common.json index 324468e6ca..cc43ea79cd 100644 --- a/i18n/locales/en/common.json +++ b/i18n/locales/en/common.json @@ -83,7 +83,6 @@ "Create your second passphrase": "Create your second passphrase", "Currency": "Currency", "Current version is up-to-date.": "Current version is up-to-date.", - "Currently we speaking english and german.": "Currently we speaking english and german.", "Custom Node": "Custom Node", "Cut": "Cut", "Dashboard": "Dashboard", @@ -164,7 +163,6 @@ "Keep track of any Lisk ID balance. Only you will see who you follow.": "Keep track of any Lisk ID balance. Only you will see who you follow.", "LSK received": "LSK received", "LSK/BTC": "LSK/BTC", - "Language": "Language", "Later": "Later", "Latest activity": "Latest activity", "Learn about blockchain with our comprehensive knowledge base.": "Learn about blockchain with our comprehensive knowledge base.", diff --git a/src/components/setting/setting.js b/src/components/setting/setting.js index 982e073209..7457a72b2c 100644 --- a/src/components/setting/setting.js +++ b/src/components/setting/setting.js @@ -5,7 +5,6 @@ import grid from 'flexboxgrid/dist/flexboxgrid.css'; // import ReactSwipe from 'react-swipe'; import Checkbox from '../toolbox/sliderCheckbox'; import styles from './setting.css'; -import i18n from '../../i18n'; import accountConfig from '../../constants/account'; import settingsConst from './../../constants/settings'; // TODO: will be re-enabled when the functionality is updated @@ -22,14 +21,6 @@ class Setting extends React.Component { }; } - // changeLanguage(e) {//eslint-disable-line - // if (e.checked) { - // i18n.changeLanguage('de'); - // } else { - // i18n.changeLanguage('en'); - // } - // } - toggleAutoLog(state) { const { account, settings, settingsUpdated, accountUpdated, @@ -42,7 +33,6 @@ class Setting extends React.Component { } render() { - this.language = (i18n.language === 'de'); const { t, settings, settingsUpdated, hasSecondPassphrase, @@ -128,30 +118,6 @@ class Setting extends React.Component { ))} - {/* TODO: will be re-enabled when the functionality is updated - {/* TODO: will be re-enabled when the functionality is updated -
- -
-
{t('Language')}
-

{t('Currently we speaking english and german.')}

-
-
- */} ); }