mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
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:
@ -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,
|
||||
});
|
||||
|
Reference in New Issue
Block a user