From 3e66c73e2f87038e5ebbc58303a6c8e16c97979b Mon Sep 17 00:00:00 2001 From: ov Date: Thu, 27 Aug 2020 16:00:04 +0100 Subject: [PATCH] Language UI Dropdown new location (#1582) * New language selector design * Adjust authenticated nav to consolidate Account dropdown * Adding language in NavTest Co-authored-by: Cassie Tarakajian --- client/components/Nav.jsx | 21 ++++++++++----------- client/components/__test__/Nav.test.jsx | 3 ++- client/i18n.js | 8 ++++++++ 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/client/components/Nav.jsx b/client/components/Nav.jsx index 4056607f..1aff3927 100644 --- a/client/components/Nav.jsx +++ b/client/components/Nav.jsx @@ -5,7 +5,7 @@ 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'; import * as projectActions from '../modules/IDE/actions/project'; @@ -549,7 +549,7 @@ class Nav extends React.PureComponent { renderLanguageMenu(navDropdownState) { return ( - + ); } @@ -605,6 +605,7 @@ class Nav extends React.PureComponent { renderUnauthenticatedUserMenu(navDropdownState) { return (