From 2474ab30ba21fee66092d23902e3c9d0b30357fa Mon Sep 17 00:00:00 2001
From: AuroraHuang22 <75730405+AuroraHuang22@users.noreply.github.com>
Date: Mon, 20 Jan 2025 04:16:57 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20Add=20Chinese=20language=20suppo?=
=?UTF-8?q?rt=20for=20labels=20(#266)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* 🌐 Add Chinese language support for labels
* 🚸 Enable custom message page for manual delivery
* 🌐 Update labels translations
* 💬 Update translation
---------
Co-authored-by: William Chong <6198816+williamchong@users.noreply.github.com>
---
components/ShippingRates/RateTable.vue | 2 +-
components/StripeConnectCard.vue | 2 +-
pages/mint-nft/index.vue | 27 ++++++++------
pages/nft-book-store/collection/new.vue | 24 ++++++------
.../collection/status/[collectionId].vue | 8 ++--
.../collection/status/[collectionId]/edit.vue | 20 +++++-----
pages/nft-book-store/new.vue | 37 ++++++++++++-------
pages/nft-book-store/status/[classId].vue | 12 +++---
.../status/[classId]/edit/[editionIndex].vue | 20 +++++-----
.../status/[classId]/edit/new.vue | 20 +++++-----
10 files changed, 92 insertions(+), 80 deletions(-)
diff --git a/components/ShippingRates/RateTable.vue b/components/ShippingRates/RateTable.vue
index af5c89260..b310568b3 100644
--- a/components/ShippingRates/RateTable.vue
+++ b/components/ShippingRates/RateTable.vue
@@ -4,7 +4,7 @@
- Shipping Options
+ Shipping Options / 實體書運送選項
diff --git a/components/StripeConnectCard.vue b/components/StripeConnectCard.vue
index 3c4a9d447..04c49e20a 100644
--- a/components/StripeConnectCard.vue
+++ b/components/StripeConnectCard.vue
@@ -10,7 +10,7 @@
>
- Connect to a Stripe Account
+ Connect to a Stripe Account / 連接 Stripe 帳戶
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
diff --git a/pages/nft-book-store/collection/new.vue b/pages/nft-book-store/collection/new.vue
index 2a2ed479c..1558689dd 100644
--- a/pages/nft-book-store/collection/new.vue
+++ b/pages/nft-book-store/collection/new.vue
@@ -61,19 +61,19 @@
Pricing and Availability
-
+
- Memo of this collection
+ Memo of this collection / 自動發書留言
- Allow custom price
+ Allow custom price / 開啟打賞功能
-
+
- Product Name
+ Product Name / 產品名稱(英文)
- Description (Optional)
+ Description (Optional) / 描述(選填)
- 產品名稱
+ 產品名稱(中文)
- Email to receive sales notifications
+ Email to receive sales notifications / 欲收到銷售通知的電郵
- Share sales data to wallets
+ Share sales data to wallets / 分享銷售數據給特定地址
- DRM Options
+ DRM Options / 數位版權管理選項
diff --git a/pages/nft-book-store/collection/status/[collectionId].vue b/pages/nft-book-store/collection/status/[collectionId].vue
index 3f8e18414..69d6aed21 100644
--- a/pages/nft-book-store/collection/status/[collectionId].vue
+++ b/pages/nft-book-store/collection/status/[collectionId].vue
@@ -188,7 +188,7 @@
>
- Email to receive sales notifications
+ Email to receive sales notifications / 欲收到銷售通知的電郵
@@ -236,7 +236,7 @@
- Sales Channel Summary
+ Sales Channel Summary / 銷售渠道摘要
@@ -307,7 +307,7 @@
>
- Share sales data to wallets
+ Share sales data to wallets / 分享銷售數據給特定地址
- Copy Purchase Link
+ Copy Purchase Link / 複製購買連結
diff --git a/pages/nft-book-store/collection/status/[collectionId]/edit.vue b/pages/nft-book-store/collection/status/[collectionId]/edit.vue
index bc5897e6b..0f507a0c0 100644
--- a/pages/nft-book-store/collection/status/[collectionId]/edit.vue
+++ b/pages/nft-book-store/collection/status/[collectionId]/edit.vue
@@ -63,23 +63,23 @@
Pricing and Availability
-
+
-
+
- Memo of this collection
+ Memo of this collection / 自動發書留言
- Allow custom price
+ Allow custom price / 開啟打賞功能
-
+
- Product Name
+ Product Name / 產品名稱(英文)
- Description (Optional)
+ Description (Optional) / 描述(選填)
- 產品名稱
+ 產品名稱(中文)
-
+
@@ -73,7 +73,7 @@
updatePrice(e, 'stock', index)"
/>
- {{ `Memo of this ${priceItemLabel}` }}
+ {{ `Memo of this ${priceItemLabel} / 自動發書留言` }}
- Allow custom price
+ Allow custom price / 開啟打賞功能
-
+
- Product Name
+ Product Name / 產品名稱(英文)
updatePrice(e, 'nameEn', index)"
/>
- Description (Optional)
+ Description (Optional) / 描述(選填)
- 產品名稱
+ 產品名稱(中文)
- Email to receive sales notifications
+ Email to receive sales notifications / 欲收到銷售通知的電郵
@@ -372,7 +374,7 @@
>
- Share sales data to wallets
+ Share sales data to wallets / 分享銷售數據給特定地址
- DRM Options
+ DRM Options / 數位版權管理選項
@@ -908,6 +910,13 @@ async function submitEditedClass () {
function onSubmit () {
return isEditMode.value ? submitEditedClass() : submitNewClass()
}
+
+function handleDeliveryMethodChange (value: string) {
+ if (value === 'manual') {
+ enableCustomMessagePage.value = true
+ }
+}
+