fix: support bilingual Booking Excel headers

This commit is contained in:
Wyndham ARR
2026-08-11 15:29:42 +08:00
parent ca3e8e18fa
commit c947230471
15 changed files with 366 additions and 30 deletions

View File

@@ -446,6 +446,8 @@
"error.company_download": ["该公司的正式表格尚不可下载", "The official workbook for this company is not ready to download", "ไฟล์อย่างเป็นทางการของบริษัทนี้ยังไม่พร้อมดาวน์โหลด"],
"error.booking_unavailable": ["Excel 数据源服务暂未就绪", "The Excel source service is not ready", "บริการแหล่ง Excel ยังไม่พร้อม"],
"error.booking_extract_failed": ["Excel 文件未能完成提取", "The Excel file could not be extracted", "แยกข้อมูลจากไฟล์ Excel ไม่สำเร็จ"],
"error.booking_headers_missing": ["Excel 中未找到同时包含 Tour Code/主团号和酒店明细的工作表", "No worksheet contains both a Tour Code/Group Code header and a hotel-detail header.", "ไม่พบเวิร์กชีตที่มีทั้งหัวข้อ Tour Code/Group Code และรายละเอียดโรงแรม"],
"error.booking_headers_ambiguous": ["Excel 表头重复,无法唯一确定 Tour Code/主团号或酒店明细列", "Duplicate headers prevent ARR from uniquely identifying the Tour Code/Group Code or hotel-detail column.", "มีหัวข้อซ้ำ จึงไม่สามารถระบุคอลัมน์ Tour Code/Group Code หรือรายละเอียดโรงแรมได้อย่างชัดเจน"],
"error.processing_failed": ["文件已安全接收,但程序化处理未能完成", "The file was received safely, but processing did not complete", "รับไฟล์อย่างปลอดภัยแล้ว แต่การประมวลผลไม่เสร็จ"],
"error.invalid_request": ["请求字段无效", "Invalid request fields", "ฟิลด์คำขอไม่ถูกต้อง"],
"error.invalid_period": ["期间无效", "Invalid period", "ช่วงเวลาไม่ถูกต้อง"],
@@ -578,6 +580,8 @@
DOWNLOAD_IDENTITY_MISMATCH: "error.download_integrity",
BOOKING_EXCEL_SERVICE_UNAVAILABLE: "error.booking_unavailable",
BOOKING_EXCEL_PROCESSING_FAILED: "error.booking_extract_failed",
BOOKING_EXCEL_HEADERS_MISSING: "error.booking_headers_missing",
BOOKING_EXCEL_HEADERS_AMBIGUOUS: "error.booking_headers_ambiguous",
BOOKING_EXCEL_REVIEW_OPEN: "error.company_review_open",
BOOKING_EXCEL_SOURCE_REQUIRED: "error.company_source_required",
BOOKING_EXCEL_SOURCE_ALREADY_ACTIVATED: "error.company_source_already_active",