1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Delete commented out code from i18n implementation that used globals.

This commit is contained in:
Dan 2018-03-19 13:38:22 -02:30
parent 3191f2aa5e
commit 98f934fb53

View File

@ -113,8 +113,6 @@ class Settings extends Component {
renderCurrentLocale () {
const { updateCurrentLocale, currentLocale } = this.props
// const currentLocaleName = global.translator.localeName
// const currentLocale = locales.find(locale => locale.code === currentLocaleName)
return h('div.settings__content-row', [
h('div.settings__content-item', [
@ -128,10 +126,7 @@ class Settings extends Component {
options: getLocaleOptions(),
selectedOption: currentLocale,
onSelect: async (newLocale) => {
// log('set new locale', newLocale)
// await global.translator.setLocale(newLocale)
updateCurrentLocale(newLocale)
// log('did set new locale', newLocale)
},
}),
]),