locale ru

This commit is contained in:
2023-07-11 17:21:34 +08:00
parent 4789db178f
commit 2bc08f4a39
173 changed files with 5065 additions and 1431 deletions

View File

@ -24,7 +24,11 @@
><span
class="menu-title"
:title="hasTitle(onlyOneChild.meta.title)"
>{{ onlyOneChild.meta.title }}</span
>{{
onlyOneChild.meta.i18nStr
? t(onlyOneChild.meta.i18nStr)
: onlyOneChild.meta.title
}}</span
></template
>
</el-menu-item>
@ -40,7 +44,7 @@
<template v-if="item.meta" #title>
<svg-icon :icon-class="item.meta && item.meta.icon" />
<span class="menu-title" :title="hasTitle(item.meta.title)">{{
item.meta.title
item.meta.i18nStr ? t(item.meta.i18nStr) : item.meta.title
}}</span>
</template>
@ -60,7 +64,9 @@
import { isExternal } from "@/utils/validate";
import AppLink from "./Link";
import { getNormalPath } from "@/utils/ruoyi";
import { useI18n } from "vue-i18n";
const { t } = useI18n();
const props = defineProps({
// route object
item: {