diff --git a/client/i18n/locales/chinese/translations.json b/client/i18n/locales/chinese/translations.json index 144873621a..082a3af833 100644 --- a/client/i18n/locales/chinese/translations.json +++ b/client/i18n/locales/chinese/translations.json @@ -396,7 +396,8 @@ "update-email-1": "更新你的邮件地址", "update-email-2": "在这里更新你的邮件地址:", "email": "邮箱", - "and": "和" + "and": "和", + "change-theme": "Sign in to change theme." }, "icons": { "gold-cup": "金奖杯", diff --git a/client/i18n/locales/english/translations.json b/client/i18n/locales/english/translations.json index a29867a6bc..4351bde18c 100644 --- a/client/i18n/locales/english/translations.json +++ b/client/i18n/locales/english/translations.json @@ -398,7 +398,8 @@ "update-email-1": "Update your email address", "update-email-2": "Update your email address here:", "email": "Email", - "and": "and" + "and": "and", + "change-theme": "Sign in to change theme." }, "icons": { "gold-cup": "Gold Cup", diff --git a/client/i18n/locales/espanol/translations.json b/client/i18n/locales/espanol/translations.json index 922f611e79..b5a55f50bf 100644 --- a/client/i18n/locales/espanol/translations.json +++ b/client/i18n/locales/espanol/translations.json @@ -398,7 +398,8 @@ "update-email-1": "Actualiza tu correo electrónico", "update-email-2": "Actualiza tu correo electrónico aquí:", "email": "Correo electrónico", - "and": "y" + "and": "y", + "change-theme": "Sign in to change theme." }, "icons": { "gold-cup": "Copa de Oro", diff --git a/client/i18n/translations-schema.js b/client/i18n/translations-schema.js index 1b9bd9e624..f71c00d04f 100644 --- a/client/i18n/translations-schema.js +++ b/client/i18n/translations-schema.js @@ -470,7 +470,8 @@ const translationsSchema = { 'update-email-1': 'Update your email address', 'update-email-2': 'Update your email address here:', email: 'Email', - and: 'and' + and: 'and', + 'change-theme': 'Sign in to change theme.' }, icons: { 'gold-cup': 'Gold Cup', diff --git a/client/src/components/Footer/LanguageMenu.js b/client/src/components/Footer/LanguageMenu.js deleted file mode 100644 index 1ca1ce8694..0000000000 --- a/client/src/components/Footer/LanguageMenu.js +++ /dev/null @@ -1,50 +0,0 @@ -/* eslint-disable jsx-a11y/no-onchange */ -import React from 'react'; -import { useTranslation } from 'react-i18next'; - -const { - availableLangs, - i18nextCodes, - langDisplayNames -} = require('../../../i18n/allLangs'); -const { homeLocation } = require('../../../config/env'); - -const locales = availableLangs.client; - -const LanguageMenu = () => { - const { i18n, t } = useTranslation(); - const i18nLanguage = i18n.language; - - const currentLanguage = Object.keys(i18nextCodes).find( - key => i18nextCodes[key] === i18nLanguage - ); - - const changeLanguage = e => { - const path = window.location.pathname; - - if (e.target.value === 'espanol') { - window.location.replace(`${homeLocation}/espanol${path}`); - } else { - window.location.replace(`${homeLocation}${path}`); - } - }; - - return ( -
- -
- ); -}; - -export default LanguageMenu; diff --git a/client/src/components/Footer/__snapshots__/Footer.test.js.snap b/client/src/components/Footer/__snapshots__/Footer.test.js.snap index 46b912e05c..7af2ed97d4 100644 --- a/client/src/components/Footer/__snapshots__/Footer.test.js.snap +++ b/client/src/components/Footer/__snapshots__/Footer.test.js.snap @@ -13,32 +13,6 @@ exports[`