fixed some typos langauge -> language
This commit is contained in:
@ -28,7 +28,7 @@ const options = [(
|
|||||||
key='default'
|
key='default'
|
||||||
value='not-the-momma'
|
value='not-the-momma'
|
||||||
>
|
>
|
||||||
Prefered Langauge
|
Preferred Language
|
||||||
</option>
|
</option>
|
||||||
),
|
),
|
||||||
...Object.keys(langs).map(tag => {
|
...Object.keys(langs).map(tag => {
|
||||||
@ -50,7 +50,7 @@ const options = [(
|
|||||||
)
|
)
|
||||||
];
|
];
|
||||||
|
|
||||||
export class LangaugeSettings extends React.Component {
|
export class LanguageSettings extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
fields: PropTypes.object,
|
fields: PropTypes.object,
|
||||||
handleSubmit: PropTypes.func.isRequired,
|
handleSubmit: PropTypes.func.isRequired,
|
||||||
@ -107,4 +107,4 @@ export default reduxForm(
|
|||||||
},
|
},
|
||||||
mapStateToProps,
|
mapStateToProps,
|
||||||
actions
|
actions
|
||||||
)(LangaugeSettings);
|
)(LanguageSettings);
|
||||||
|
@ -6,7 +6,7 @@ import FA from 'react-fontawesome';
|
|||||||
import LockedSettings from './Locked-Settings.jsx';
|
import LockedSettings from './Locked-Settings.jsx';
|
||||||
import SocialSettings from './Social-Settings.jsx';
|
import SocialSettings from './Social-Settings.jsx';
|
||||||
import EmailSettings from './Email-Setting.jsx';
|
import EmailSettings from './Email-Setting.jsx';
|
||||||
import LangaugeSettings from './Language-Settings.jsx';
|
import LanguageSettings from './Language-Settings.jsx';
|
||||||
|
|
||||||
import { toggleUserFlag } from '../redux/actions';
|
import { toggleUserFlag } from '../redux/actions';
|
||||||
import { toggleNightMode, updateTitle } from '../../../redux/actions';
|
import { toggleNightMode, updateTitle } from '../../../redux/actions';
|
||||||
@ -236,7 +236,7 @@ export class Settings extends React.Component {
|
|||||||
smOffset={ 2 }
|
smOffset={ 2 }
|
||||||
xs={ 12 }
|
xs={ 12 }
|
||||||
>
|
>
|
||||||
<LangaugeSettings />
|
<LanguageSettings />
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<div className='spacer' />
|
<div className='spacer' />
|
||||||
|
@ -36,7 +36,7 @@ export default function settingsController(app) {
|
|||||||
message: `${lang} is currently unsupported`
|
message: `${lang} is currently unsupported`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (user.langaugeTag === lang) {
|
if (user.languageTag === lang) {
|
||||||
return res.json({
|
return res.json({
|
||||||
message: `Your language is already set to ${langName}`
|
message: `Your language is already set to ${langName}`
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user