From 0f8617d257c23a2ec3f571f2e3c8b216468df450 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Wed, 24 Jul 2019 10:17:58 -0400 Subject: [PATCH] fix: add language setting back in tested locally, doesn't work in dev mode now. We'll fix later. --- src/ui/page/settings/view.jsx | 46 +++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/src/ui/page/settings/view.jsx b/src/ui/page/settings/view.jsx index bda039b48..6f92a68fa 100644 --- a/src/ui/page/settings/view.jsx +++ b/src/ui/page/settings/view.jsx @@ -30,8 +30,8 @@ type Props = { showNsfw: boolean, instantPurchaseEnabled: boolean, instantPurchaseMax: Price, - // currentLanguage: string, - // languages: {}, + currentLanguage: string, + languages: {}, currentTheme: string, themes: Array, automaticDarkModeEnabled: boolean, @@ -140,8 +140,8 @@ class SettingsPage extends React.PureComponent { instantPurchaseEnabled, instantPurchaseMax, currentTheme, - // currentLanguage, - // languages, + currentLanguage, + languages, themes, automaticDarkModeEnabled, autoplay, @@ -408,22 +408,24 @@ class SettingsPage extends React.PureComponent { )} /> - {/* - {Object.keys(languages).map(language => ( - - ))} - */} + { + + {Object.keys(languages).map(language => ( + + ))} + + } @@ -431,7 +433,9 @@ class SettingsPage extends React.PureComponent {

{__('Application Cache')}

- {__('This will clear the application cache. Your wallet will not be affected.')} + {__( + 'This will clear the application cache. Your wallet will not be affected. Currently, followed tags will be cleared.' + )}