mirror of
https://github.com/zhaojh329/rttys.git
synced 2026-02-27 09:53:21 +08:00
@@ -4,9 +4,13 @@ import 'element-plus/theme-chalk/dark/css-vars.css'
|
||||
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
||||
import zhCN from 'element-plus/dist/locale/zh-cn'
|
||||
import en from 'element-plus/dist/locale/en'
|
||||
import i18n from '../i18n'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { computed } from 'vue'
|
||||
|
||||
export const locale = i18n.locale === 'zh-CN' ? zhCN : en
|
||||
export const locale = computed(() => {
|
||||
const { locale } = useI18n()
|
||||
return locale.value === 'zh-CN' ? zhCN : en
|
||||
})
|
||||
|
||||
export default {
|
||||
install(app) {
|
||||
|
||||
Reference in New Issue
Block a user