From 7b191a006ef13bc19d841b84bae365088000ee06 Mon Sep 17 00:00:00 2001 From: Augustin Mauroy Date: Sat, 2 Mar 2024 09:33:16 +0100 Subject: [PATCH 1/3] chore(i18n): remove legacy key + rename --- components/Common/ThemeToggle/index.tsx | 2 +- components/Containers/Footer/index.tsx | 8 ++-- i18n/locales/en.json | 60 ++++++++++-------------- navigation.json | 61 ++++++++++++++++++++++--- site.json | 51 +-------------------- types/config.ts | 13 ------ types/navigation.ts | 13 ++++++ 7 files changed, 97 insertions(+), 111 deletions(-) diff --git a/components/Common/ThemeToggle/index.tsx b/components/Common/ThemeToggle/index.tsx index 9696c945f211..ac2f06fefc8f 100644 --- a/components/Common/ThemeToggle/index.tsx +++ b/components/Common/ThemeToggle/index.tsx @@ -11,7 +11,7 @@ type ThemeToggleProps = { const ThemeToggle: FC = ({ onClick = () => {} }) => { const t = useTranslations(); - const ariaLabel = t('components.header.buttons.toggleTheme'); + const ariaLabel = t('components.common.themeToggle.label'); return (