feat: Add language support and descriptions in product localization files

- Added language, languageDescription, and languagePlaceholder fields to product.json for multiple locales (ja-JP, ko-KR, no-NO, pl-PL, pt-BR, ro-RO, ru-RU, th-TH, tr-TR, uk-UA, vi-VN, zh-HK).
- Removed group-related fields from product.json for cleaner structure.
- Updated API calls in user services to include language parameter for subscription retrieval.
- Enhanced type definitions for subscription requests to accommodate language parameter.
This commit is contained in:
web
2025-09-04 01:26:50 -07:00
parent 1ab9b39e8a
commit fd48856019
25 changed files with 120 additions and 679 deletions
+4 -32
View File
@@ -35,8 +35,10 @@
"discountPercent": "折扣比",
"discount_price": "折扣價格",
"duration": "時長(月)",
"groupId": "訂閱組別",
"inventory": "訂閱限制",
"language": "語言",
"languageDescription": "留空以使用默認的無語言限制",
"languagePlaceholder": "訂閱的語言標識符,例如,en-USzh-CN",
"monthlyReset": "每月重置",
"name": "名稱",
"noLimit": "無限制",
@@ -54,39 +56,14 @@
"resetCycle": "重置週期",
"resetOn1st": "每月1日重置",
"selectResetCycle": "請選擇重置週期",
"selectSubscribeGroup": "請選擇訂閱組",
"selectUnitTime": "請選擇單位時間",
"speedLimit": "速度限制",
"traffic": "流量",
"unitPrice": "單價",
"unitTime": "單位時間"
},
"group": {
"actions": "操作",
"cancel": "取消",
"confirm": "確認",
"confirmDelete": "確定刪除嗎?",
"create": "建立",
"createSubscribeGroup": "新建訂閱組",
"createSuccess": "建立成功",
"delete": "刪除",
"deleteSuccess": "刪除成功",
"deleteWarning": "刪除後資料無法恢復,請謹慎操作。",
"description": "描述",
"edit": "編輯",
"editSubscribeGroup": "編輯訂閱組",
"form": {
"cancel": "取消",
"confirm": "確認",
"description": "描述",
"name": "名稱"
},
"name": "名稱",
"title": "訂閱組列表",
"updateSuccess": "更新成功",
"updatedAt": "更新時間"
},
"inventory": "訂閱限制",
"language": "語言",
"name": "名稱",
"quota": "限購/次",
"replacement": "重置價格/次",
@@ -94,11 +71,6 @@
"show": "顯示",
"sold": "訂閱數量",
"subscribe": "訂閱",
"subscribeGroup": "訂閱組",
"tabs": {
"subscribe": "訂閱",
"subscribeGroup": "訂閱組"
},
"traffic": "流量",
"unitPrice": "單價",
"updateSuccess": "更新成功"