Skip to content
Snippets Groups Projects
Unverified Commit a810f500 authored by chrisgarrity's avatar chrisgarrity Committed by GitHub
Browse files

Merge pull request #2706 from chrisgarrity/feature/exclude-rtl

[MASTER] Temporarily exclude RTL languages from the menu
parents 29918109 fd64c900
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,9 @@ import Box from '../box/box.jsx';
import locales from 'scratch-l10n';
import styles from './language-selector.css';
// supported languages to exclude from the menu, but allow as a URL option
const ignore = ['he'];
class LanguageSelector extends React.Component {
render () {
const {
......@@ -26,14 +29,18 @@ class LanguageSelector extends React.Component {
value={currentLocale}
onChange={onChange}
>
{Object.keys(locales).map(locale => (
<option
key={locale}
value={locale}
>
{locales[locale].name}
</option>
))}
{
Object.keys(locales)
.filter(l => !ignore.includes(l))
.map(locale => (
<option
key={locale}
value={locale}
>
{locales[locale].name}
</option>
))
}
</select>
</div>
</Box>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment