aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/settings.js')
-rw-r--r--ui/app/settings.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/settings.js b/ui/app/settings.js
index e855d6324..8764dcafe 100644
--- a/ui/app/settings.js
+++ b/ui/app/settings.js
@@ -107,11 +107,12 @@ class Settings extends Component {
renderCurrentLocale () {
const { updateCurrentLocale, currentLocale } = this.props
+ const currentLocaleMeta = locales.find(locale => locale.code === currentLocale)
return h('div.settings__content-row', [
h('div.settings__content-item', [
h('span', 'Current Language'),
- h('span.settings__content-description', `${currentLocale.name}`),
+ h('span.settings__content-description', `${currentLocaleMeta.name}`),
]),
h('div.settings__content-item', [
h('div.settings__content-item-col', [
@@ -452,7 +453,7 @@ Settings.propTypes = {
goHome: PropTypes.func,
isMascara: PropTypes.bool,
updateCurrentLocale: PropTypes.func,
- currentLocale: PropTypes.object,
+ currentLocale: PropTypes.string,
t: PropTypes.func,
}