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;