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

{t("APP.SETTINGS.CHANGE_LANG")}

); }; export default LanguageSwitcher;