From 772b058270380f09a8d81427c3a0275d3a561946 Mon Sep 17 00:00:00 2001
From: xingyy <64720302+Concur-max@users.noreply.github.com>
Date: Thu, 27 Feb 2025 16:41:17 +0800
Subject: [PATCH] =?UTF-8?q?feat(i18n):=20=E6=B7=BB=E5=8A=A0=E6=96=B0?=
=?UTF-8?q?=E7=9A=84=E7=BF=BB=E8=AF=91=E6=96=87=E6=9C=AC=E5=B9=B6=E6=9B=B4?=
=?UTF-8?q?=E6=96=B0=E9=A6=96=E9=A1=B5=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在 en-US、ja-JP、zh-CN 和 zh-TW 语言文件中添加了新的翻译文本- 更新了首页拍卖状态的显示逻辑,使用新加的翻译文本- 优化了代码结构,提高了可维护性
---
app/pages/home/index.vue | 4 ++--
i18n/locales/en-US.json | 5 ++++-
i18n/locales/ja-JP.json | 7 +++++--
i18n/locales/zh-CN.json | 13 ++++++++-----
i18n/locales/zh-TW.json | 6 ++++--
5 files changed, 23 insertions(+), 12 deletions(-)
diff --git a/app/pages/home/index.vue b/app/pages/home/index.vue
index 56e3312..f6f2794 100644
--- a/app/pages/home/index.vue
+++ b/app/pages/home/index.vue
@@ -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()
{{ auctionDetail.title }}
-
本场拍卖会{{auctionDetail.isLiving===2?'未开始':'已结束'}}
+
{{$t('home.text3')}}{{auctionDetail.isLiving===2?$t('home.text4'):$t('home.text5')}}
- {{auctionDetail.totalNum}}{{ $t('common.items') }}{{ $t('common.auction') }} -
{{auctionDetail.startDate}} {{$t('home.text2')}}
diff --git a/i18n/locales/en-US.json b/i18n/locales/en-US.json
index 7785955..bdd6126 100644
--- a/i18n/locales/en-US.json
+++ b/i18n/locales/en-US.json
@@ -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?",
diff --git a/i18n/locales/ja-JP.json b/i18n/locales/ja-JP.json
index 3bb4bc6..34e2559 100644
--- a/i18n/locales/ja-JP.json
+++ b/i18n/locales/ja-JP.json
@@ -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を呼び出してください"
}
}
-}
\ No newline at end of file
+}
diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json
index 4c843d6..ad7efb5 100644
--- a/i18n/locales/zh-CN.json
+++ b/i18n/locales/zh-CN.json
@@ -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"
}
}
-}
\ No newline at end of file
+}
diff --git a/i18n/locales/zh-TW.json b/i18n/locales/zh-TW.json
index 440494c..aca1510 100644
--- a/i18n/locales/zh-TW.json
+++ b/i18n/locales/zh-TW.json
@@ -236,7 +236,10 @@
"my_lots": "我的拍品",
"go_home": "去首頁",
"text1": "點擊進入直播間",
- "text2": "北京時間"
+ "text2": "北京時間",
+ "text3": "本場拍賣會",
+ "text4": "未開始",
+ "text5": "已結束"
},
"live_room": {
"error_mess": "直播內容獲取失敗,是否重新獲取",
@@ -660,4 +663,3 @@
}
}
}
-