import { localeAtom, translationAtom } from "@/atoms/translations-atom"; import { useAtomValue, useSetAtom } from "jotai"; const locales = { en: "English", ru: "Русский", }; const LanguageSwitcher = () => { const setLocale = useSetAtom(localeAtom); const t = useAtomValue(translationAtom); return (
{t("settings.language")}