feat: about i18n
This commit is contained in:
parent
2972353fcf
commit
a9cc34103a
@ -2,7 +2,7 @@
|
|||||||
<div class="app-header" :class="!isDefaultTheme ? 'custom-header' : ''">
|
<div class="app-header" :class="!isDefaultTheme ? 'custom-header' : ''">
|
||||||
<el-alert
|
<el-alert
|
||||||
v-if="user.isExpire()"
|
v-if="user.isExpire()"
|
||||||
title="未上传 License 或 License 已过期。"
|
:title="$t('layout.isExpire')"
|
||||||
type="warning"
|
type="warning"
|
||||||
class="border-b"
|
class="border-b"
|
||||||
show-icon
|
show-icon
|
||||||
|
|||||||
@ -102,7 +102,7 @@
|
|||||||
<template v-else-if="isDataset">
|
<template v-else-if="isDataset">
|
||||||
<div class="w-full text-left cursor" @click="openCreateDialog">
|
<div class="w-full text-left cursor" @click="openCreateDialog">
|
||||||
<el-button link>
|
<el-button link>
|
||||||
<el-icon class="mr-4"><Plus /></el-icon> 创建知识库
|
<el-icon class="mr-4"><Plus /></el-icon> {{ $t('views.dataset.createDataset') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="$t('layout.avatar.apiKey')"
|
:title="$t('layout.apiKey')"
|
||||||
v-model="dialogVisible"
|
v-model="dialogVisible"
|
||||||
width="800"
|
width="800"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
@ -8,7 +8,7 @@
|
|||||||
>
|
>
|
||||||
<el-card shadow="never" class="layout-bg mb-16">
|
<el-card shadow="never" class="layout-bg mb-16">
|
||||||
<el-text type="info" class="color-secondary">{{
|
<el-text type="info" class="color-secondary">{{
|
||||||
$t('layout.avatar.apiServiceAddress')
|
$t('layout.apiServiceAddress')
|
||||||
}}</el-text>
|
}}</el-text>
|
||||||
<p style="margin-top: 10px">
|
<p style="margin-top: 10px">
|
||||||
<span class="vertical-middle lighter break-all">
|
<span class="vertical-middle lighter break-all">
|
||||||
|
|||||||
@ -11,10 +11,10 @@
|
|||||||
</template>
|
</template>
|
||||||
<div class="about-ui" v-loading="loading">
|
<div class="about-ui" v-loading="loading">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<span class="label">授权给</span><span>{{ licenseInfo?.corporation || '-' }}</span>
|
<span class="label">{{ $t('layout.about.authorize') }}</span><span>{{ licenseInfo?.corporation || '-' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<span class="label">到期时间</span>
|
<span class="label">{{ $t('layout.about.expiredTime') }}</span>
|
||||||
<span
|
<span
|
||||||
>{{ licenseInfo?.expired || '-' }}
|
>{{ licenseInfo?.expired || '-' }}
|
||||||
<span class="danger" v-if="licenseInfo?.expired && fromNowDate(licenseInfo?.expired)"
|
<span class="danger" v-if="licenseInfo?.expired && fromNowDate(licenseInfo?.expired)"
|
||||||
@ -23,16 +23,16 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<span class="label">版本</span><span>{{ user.showXpack() ? '专业版' : '社区版' }}</span>
|
<span class="label">{{ $t('layout.about.edition') }}</span><span>{{ user.showXpack() ? '专业版' : '社区版' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<span class="label">版本号</span><span>{{ user.version }}</span>
|
<span class="label">{{ $t('layout.about.version') }}</span><span>{{ user.version }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<span class="label">序列号</span><span>{{ licenseInfo?.serialNo || '-' }}</span>
|
<span class="label">{{ $t('layout.about.serialNo') }}</span><span>{{ licenseInfo?.serialNo || '-' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<span class="label">备注</span><span>{{ licenseInfo?.remark || '-' }}</span>
|
<span class="label">{{ $t('layout.about.remark') }}</span><span>{{ licenseInfo?.remark || '-' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-16 flex align-center" v-if="user.showXpack()">
|
<div class="mt-16 flex align-center" v-if="user.showXpack()">
|
||||||
<el-upload
|
<el-upload
|
||||||
@ -43,7 +43,7 @@
|
|||||||
:on-change="onChange"
|
:on-change="onChange"
|
||||||
v-hasPermission="new Role('ADMIN')"
|
v-hasPermission="new Role('ADMIN')"
|
||||||
>
|
>
|
||||||
<el-button class="border-primary mr-16">更新 License</el-button>
|
<el-button class="border-primary mr-16">{{ $t('layout.about.update') }} License</el-button>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<div v-hasPermission="new ComplexPermission([], ['x-pack'], 'OR')">
|
<div v-hasPermission="new ComplexPermission([], ['x-pack'], 'OR')">
|
||||||
<el-dropdown-item class="border-t p-8" @click="openAPIKeyDialog">
|
<el-dropdown-item class="border-t p-8" @click="openAPIKeyDialog">
|
||||||
{{ $t('layout.avatar.apiKey') }}
|
{{ $t('layout.apiKey') }}
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</div>
|
</div>
|
||||||
<el-dropdown-item class="border-t" style="padding: 0" @click.stop>
|
<el-dropdown-item class="border-t" style="padding: 0" @click.stop>
|
||||||
@ -60,11 +60,11 @@
|
|||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item class="border-t" @click="openAbout">
|
<el-dropdown-item class="border-t" @click="openAbout">
|
||||||
{{ $t('layout.avatar.about') }}
|
{{ $t('layout.about.label') }}
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
|
|
||||||
<el-dropdown-item class="border-t" @click="logout">
|
<el-dropdown-item class="border-t" @click="logout">
|
||||||
{{ $t('layout.avatar.logout') }}
|
{{ $t('layout.logout') }}
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -2,12 +2,19 @@ export default {
|
|||||||
github: 'Project Address',
|
github: 'Project Address',
|
||||||
wiki: 'User Manual',
|
wiki: 'User Manual',
|
||||||
forum: 'Forum For Help',
|
forum: 'Forum For Help',
|
||||||
avatar: {
|
logout: 'Logout',
|
||||||
about: 'About',
|
version: 'Version',
|
||||||
logout: 'Logout',
|
apiKey: 'API Key',
|
||||||
version: 'Version',
|
apiServiceAddress: 'API Service Address',
|
||||||
apiKey: 'API Key',
|
language: 'Language',
|
||||||
apiServiceAddress: 'API Service Address',
|
isExpire: 'License not uploaded or expired',
|
||||||
},
|
about: {
|
||||||
language: 'Language'
|
title: 'About',
|
||||||
|
expiredTime: 'Expiration Date',
|
||||||
|
edition: 'Edition',
|
||||||
|
serialNo: 'Serial No.',
|
||||||
|
remark: 'Remarks',
|
||||||
|
update: 'Update',
|
||||||
|
authorize: 'Authorized'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,12 +2,19 @@ export default {
|
|||||||
github: '项目地址',
|
github: '项目地址',
|
||||||
wiki: '用户手册',
|
wiki: '用户手册',
|
||||||
forum: '论坛求助',
|
forum: '论坛求助',
|
||||||
avatar: {
|
logout: '退出',
|
||||||
about: '关于',
|
version: '版本号',
|
||||||
logout: '退出',
|
apiKey: 'API Key 管理',
|
||||||
version: '版本号',
|
apiServiceAddress: 'API 服务地址',
|
||||||
apiKey: 'API Key 管理',
|
language: '语言',
|
||||||
apiServiceAddress: 'API 服务地址',
|
isExpire: '未上传 License 或 License 已过期。',
|
||||||
},
|
about: {
|
||||||
language: '语言'
|
title: '关于',
|
||||||
|
expiredTime: '到期时间',
|
||||||
|
edition: '版本',
|
||||||
|
serialNo: '序列号',
|
||||||
|
remark: '备注',
|
||||||
|
update: '更新',
|
||||||
|
authorize:'授权给'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,12 +2,19 @@ export default {
|
|||||||
github: '項目地址',
|
github: '項目地址',
|
||||||
wiki: '使用者手冊',
|
wiki: '使用者手冊',
|
||||||
forum: '論壇求助',
|
forum: '論壇求助',
|
||||||
avatar: {
|
logout: '退出',
|
||||||
about: '關於',
|
version: '版本號',
|
||||||
logout: '退出',
|
apiKey: 'API Key 管理',
|
||||||
version: '版本號',
|
apiServiceAddress: 'API 服務地址',
|
||||||
apiKey: 'API Key 管理',
|
language: '語言',
|
||||||
apiServiceAddress: 'API 服務地址',
|
isExpire: '未上傳 License 或 License 已過期。',
|
||||||
},
|
about: {
|
||||||
language: '語言'
|
title: '關於',
|
||||||
|
expiredTime: '到期時間',
|
||||||
|
edition: '版本',
|
||||||
|
serialNo: '序列號',
|
||||||
|
remark: '備註',
|
||||||
|
update: '更新',
|
||||||
|
authorize: '授權給'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user