Skip to content

Commit

Permalink
fix(build): fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Asuka committed Nov 12, 2024
1 parent 50fb2da commit a64659b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
12 changes: 6 additions & 6 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"test:dev": "vitest"
},
"peerDependencies": {
"@element-plus/icons-vue": "^2.1.0",
"element-plus": "^2.4.1",
"pinia": "^2.1.7",
"vue": "^3.3.4",
"vue-i18n": "9",
"vue-router": "4"
"@element-plus/icons-vue": "^2.3.1",
"element-plus": "^2.8.7",
"pinia": "^2.2.6",
"vue": "^3.5.12",
"vue-i18n": "^10.0.4",
"vue-router": "^4.4.5"
},
"devDependencies": {
"@mqttx/core": "workspace:*",
Expand Down
10 changes: 5 additions & 5 deletions packages/ui/src/i18n/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { Lang } from 'mqttx'
import ElementPlusEN from 'element-plus/dist/locale/en.mjs'
import ElementPlusHU from 'element-plus/dist/locale/hu.mjs'
import ElementPlusJA from 'element-plus/dist/locale/ja.mjs'
import ElementPlusTR from 'element-plus/dist/locale/tr.mjs'
import ElementPlusZH from 'element-plus/dist/locale/zh-cn.mjs'
import ElementPlusEN from 'element-plus/es/locale/lang/en'
import ElementPlusHU from 'element-plus/es/locale/lang/hu'
import ElementPlusJA from 'element-plus/es/locale/lang/ja'
import ElementPlusTR from 'element-plus/es/locale/lang/tr'
import ElementPlusZH from 'element-plus/es/locale/lang/zh-cn'
import { createI18n } from 'vue-i18n'

export const ElementI18nMap: Record<Lang, any> = {
Expand Down
1 change: 0 additions & 1 deletion packages/ui/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
declare module 'element-plus/dist/locale/*.mjs'

0 comments on commit a64659b

Please sign in to comment.