Commit 8309582d authored by Feli Kramer's avatar Feli Kramer

Add HTML `lang` attributes for accessibility

parent 8568e265
......@@ -3,24 +3,24 @@ import PropTypes from 'prop-types';
import Dropdown from './Dropdown';
const options = [
{ value: 'en', label: <span>English</span> },
{ value: 'ar', label: <span>العربية</span> },
{ value: 'cs', label: <span>Čeština</span> },
{ value: 'cy', label: <span>Cymraeg</span> },
{ value: 'de', label: <span>Deutsch</span> },
{ value: 'es', label: <span>Español</span> },
{ value: 'fr', label: <span>Français</span> },
{ value: 'it', label: <span>Italiano</span> },
{ value: 'ja', label: <span>日本語</span> },
{ value: 'ko', label: <span>한국어</span> },
{ value: 'nl-NL', label: <span>Nederlands</span> },
{ value: 'pl', label: <span>Polski</span> },
{ value: 'pt-BR', label: <span>Português do Brasil</span> },
{ value: 'ru', label: <span>Русский</span> },
{ value: 'sq', label: <span>Shqip</span> },
{ value: 'tr', label: <span>Türkçe</span> },
{ value: 'zh', label: <span>简体中文</span> },
{ value: 'zh-TW', label: <span>繁體中文(臺灣)</span> },
{ value: 'en', label: <span lang="en">English</span> },
{ value: 'ar', label: <span lang="ar">العربية</span> },
{ value: 'cs', label: <span lang="cs">Čeština</span> },
{ value: 'cy', label: <span lang="cy">Cymraeg</span> },
{ value: 'de', label: <span lang="de">Deutsch</span> },
{ value: 'es', label: <span lang="es">Español</span> },
{ value: 'fr', label: <span lang="fr">Français</span> },
{ value: 'it', label: <span lang="it">Italiano</span> },
{ value: 'ja', label: <span lang="ja">日本語</span> },
{ value: 'ko', label: <span lang="ko">한국어</span> },
{ value: 'nl-NL', label: <span lang="nl-NL">Nederlands</span> },
{ value: 'pl', label: <span lang="pl">Polski</span> },
{ value: 'pt-BR', label: <span lang="pt-BR">Português do Brasil</span> },
{ value: 'ru', label: <span lang="ru">Русский</span> },
{ value: 'sq', label: <span lang="sq">Shqip</span> },
{ value: 'tr', label: <span lang="tr">Türkçe</span> },
{ value: 'zh', label: <span lang="zh">简体中文</span> },
{ value: 'zh-TW', label: <span lang="zh-TW">繁體中文(臺灣)</span> },
];
const LanguageSelect = ({ value, onChange }) => (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment