配置语言

This commit is contained in:
lzp
2026-03-03 11:10:43 +08:00
parent 84cc6a5607
commit 0e5b3049b6
11 changed files with 260 additions and 105 deletions

View File

@@ -35,27 +35,29 @@
<script setup lang="ts">
import { computed, ref, reactive } from 'vue'
import { useRouter } from 'vue-router'
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
const router = useRouter()
const emit = defineEmits(['next'])
const data = reactive({
baseList: [
{ label: 'United States', value: 'United States' },
{ label: 'Singapore', value: 'Singapore' },
{ label: 'Australia', value: 'Australia' },
{ label: 'South Korea', value: 'South Korea' },
{ label: 'China', value: 'China' },
{ label: 'Italy', value: 'Italy' },
{ label: 'France', value: 'France' },
{ label: 'Japan', value: 'Japan' },
{ label: 'Canada', value: 'Canada' },
{ label: 'Germany', value: 'Germany' }
{ label: t('Country.unitedStates'), value: 'United States' },
{ label: t('Country.singapore'), value: 'Singapore' },
{ label: t('Country.australia'), value: 'Australia' },
{ label: t('Country.southKorea'), value: 'South Korea' },
{ label: t('Country.china'), value: 'China' },
{ label: t('Country.italy'), value: 'Italy' },
{ label: t('Country.france'), value: 'France' },
{ label: t('Country.japan'), value: 'Japan' },
{ label: t('Country.canada'), value: 'Canada' },
{ label: t('Country.germany'), value: 'Germany' }
],
roleList: [
{ label: 'Designer', value: 'Designer' },
{ value: 'Student', label: 'Student' },
{ value: 'Teacher', label: 'Teacher' },
{ value: 'Parent', label: 'Parent' },
{ value: 'Other', label: 'Other' }
{ label: t('Role.designer'), value: 'Designer' },
{ label: t('Role.student'), value: 'Student' },
{ label: t('Role.teacher'), value: 'Teacher' },
{ label: t('Role.parent'), value: 'Parent' },
{ label: t('Role.other'), value: 'Other' }
],
base: 'China',
role: 'Student'