Skip to content
Snippets Groups Projects
Commit fd64c900 authored by chrisgarrity's avatar chrisgarrity
Browse files

Temporarily exclude RTL languages from the menu

Currently that’s just hebrew. It’s still available with the `?locale=he` for people to check translations.

It’s being temporarily excluded from the menu until we have RTL support for the interface.
parent 29918109
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