Skip to content

Language UI Dropdown new location #1582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 27, 2020
6 changes: 3 additions & 3 deletions client/components/Nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { withRouter } from 'react-router';
import { Link } from 'react-router';
import classNames from 'classnames';
import { withTranslation } from 'react-i18next';
import i18next from 'i18next';
import { languageKeyToLabel } from '../i18n';
import * as IDEActions from '../modules/IDE/actions/ide';
import * as toastActions from '../modules/IDE/actions/toast';
Expand Down Expand Up @@ -807,7 +806,7 @@ Nav.propTypes = {
}),
t: PropTypes.func.isRequired,
setLanguage: PropTypes.func.isRequired,
language: PropTypes.string.isRequired,
language: PropTypes.string,
};

Nav.defaultProps = {
Expand All @@ -820,7 +819,8 @@ Nav.defaultProps = {
warnIfUnsavedChanges: undefined,
params: {
username: undefined
}
},
language: 'en-US'
};

function mapStateToProps(state) {
Expand Down