chore: update locale

This commit is contained in:
vben
2024-06-29 15:41:10 +08:00
parent 36a4fcfad2
commit c58aa26dbf
35 changed files with 531 additions and 523 deletions

View File

@@ -13,7 +13,7 @@ const logoVisible = defineModel<boolean>('logoVisible');
<template>
<SwitchItem v-model="tabsVisible">
{{ $t('preferences.tabs-visible') }}
{{ $t('preferences.tabbar.enable') }}
</SwitchItem>
<SwitchItem v-model="logoVisible">
{{ $t('preferences.logo-visible') }}

View File

@@ -28,18 +28,18 @@ const stylesItems: SelectListItem[] = [
:disabled="disabled"
:items="stylesItems"
>
{{ $t('preferences.navigation-style') }}
{{ $t('preferences.navigation-menu.style') }}
</ToggleItem>
<SwitchItem
v-model="navigationSplit"
:disabled="disabledNavigationSplit || disabled"
>
{{ $t('preferences.navigation-split') }}
{{ $t('preferences.navigation-menu.split') }}
<template #tip>
{{ $t('preferences.navigation-split-tip') }}
{{ $t('preferences.navigation-menu.split-tip') }}
</template>
</SwitchItem>
<SwitchItem v-model="navigationAccordion" :disabled="disabled">
{{ $t('preferences.navigation-accordion') }}
{{ $t('preferences.navigation-menu.accordion') }}
</SwitchItem>
</template>

View File

@@ -15,10 +15,10 @@ const tabbarShowIcon = defineModel<boolean>('tabbarShowIcon');
<template>
<SwitchItem v-model="tabbarEnable" :disabled="disabled">
{{ $t('preferences.tabs-visible') }}
{{ $t('preferences.tabbar.enable') }}
</SwitchItem>
<SwitchItem v-model="tabbarShowIcon" :disabled="!tabbarEnable">
{{ $t('preferences.tabs-icon') }}
{{ $t('preferences.tabbar.icon') }}
</SwitchItem>
<!-- <SwitchItem v-model="sideCollapseShowTitle" :disabled="!tabsVisible">
{{ $t('preferences.collapse-show-title') }}

View File

@@ -28,50 +28,50 @@ const inputValue = computed(() => {
function typeView(name: BuiltinThemeType) {
switch (name) {
case 'default': {
return $t('preferences.theme.default');
return $t('preferences.theme.builtin.default');
}
case 'violet': {
return $t('preferences.theme.violet');
return $t('preferences.theme.builtin.violet');
}
case 'pink': {
return $t('preferences.theme.pink');
return $t('preferences.theme.builtin.pink');
}
case 'rose': {
return $t('preferences.theme.rose');
return $t('preferences.theme.builtin.rose');
}
case 'sky-blue': {
return $t('preferences.theme.sky-blue');
return $t('preferences.theme.builtin.sky-blue');
}
case 'deep-blue': {
return $t('preferences.theme.deep-blue');
return $t('preferences.theme.builtin.deep-blue');
}
case 'green': {
return $t('preferences.theme.green');
return $t('preferences.theme.builtin.green');
}
case 'deep-green': {
return $t('preferences.theme.deep-green');
return $t('preferences.theme.builtin.deep-green');
}
case 'orange': {
return $t('preferences.theme.orange');
return $t('preferences.theme.builtin.orange');
}
case 'yellow': {
return $t('preferences.theme.yellow');
return $t('preferences.theme.builtin.yellow');
}
case 'zinc': {
return $t('preferences.theme.zinc');
return $t('preferences.theme.builtin.zinc');
}
case 'neutral': {
return $t('preferences.theme.neutral');
return $t('preferences.theme.builtin.neutral');
}
case 'slate': {
return $t('preferences.theme.slate');
return $t('preferences.theme.builtin.slate');
}
case 'gray': {
return $t('preferences.theme.gray');
return $t('preferences.theme.builtin.gray');
}
case 'custom': {
return $t('preferences.theme.custom');
return $t('preferences.theme.builtin.custom');
}
}
}

View File

@@ -18,9 +18,9 @@ const appColorGrayMode = defineModel<boolean>('appColorGrayMode', {
<template>
<SwitchItem v-model="appColorWeakMode">
{{ $t('preferences.weak-mode') }}
{{ $t('preferences.theme.weak-mode') }}
</SwitchItem>
<SwitchItem v-model="appColorGrayMode">
{{ $t('preferences.gray-mode') }}
{{ $t('preferences.theme.gray-mode') }}
</SwitchItem>
</template>

View File

@@ -43,10 +43,10 @@ function activeClass(theme: string): string[] {
function nameView(name: string) {
switch (name) {
case 'light': {
return $t('preferences.light');
return $t('preferences.theme.light');
}
case 'dark': {
return $t('preferences.dark');
return $t('preferences.theme.dark');
}
case 'auto': {
return $t('preferences.follow-system');
@@ -79,7 +79,7 @@ function nameView(name: string) {
:disabled="modelValue !== 'light'"
class="mt-6"
>
{{ $t('preferences.dark-menu') }}
{{ $t('preferences.theme.dark-menu') }}
</SwitchItem>
</div>
</template>