mirror of
https://github.com/mue/mue.git
synced 2026-07-14 12:34:03 +02:00
Add Spanish to language dropdown
This commit is contained in:
@@ -2,19 +2,19 @@ import React from 'react';
|
||||
|
||||
export default class Dropdown extends React.PureComponent {
|
||||
getLabel() {
|
||||
return this.props.label ? <label htmlFor={this.props.name}>{this.props.label} </label> : null;
|
||||
return this.props.label ? <label htmlFor={this.props.name}>{this.props.label}</label> : null;
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<React.Fragment>
|
||||
{this.getLabel()}
|
||||
<div className='dropdown' style={{ display: 'inline' }}>
|
||||
<select name={this.props.name} id={this.props.id} onChange={this.props.onChange}>
|
||||
{this.props.children}
|
||||
</select>
|
||||
</div>
|
||||
</>
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -12,8 +12,9 @@ export default class LanguageSettings extends React.PureComponent {
|
||||
onChange={() => localStorage.setItem('language', document.getElementById('language').value)}
|
||||
>
|
||||
<option className='choices' value='en'>English</option>
|
||||
<option className='choices' value='nl'>Nederlands</option>
|
||||
<option className='choices' value='es'>Español</option>
|
||||
<option className='choices' value='fr'>Français</option>
|
||||
<option className='choices' value='nl'>Nederlands</option>
|
||||
<option className='choices' value='no'>Norsk</option>
|
||||
<option className='choices' value='ru'>Pусский</option>
|
||||
</Dropdown>
|
||||
|
||||
Reference in New Issue
Block a user