diff --git a/app/[locale]/i18n/locales/en/common.json b/app/[locale]/i18n/locales/en/common.json
index 5455c71..b56852f 100644
--- a/app/[locale]/i18n/locales/en/common.json
+++ b/app/[locale]/i18n/locales/en/common.json
@@ -25,6 +25,10 @@
"telegramshare": "telegram share button",
"pinterestshare": "pinterest share button",
"threadsshare": "threadsshare button",
+ "theme": "Theme",
+ "light": "Light",
+ "dark": "Dark",
+ "system": "System",
"name": "Name*",
"title": "Contact me",
"mail": "Email*",
@@ -36,4 +40,4 @@
"urlcopied": "URL copied!",
"contact": "Contact",
"back": "Go Back"
-}
+}
\ No newline at end of file
diff --git a/app/[locale]/i18n/locales/fr/common.json b/app/[locale]/i18n/locales/fr/common.json
index 92f06dc..c13260a 100644
--- a/app/[locale]/i18n/locales/fr/common.json
+++ b/app/[locale]/i18n/locales/fr/common.json
@@ -25,6 +25,10 @@
"telegramshare": "bouton de partage telegram",
"pinterestshare": "bouton de partage pinterest",
"threadsshare": "bouton de partage threads",
+ "theme": "Thème",
+ "light": "Clair",
+ "dark": "Sombre",
+ "system": "Système",
"name": "Nom*",
"title": "Me contacter",
"mail": "Email*",
@@ -36,4 +40,4 @@
"urlcopied": "URL copiée!",
"contact": "Contact",
"back": "Retour"
-}
+}
\ No newline at end of file
diff --git a/components/search/components/KBarModal.tsx b/components/search/components/KBarModal.tsx
index a4f3c75..612bb48 100644
--- a/components/search/components/KBarModal.tsx
+++ b/components/search/components/KBarModal.tsx
@@ -142,7 +142,7 @@ export const KBarModal = ({ actions, isLoading }: { actions: Action[]; isLoading
-
Theme
+ {t('theme')}
>
)}
@@ -168,7 +168,8 @@ export const KBarModal = ({ actions, isLoading }: { actions: Action[]; isLoading
{showEmailForm && (
-
+
+
{t('title')}
+ {t('theme')}
)}
diff --git a/components/theme/ThemeSwitch.tsx b/components/theme/ThemeSwitch.tsx
index 7410854..8219c38 100644
--- a/components/theme/ThemeSwitch.tsx
+++ b/components/theme/ThemeSwitch.tsx
@@ -7,8 +7,13 @@ import { DarkModeSwitch } from './DarkModeSwitch'
import { Monitor, Moon, Sun } from './icons'
import { useTheme } from './ThemeContext'
import { useOuterClick } from '../util/useOuterClick'
+import { useParams } from 'next/navigation'
+import { LocaleTypes } from 'app/[locale]/i18n/settings'
+import { useTranslation } from 'app/[locale]/i18n/client'
const ThemeSwitch = () => {
+ const locale = useParams()?.locale as LocaleTypes
+ const { t } = useTranslation(locale, '')
const { theme, setTheme, mounted } = useTheme()
const [menuOpen, setMenuOpen] = React.useState(false)
const [darkModeChecked, setDarkModeChecked] = React.useState(theme === 'dark')
@@ -30,7 +35,7 @@ const ThemeSwitch = () => {
return (