From b2a3eef178785fdbb068f1e976d972c145e2f315 Mon Sep 17 00:00:00 2001 From: Munkácsi Márk Date: Fri, 6 Aug 2021 19:49:44 +0400 Subject: Hungarian translation (#170) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Hunagrian lang added 🇭🇺 * Fix 'None' field translation at encryptions * Fix SelectField error --- src/components/Settings.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/components/Settings.js') diff --git a/src/components/Settings.js b/src/components/Settings.js index 1cbe74a..f25bc12 100644 --- a/src/components/Settings.js +++ b/src/components/Settings.js @@ -1,5 +1,5 @@ import { Checkbox, Pane, RadioGroup, SelectField } from 'evergreen-ui'; -import { useEffect, useState } from 'react'; +import { useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import i18n from '../i18n'; import { Translations } from '../translations'; @@ -7,11 +7,11 @@ import './style.css'; export const Settings = (props) => { const { t } = useTranslation(); - const [encryptionModes] = useState([ - { label: 'None', value: '' }, + const encryptionModes = [ + { label: t('wifi.password.encryption.none'), value: '' }, { label: 'WPA/WPA2/WPA3', value: 'WPA' }, { label: 'WEP', value: 'WEP' }, - ]); + ]; useEffect(() => { if (props.firstLoad.current && window.innerWidth < 500) { @@ -28,9 +28,10 @@ export const Settings = (props) => { label={t('select')} selected={i18n.language} onChange={(e) => props.onLanguageChange(e.target.value)} + defaultValue="en-US" > {Translations.map((t) => ( - ))} -- cgit v1.2.3