Skip to content

Commit

Permalink
♻️ Remove commented out code for Language switcher in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Dec 11, 2018
1 parent 0ad66c6 commit ff7fc23
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
2 changes: 0 additions & 2 deletions i18n/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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.",
Expand Down
34 changes: 0 additions & 34 deletions src/components/setting/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -42,7 +33,6 @@ class Setting extends React.Component {
}

render() {
this.language = (i18n.language === 'de');
const {
t, settings, settingsUpdated,
hasSecondPassphrase,
Expand Down Expand Up @@ -128,30 +118,6 @@ class Setting extends React.Component {
))}
</ul>
</div>
{/* TODO: will be re-enabled when the functionality is updated
{/* TODO: will be re-enabled when the functionality is updated
<div>
<Checkbox
theme={languageSwitcherTheme}
className={`${styles.smallSlider} language-switcher`}
onChange={this.changeLanguage.bind(this)}
textAsIcon={true}
icons={{
unchecked: 'EN',
checked: 'DE',
goal: 'DE',
begin: 'EN',
}}
input={{
value: 'true',
checked: this.language,
}}/>
<article>
<h5>{t('Language')}</h5>
<p>{t('Currently we speaking english and german.')}</p>
</article>
</div>
*/}
</section>
</Box>);
}
Expand Down

0 comments on commit ff7fc23

Please sign in to comment.