adds arabic to language picker

This commit is contained in:
psychedelicious 2023-02-13 21:22:39 +11:00
parent 71c6ae8789
commit 3ff40114fa

View File

@ -9,10 +9,10 @@ import { FaLanguage } from 'react-icons/fa';
export default function LanguagePicker() { export default function LanguagePicker() {
const { t, i18n } = useTranslation(); const { t, i18n } = useTranslation();
const LANGUAGES = { const LANGUAGES = {
en: t('common:langEnglish'), ar: t('common:langArabic'),
nl: t('common:langDutch'), nl: t('common:langDutch'),
en: t('common:langEnglish'),
fr: t('common:langFrench'), fr: t('common:langFrench'),
de: t('common:langGerman'), de: t('common:langGerman'),
it: t('common:langItalian'), it: t('common:langItalian'),
@ -35,7 +35,6 @@ export default function LanguagePicker() {
onClick={() => i18n.changeLanguage(lang)} onClick={() => i18n.changeLanguage(lang)}
className="modal-close-btn lang-select-btn" className="modal-close-btn lang-select-btn"
aria-label={LANGUAGES[lang as keyof typeof LANGUAGES]} aria-label={LANGUAGES[lang as keyof typeof LANGUAGES]}
tooltip={LANGUAGES[lang as keyof typeof LANGUAGES]}
size="sm" size="sm"
minWidth="200px" minWidth="200px"
> >