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-US, zh-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": "อัปเดตสำเร็จ"