From 49398aac489b0307b86ed47f50ef45fd5f237d32 Mon Sep 17 00:00:00 2001 From: "X1627315083@163.com" <1627315083@qq.com> Date: Mon, 4 May 2026 14:06:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AD=E8=A8=80=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/cn.ts | 22 +++++++++++++++++++ src/lang/en.ts | 22 +++++++++++++++++++ src/router/index.ts | 14 ++++++------ .../MyListings/createSelect/historyList.vue | 2 +- .../MyListings/createSelect/index.vue | 6 ++--- .../MyListings/createSelectItem/index.vue | 14 +++++++----- .../MyListings/main/content.vue | 16 ++++++++------ .../MyListings/main/contentItem.vue | 6 ++--- .../MyListings/main/deleteDrafts.vue | 10 ++++----- .../SellerDashboard/MyListings/main/index.vue | 2 +- src/views/SellerDashboard/seller-header.vue | 4 ++-- 11 files changed, 83 insertions(+), 35 deletions(-) diff --git a/src/lang/cn.ts b/src/lang/cn.ts index e063aa3b..cceb1845 100644 --- a/src/lang/cn.ts +++ b/src/lang/cn.ts @@ -1831,5 +1831,27 @@ export default { stopSellingTitle: "停用卖家账户", stopSellingTip: "永久停用您的卖家账户。所有商品列表和发票记录将被删除。您以后可以重新注册为卖家,但您的先前销售数据无法恢复。", deactivate: "停用卖家账户", + newListing: "新建商品", + draftMessage: '商品已保存为草稿。您可以继续编辑,或稍后在“我的商品”中发布。', + publishMessage: '商品现已上架。买家可以浏览并购买您的设计。', + ActiveListings: '已发布商品', + Drafts: '草稿', + Cancel: '取消', + Delete: '删除', + DeleteConfirm: '确认删除吗?', + DeleteDesc: '删除后,商品将无法恢复。', + Edit: '编辑', + Draft: '草稿', + Publish: '发布', + sketchesSelected: '已选择的线稿图', + Next: '下一步', + All: '全部', + SeriesDesign: '系列设计', + SingleDesign: '单设计商品', + sketchs: '线稿图', + MyListings: '我的商品', + MyListingsInfo: '已发布商品和未发布库存', + SelectCollection: '选择商品', + SelectSketch: '选择线稿图', } } diff --git a/src/lang/en.ts b/src/lang/en.ts index 5949a8f8..c1323507 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -1885,5 +1885,27 @@ export default { stopSellingTitle: "Deactivate seller account", stopSellingTip: "Permanently deactivate your seller account. All listings and invoice records will be deleted. You may re-register as a seller in the future, but your previous sales data cannot be recovered.", deactivate: "Deactivate", + newListing: "New Listing", + draftMessage: 'Product moved to drafts and stats reset.', + publishMessage: 'Item is now live on the Marketplace.', + ActiveListings: 'Active Listings', + Drafts: 'Drafts', + Cancel: 'Cancel', + Delete: 'Delete', + DeleteConfirm: 'Delete this listing?', + DeleteDesc: 'Your listing and its details will be permanently removed.', + Edit: 'Edit', + Draft: 'Draft', + Publish: 'Publish', + sketchesSelected: 'Sketches selected', + Next: 'Next', + All: 'All', + SeriesDesign: 'Series Design', + SingleDesign: 'Single Design', + sketchs: 'sketches', + MyListings: 'My Listings', + MyListingsInfo: 'Active listings and unpublished inventory', + SelectCollection: 'Select Collection', + SelectSketch: 'Select Sketch', } } diff --git a/src/router/index.ts b/src/router/index.ts index 09c406f1..71cdb60d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -13,15 +13,15 @@ type SellerBreadcrumbItem = { type SellerBreadcrumbList = SellerRouteMetaValue const myListingsBreadcrumb: SellerBreadcrumbItem = { - title: "My Listings", + title: "Seller.MyListings", to: { name: "myListingsIndex" } } const selectCollectionBreadcrumb: SellerBreadcrumbItem = { - title: "Select Collection", + title: "Seller.SelectCollection", to: { name: "myListingsSelect" } } const selectSketchBreadcrumb: SellerBreadcrumbItem = { - title: "Select Sketch", + title: "Seller.SelectSketch", to: (route) => { const collectionId = route.params.collectionId || @@ -257,8 +257,8 @@ const routes: Array = [ name: "myListingsIndex", meta: { enter: "all", - sellerHeaderTitle: "My Listings", - sellerHeaderTip: "Active listings and unpublished inventory.", + sellerHeaderTitle: "Seller.MyListings", + sellerHeaderTip: "Seller.MyListingsInfo", sellerBreadcrumbs: [myListingsBreadcrumb] }, component: () => @@ -269,7 +269,7 @@ const routes: Array = [ name: "myListingsSelect", meta: { enter: "all", - sellerHeaderTitle: "Select Collection", + sellerHeaderTitle: "Seller.SelectCollection", sellerBreadcrumbs: [ myListingsBreadcrumb, selectCollectionBreadcrumb @@ -284,7 +284,7 @@ const routes: Array = [ meta: { enter: "all", cache: true, - sellerHeaderTitle: "Select Collection", + sellerHeaderTitle: "Seller.SelectCollection", sellerBreadcrumbs: [ myListingsBreadcrumb, selectCollectionBreadcrumb, diff --git a/src/views/SellerDashboard/MyListings/createSelect/historyList.vue b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue index 2948afcd..bfc88ee9 100644 --- a/src/views/SellerDashboard/MyListings/createSelect/historyList.vue +++ b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue @@ -68,7 +68,7 @@ defineExpose({getCreateList})
{{item.name}}
-
{{item.userLikeGroupVO?.groupDetails?.length || 0}} sketchs
+
{{item.userLikeGroupVO?.groupDetails?.length || 0}} {{ $t('Seller.sketchs') }}
{{setPubDate(item.updateTime,t)}}
diff --git a/src/views/SellerDashboard/MyListings/createSelect/index.vue b/src/views/SellerDashboard/MyListings/createSelect/index.vue index 88e84c51..a91e3e4a 100644 --- a/src/views/SellerDashboard/MyListings/createSelect/index.vue +++ b/src/views/SellerDashboard/MyListings/createSelect/index.vue @@ -44,9 +44,9 @@ defineExpose({})
-
All
-
Series Design
-
Single Design
+
{{$t('Seller.All')}}
+
{{$t('Seller.SeriesDesign')}}
+
{{$t('Seller.SingleDesign')}}
diff --git a/src/views/SellerDashboard/MyListings/createSelectItem/index.vue b/src/views/SellerDashboard/MyListings/createSelectItem/index.vue index 98cfcc83..a25fa581 100644 --- a/src/views/SellerDashboard/MyListings/createSelectItem/index.vue +++ b/src/views/SellerDashboard/MyListings/createSelectItem/index.vue @@ -6,11 +6,13 @@ import selectMenu from '@/component/modules/selectMenu.vue' import { Https } from '@/tool/https' import { useRoute } from 'vue-router' import { useStore } from 'vuex' +import { useI18n } from 'vue-i18n' // 定义组件名称 defineOptions({ name: 'myListingsSelectItem' }) +const { t } = useI18n() //const props = defineProps({ //}) //const emit = defineEmits([ @@ -22,15 +24,15 @@ const route = useRoute() const domSize = ref('Small') const domSizeList = ref([ { - label:'Small', + label:t('Header.Small'), value:'Small', }, { - label:'Medium', + label:t('Header.Medium'), value:'Medium', }, { - label:'Large', + label:t('Header.Large'), value:'Large', }, ]) @@ -158,10 +160,10 @@ const {} = toRefs(data);