feat: update RU i18n locale (#1422)

* feat: Fix i18n and RU locale

* fix: eslint issues

* change the position of deps

---------

Co-authored-by: CorrectRoadH <a778917369@gmail.com>
This commit is contained in:
Dmitry Shemin
2023-04-01 14:35:25 +07:00
committed by GitHub
parent d21abfc60c
commit b03778fa73
14 changed files with 169 additions and 59 deletions

View File

@ -1,3 +1,4 @@
import dayjs from "dayjs";
import { useColorScheme } from "@mui/joy";
import { useEffect, Suspense } from "react";
import { Toaster } from "react-hot-toast";
@ -58,6 +59,7 @@ const App = () => {
useEffect(() => {
document.documentElement.setAttribute("lang", locale);
i18n.changeLanguage(locale);
dayjs.locale(locale);
storage.set({
locale: locale,
});