faet(projects): global-search i18n

This commit is contained in:
Ben1111 2024-08-06 14:38:38 +08:00
parent 10be0a3760
commit 00b46d5021
No known key found for this signature in database
GPG Key ID: CE7CBC6B0B53C40F
4 changed files with 10 additions and 4 deletions

View File

@ -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"

View File

@ -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',

View File

@ -47,7 +47,9 @@ const local: App.I18n.Schema = {
yesOrNo: {
yes: '是',
no: '否'
}
},
search_history: '搜索历史',
collection_record: '收藏记录'
},
request: {
logout: '请求失败后登出用户',

View File

@ -336,6 +336,8 @@ declare namespace App {
yes: string;
no: string;
};
search_history: string;
collection_record: string;
};
request: {
logout: string;