From bed6a56fb9942507268034001ae04d54930cc47d Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Wed, 19 Aug 2020 15:00:56 -0400 Subject: [PATCH 1/5] Add prorotype of language selector design --- client/components/Nav.jsx | 14 +++++++++----- client/i18n.js | 8 ++++++++ 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/client/components/Nav.jsx b/client/components/Nav.jsx index 4056607f31..327dcd547b 100644 --- a/client/components/Nav.jsx +++ b/client/components/Nav.jsx @@ -6,6 +6,7 @@ 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 +550,7 @@ class Nav extends React.PureComponent { renderLanguageMenu(navDropdownState) { return ( - + ); } @@ -605,6 +606,7 @@ class Nav extends React.PureComponent { renderUnauthenticatedUserMenu(navDropdownState) { return (