chore: prettier & lint

Former-commit-id: 486f65e137348f400d7b95067bd3cd5a2f23ff44
This commit is contained in:
Jachin
2023-08-04 17:50:25 +08:00
parent a240ff04d2
commit f797606c44
72 changed files with 1234 additions and 484 deletions

View File

@@ -1,25 +1,25 @@
import { createI18n } from 'vue-i18n';
import { useAppStore } from '@/store/modules/app';
import { createI18n } from "vue-i18n";
import { useAppStore } from "@/store/modules/app";
// 本地语言包
import enLocale from "./package/en";
import zhCnLocale from "./package/zh-cn";
const appStore = useAppStore();
// 本地语言包
import enLocale from './package/en';
import zhCnLocale from './package/zh-cn';
const messages = {
'zh-cn': {
...zhCnLocale
"zh-cn": {
...zhCnLocale,
},
en: {
...enLocale
}
...enLocale,
},
};
const i18n = createI18n({
legacy: false,
locale: appStore.language,
messages: messages,
globalInjection: true
globalInjection: true,
});
export default i18n;