refactor: getLocalAuthData

This commit is contained in:
Tristan Yang
2022-12-15 19:39:27 +08:00
parent 160e9678fe
commit 66589bc5bf
4 changed files with 452 additions and 474 deletions
+1
View File
@@ -32,6 +32,7 @@ export const resources = {
} as const;
i18n.on("languageChanged", (lng) => {
console.log("changed", lng);
// 匹配dayjs的多语言关键字
dayjs.locale(lng === 'zh' ? "zh-cn" : lng === 'jp' ? "ja" : lng);
});
i18n