mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-29 22:56:41 +08:00
faet(projects): global-search i18n
This commit is contained in:
parent
10be0a3760
commit
00b46d5021
@ -63,7 +63,7 @@ function handleCollect(item: App.Global.SearchHistoryOrCollect) {
|
||||
<NScrollbar>
|
||||
<div class="pb-12px">
|
||||
<template v-if="historyList.length">
|
||||
<div :style="titleStyle">搜索历史</div>
|
||||
<div :style="titleStyle">{{ $t('common.search_history') }}</div>
|
||||
<div v-for="item in historyList" :key="item.routePath">
|
||||
<div
|
||||
class="mt-8px h-56px flex-y-center cursor-pointer justify-between rounded-4px bg-#e5e7eb px-14px dark:bg-dark"
|
||||
@ -88,7 +88,7 @@ function handleCollect(item: App.Global.SearchHistoryOrCollect) {
|
||||
</div>
|
||||
</template>
|
||||
<template v-if="collectList.length">
|
||||
<div :style="titleStyle">收藏记录</div>
|
||||
<div :style="titleStyle">{{ $t('common.collection_record') }}</div>
|
||||
<div v-for="item in collectList" :key="item.routePath">
|
||||
<div
|
||||
class="mt-8px h-56px flex-y-center cursor-pointer justify-between rounded-4px bg-#e5e7eb px-14px dark:bg-dark"
|
||||
|
@ -47,7 +47,9 @@ const local: App.I18n.Schema = {
|
||||
yesOrNo: {
|
||||
yes: 'Yes',
|
||||
no: 'No'
|
||||
}
|
||||
},
|
||||
search_history: 'Search History',
|
||||
collection_record: 'Collection Record'
|
||||
},
|
||||
request: {
|
||||
logout: 'Logout user after request failed',
|
||||
|
@ -47,7 +47,9 @@ const local: App.I18n.Schema = {
|
||||
yesOrNo: {
|
||||
yes: '是',
|
||||
no: '否'
|
||||
}
|
||||
},
|
||||
search_history: '搜索历史',
|
||||
collection_record: '收藏记录'
|
||||
},
|
||||
request: {
|
||||
logout: '请求失败后登出用户',
|
||||
|
2
src/typings/app.d.ts
vendored
2
src/typings/app.d.ts
vendored
@ -336,6 +336,8 @@ declare namespace App {
|
||||
yes: string;
|
||||
no: string;
|
||||
};
|
||||
search_history: string;
|
||||
collection_record: string;
|
||||
};
|
||||
request: {
|
||||
logout: string;
|
||||
|
Loading…
Reference in New Issue
Block a user