import React from 'react'; import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap'; import { gettext, siteRoot } from '../../utils/constants'; const { currentLang, langList } = window.app.pageOptions; class LanguageSetting extends React.Component { constructor(props) { super(props); this.state = { dropdownOpen: false, }; } toggle = () => { this.setState({ dropdownOpen: !this.state.dropdownOpen }); } render() { return (