import { localeAtom, translationAtom } from "@/atoms/translations-atom"; import { useAtomValue, useSetAtom } from "jotai"; const locales = { en: "English", ru: "Русский", ja: "日本語", zh: "漢語", es: "Español", fr: "Français", }; const LanguageSwitcher = () => { const setLocale = useSetAtom(localeAtom); const t = useAtomValue(translationAtom); return (

{t("SETTINGS.LANGUAGE.TITLE")}

); }; export default LanguageSwitcher;