feat(i18n): 添加新的翻译文本并更新首页显示

- 在 en-US、ja-JP、zh-CN 和 zh-TW 语言文件中添加了新的翻译文本- 更新了首页拍卖状态的显示逻辑,使用新加的翻译文本- 优化了代码结构,提高了可维护性
This commit is contained in:
xingyy 2025-02-27 16:41:17 +08:00
parent 05b7b42e00
commit 772b058270
5 changed files with 23 additions and 12 deletions

View File

@ -3,7 +3,7 @@ import liveRoom from '@/pages/liveRoom/index.client.vue';
import {goodStore} from "@/stores/goods/index.js";
import ItemList from './components/ItemList/index.vue'
import Cescribe from './components/Cescribe/index.vue'
import {message} from '@/components/x-message/useMessage.js'
import {liveStore} from "~/stores/live/index.js";
const {getAuctionDetail, auctionDetail,getArtworkList} = goodStore();
const {fullLive} = liveStore()
@ -31,7 +31,7 @@ await getAuctionDetail()
</div>
<div v-else class="absolute h-188px w-screen pt-36px flex flex-col text-#fff top-0 left-0 items-center bg-[url('@/static/images/z6022@2x.png')]">
<div class="text-18px mb-5px">{{ auctionDetail.title }}</div>
<div class="text-12px mb-54px">本场拍卖会{{auctionDetail.isLiving===2?'未开始':'已结束'}}</div>
<div class="text-12px mb-54px">{{$t('home.text3')}}{{auctionDetail.isLiving===2?$t('home.text4'):$t('home.text5')}}</div>
<div><span>-</span> <span class="text-12px mx-5px">{{auctionDetail.totalNum}}{{ $t('common.items') }}{{ $t('common.auction') }}</span> <span>-</span></div>
<div class="text-12px">{{auctionDetail.startDate}} {{$t('home.text2')}}</div>
</div>

View File

@ -185,7 +185,10 @@
"my_lots": "My Lots",
"go_home": "Go to Home",
"text1": "Click to enter live room",
"text2": "Beijing Time"
"text2": "Beijing Time",
"text3": "This auction",
"text4": "Not started",
"text5": "Ended"
},
"live_room": {
"error_mess": "Failed to get live content, retry?",

View File

@ -185,7 +185,10 @@
"my_lots": "マイ商品",
"go_home": "ホームへ",
"text1": "クリックしてライブルームに入る",
"text2": "北京時間"
"text2": "北京時間",
"text3": "このオークション",
"text4": "開始していません",
"text5": "終了しました"
},
"live_room": {
"error_mess": "ライブコンテンツの取得に失敗しました。再試行しますか?",
@ -659,4 +662,4 @@
"httpNotInitialized": "HTTPクライアントが初期化されていません。先にsetupHttpを呼び出してください"
}
}
}
}

View File

@ -170,7 +170,7 @@
"text8": "拍卖品详情"
},
"art_detail_page": {
"button": "去支付",
"button": "去支付",
"prompt_title": "恭喜您",
"prompt_desc": "竞拍成功"
},
@ -185,7 +185,10 @@
"my_lots": "我的拍品",
"go_home": "去首页",
"text1": "点击进入直播间",
"text2": "北京时间"
"text2": "北京时间",
"text3": "本场拍卖会",
"text4": "未开始",
"text5": "已结束"
},
"live_room": {
"error_mess": "直播内容获取失败,是否重新获取",
@ -196,7 +199,7 @@
"confirm": "确认出价",
"button": "点击'开启出价',即刻参与竞拍",
"start": "开始拍卖",
"head":"领先",
"head": "领先",
"out": "出局",
"success": "成交",
"next_lot": "即将开始下一个拍品",
@ -225,7 +228,7 @@
},
"personal": {
"title": "请填写个人相关信息",
"text":"文本",
"text": "文本",
"next": "下一步"
},
"payment": {
@ -661,4 +664,4 @@
"httpNotInitialized": "HTTP客户端未初始化请先调用setupHttp"
}
}
}
}

View File

@ -236,7 +236,10 @@
"my_lots": "我的拍品",
"go_home": "去首頁",
"text1": "點擊進入直播間",
"text2": "北京時間"
"text2": "北京時間",
"text3": "本場拍賣會",
"text4": "未開始",
"text5": "已結束"
},
"live_room": {
"error_mess": "直播內容獲取失敗,是否重新獲取",
@ -660,4 +663,3 @@
}
}
}