fix: add language setting back in

tested locally, doesn't work in dev mode now. We'll fix later.
This commit is contained in:
Thomas Zarebczan 2019-07-24 10:17:58 -04:00 committed by Sean Yesmunt
parent 46e12aad44
commit 0f8617d257

View file

@ -30,8 +30,8 @@ type Props = {
showNsfw: boolean, showNsfw: boolean,
instantPurchaseEnabled: boolean, instantPurchaseEnabled: boolean,
instantPurchaseMax: Price, instantPurchaseMax: Price,
// currentLanguage: string, currentLanguage: string,
// languages: {}, languages: {},
currentTheme: string, currentTheme: string,
themes: Array<string>, themes: Array<string>,
automaticDarkModeEnabled: boolean, automaticDarkModeEnabled: boolean,
@ -140,8 +140,8 @@ class SettingsPage extends React.PureComponent<Props, State> {
instantPurchaseEnabled, instantPurchaseEnabled,
instantPurchaseMax, instantPurchaseMax,
currentTheme, currentTheme,
// currentLanguage, currentLanguage,
// languages, languages,
themes, themes,
automaticDarkModeEnabled, automaticDarkModeEnabled,
autoplay, autoplay,
@ -408,22 +408,24 @@ class SettingsPage extends React.PureComponent<Props, State> {
)} )}
/> />
{/* <FormField {
name="language_select" <FormField
type="select" name="language_select"
label={__('Language')} type="select"
onChange={this.onLanguageChange} label={__('Language')}
value={currentLanguage} onChange={this.onLanguageChange}
helper={__( value={currentLanguage}
'Multi-language support is brand new and incomplete. Switching your language may have unintended consequences.' helper={__(
)} 'Multi-language support is brand new and incomplete. Switching your language may have unintended consequences.'
> )}
{Object.keys(languages).map(language => ( >
<option key={language} value={language}> {Object.keys(languages).map(language => (
{languages[language]} <option key={language} value={language}>
</option> {languages[language]}
))} </option>
</FormField> */} ))}
</FormField>
}
</Form> </Form>
</section> </section>
@ -431,7 +433,9 @@ class SettingsPage extends React.PureComponent<Props, State> {
<h2 className="card__title">{__('Application Cache')}</h2> <h2 className="card__title">{__('Application Cache')}</h2>
<p className="card__subtitle--status"> <p className="card__subtitle--status">
{__('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.'
)}
</p> </p>
<Button <Button