添加国际化支持:在多个组件中引入 vue-i18n,更新文本以实现多语言显示

This commit is contained in:
jxxghp
2025-04-27 18:06:15 +08:00
parent c46d556684
commit 733d74ac36
6 changed files with 102 additions and 27 deletions
+4
View File
@@ -1,5 +1,9 @@
<script lang="ts" setup>
import type { MediaServerPlayItem } from '@/api/types'
import { useI18n } from 'vue-i18n'
// 国际化
const { t } = useI18n()
// 输入参数
const props = defineProps({