mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
545295d430
AirTrail flights always imported as separate single-leg reservations, so a layover could not be expressed and the connection country ended up counted as visited in Atlas (#1535). The import picker now detects connection chains among the listed flights — each leg departing from the airport the previous one landed at, onward within 24 hours, and never back to the origin (an out-and-back is a return, not a connection) — and offers to import each chain as one flight with layover stops, on by default. The joined booking keeps per-leg airline, flight number, times and seat in metadata.legs, files every leg on its own trip day, and mirrors the first/last leg flat, exactly like the manual multi-leg form. With the connection stored as a stop endpoint, the existing Atlas role filter excludes the layover country on its own. AirTrail has no multi-leg flight a joined booking could round-trip to, so it imports detached from live sync, with every source flight id recorded in metadata.airtrail_ids — the picker and the server-side dedupe both treat those legs as imported, per leg, even across trip members. The server re-validates each requested chain and falls back to individual imports when it does not actually connect.
176 lines
10 KiB
TypeScript
176 lines
10 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const reservations: TranslationStrings = {
|
|
'reservations.title': 'Đặt chỗ',
|
|
'reservations.empty': 'Chưa có đặt chỗ nào',
|
|
'reservations.emptyHint': 'Thêm đặt chỗ cho chuyến bay, khách sạn và hơn thế nữa',
|
|
'reservations.add': 'Thêm đặt chỗ',
|
|
'reservations.addManual': 'Thêm đặt chỗ',
|
|
'reservations.placeHint':
|
|
'Mẹo: Tốt nhất bạn nên tạo đặt chỗ trực tiếp từ một nơi để liên kết chúng với kế hoạch trong ngày của bạn.',
|
|
'reservations.confirmed': 'Đã xác nhận',
|
|
'reservations.pending': 'Chưa giải quyết',
|
|
'reservations.summary': '{confirmed} đã xác nhận, {pending} đang chờ xử lý',
|
|
'reservations.fromPlan': 'Từ kế hoạch',
|
|
'reservations.showFiles': 'Hiển thị tệp',
|
|
'reservations.editTitle': 'Chỉnh sửa đặt chỗ',
|
|
'reservations.status': 'Trạng thái',
|
|
'reservations.datetime': 'Ngày & Giờ',
|
|
'reservations.startTime': 'Thời gian bắt đầu',
|
|
'reservations.endTime': 'Thời gian kết thúc',
|
|
'reservations.date': 'Ngày',
|
|
'reservations.time': 'Thời gian',
|
|
'reservations.timeAlt': 'Thời gian (thay thế, ví dụ: 19:30)',
|
|
'reservations.notes': 'Ghi chú',
|
|
'reservations.notesPlaceholder': 'Ghi chú bổ sung...',
|
|
'reservations.meta.airline': 'Hãng hàng không',
|
|
'reservations.meta.flightNumber': 'Chuyến bay số',
|
|
'reservations.meta.from': 'Từ',
|
|
'reservations.meta.to': 'ĐẾN',
|
|
'reservations.layover.route': 'Tuyến đường',
|
|
'reservations.layover.stop': 'Dừng lại',
|
|
'reservations.layover.addStop': 'Thêm điểm dừng',
|
|
'reservations.layover.connection': 'Sự liên quan',
|
|
'reservations.layover.layover': 'quá cảnh',
|
|
'reservations.needsReview': 'Ôn tập',
|
|
'reservations.needsReviewHint': 'Sân bay không thể được khớp tự động - vui lòng xác nhận vị trí.',
|
|
'reservations.searchLocation': 'Trạm tìm kiếm, cổng, địa chỉ…',
|
|
'reservations.meta.trainNumber': 'Số tàu',
|
|
'reservations.meta.platform': 'Sân ga',
|
|
'reservations.meta.seat': 'Ghế',
|
|
'reservations.meta.checkIn': 'Nhận phòng',
|
|
'reservations.meta.checkInUntil': 'Nhận phòng cho đến khi',
|
|
'reservations.meta.checkOut': 'Trả phòng',
|
|
'reservations.meta.linkAccommodation': 'Chỗ ở',
|
|
'reservations.meta.pickAccommodation': 'Liên kết chỗ ở',
|
|
'reservations.meta.noAccommodation': 'Không có',
|
|
'reservations.meta.hotelPlace': 'Chỗ ở',
|
|
'reservations.meta.linkPlace': 'Địa điểm / Hoạt động',
|
|
'reservations.meta.pickPlace': 'Chọn địa điểm / hoạt động',
|
|
'reservations.meta.pickHotel': 'Chọn chỗ ở',
|
|
'reservations.meta.fromDay': 'Từ',
|
|
'reservations.meta.toDay': 'ĐẾN',
|
|
'reservations.meta.selectDay': 'Chọn ngày',
|
|
'reservations.type.flight': 'Chuyến bay',
|
|
'reservations.type.hotel': 'Chỗ ở',
|
|
'reservations.type.restaurant': 'Nhà hàng',
|
|
'reservations.type.train': 'Xe lửa',
|
|
'reservations.type.car': 'Xe hơi',
|
|
'reservations.type.cruise': 'Du thuyền',
|
|
'reservations.type.event': 'Sự kiện',
|
|
'reservations.type.tour': 'Chuyến du lịch',
|
|
'reservations.type.other': 'Khác',
|
|
'reservations.type.bus': 'xe buýt',
|
|
'reservations.type.ferry': 'Phà',
|
|
'reservations.type.bicycle': 'Xe đạp',
|
|
'reservations.type.taxi': 'Taxi',
|
|
'reservations.type.transit': 'Giao thông công cộng',
|
|
'reservations.type.transport_other': 'Khác',
|
|
'reservations.confirm.delete': 'Bạn có chắc chắn muốn xóa đặt chỗ "{name}" không?',
|
|
'reservations.confirm.deleteTitle': 'Xóa đặt chỗ?',
|
|
'reservations.confirm.deleteBody': '"{name}" sẽ bị xóa vĩnh viễn.',
|
|
'reservations.toast.updated': 'Đã cập nhật đặt chỗ',
|
|
'reservations.toast.removed': 'Đã xóa đặt chỗ',
|
|
'reservations.toast.fileUploaded': 'Tệp đã được tải lên',
|
|
'reservations.toast.uploadError': 'Không thể tải lên',
|
|
'reservations.newTitle': 'Đặt chỗ mới',
|
|
'reservations.bookingType': 'Loại đặt chỗ',
|
|
'reservations.titleLabel': 'Tiêu đề',
|
|
'reservations.titlePlaceholder': 'ví dụ. Lufthansa LH123, Khách sạn Adlon,...',
|
|
'reservations.locationAddress': 'Vị trí / Địa chỉ',
|
|
'reservations.locationPlaceholder': 'Địa chỉ, Sân bay, Khách sạn...',
|
|
'reservations.confirmationCode': 'Mã đặt chỗ',
|
|
'reservations.confirmationPlaceholder': 'ví dụ. ABC12345',
|
|
'reservations.day': 'Ngày',
|
|
'reservations.noDay': 'Không có ngày',
|
|
'reservations.place': 'Địa điểm',
|
|
'reservations.noPlace': 'Không có nơi nào',
|
|
'reservations.pendingSave': 'sẽ được cứu…',
|
|
'reservations.uploading': 'Đang tải lên...',
|
|
'reservations.attachFile': 'Đính kèm tập tin',
|
|
'reservations.linkExisting': 'Liên kết tập tin hiện có',
|
|
'reservations.toast.saveError': 'Không lưu được',
|
|
'reservations.toast.updateError': 'Không thể cập nhật',
|
|
'reservations.toast.deleteError': 'Không thể xóa',
|
|
'reservations.confirm.remove': 'Xóa phần đặt chỗ cho "{name}"?',
|
|
'reservations.linkAssignment': 'Liên kết đến bài tập trong ngày',
|
|
'reservations.pickAssignment': 'Chọn một nhiệm vụ từ kế hoạch của bạn...',
|
|
'reservations.noAssignment': 'Không có liên kết (độc lập)',
|
|
'reservations.price': 'Giá',
|
|
'reservations.budgetCategory': 'Hạng mục ngân sách',
|
|
'reservations.budgetCategoryPlaceholder': 'ví dụ. Vận chuyển, Chỗ ở',
|
|
'reservations.budgetCategoryAuto': 'Tự động (từ loại đặt chỗ)',
|
|
'reservations.budgetHint': 'Một mục nhập ngân sách sẽ được tạo tự động khi lưu.',
|
|
'reservations.departureDate': 'Khởi hành',
|
|
'reservations.arrivalDate': 'Đến',
|
|
'reservations.departureTime': 'Thời gian khởi hành',
|
|
'reservations.arrivalTime': 'Thời gian hạ cánh',
|
|
'reservations.pickupDate': 'Ngày đón',
|
|
'reservations.returnDate': 'Ngày trở về',
|
|
'reservations.pickupTime': 'Thời gian đón',
|
|
'reservations.returnTime': 'Thời gian trở về',
|
|
'reservations.endDate': 'Ngày kết thúc',
|
|
'reservations.meta.departureTimezone': 'Múi giờ đi',
|
|
'reservations.meta.arrivalTimezone': 'Múi giờ đến',
|
|
'reservations.span.departure': 'Khởi hành',
|
|
'reservations.span.arrival': 'Đến',
|
|
'reservations.span.inTransit': 'Đang chuyển tiếp',
|
|
'reservations.span.pickup': 'Đón',
|
|
'reservations.span.return': 'Trở lại',
|
|
'reservations.span.active': 'Tích cực',
|
|
'reservations.span.start': 'Bắt đầu',
|
|
'reservations.span.end': 'Kết thúc',
|
|
'reservations.span.ongoing': 'Đang thực hiện',
|
|
'reservations.validation.endBeforeStart': 'Ngày/giờ kết thúc phải sau ngày/giờ bắt đầu',
|
|
'reservations.addBooking': 'Thêm đặt chỗ',
|
|
'reservations.import.title': 'Nhập xác nhận đặt chỗ',
|
|
'reservations.import.cta': 'Nhập từ tập tin',
|
|
'reservations.import.dropHere': 'Thả file xác nhận đặt phòng tại đây, hoặc bấm để chọn',
|
|
'reservations.import.dropActive': 'Thả tập tin để nhập',
|
|
'reservations.import.acceptedFormats':
|
|
'Đã chấp nhận: EML, PDF, PKPass, HTML, TXT (tối đa 10 MB mỗi cái, tối đa 5 tệp)',
|
|
'reservations.import.parsing': 'Đang phân tích tệp…',
|
|
'reservations.import.previewHeading': '{count} đã tìm thấy (các) đặt chỗ',
|
|
'reservations.import.previewEmpty': 'Không thể trích xuất đặt chỗ nào từ các tập tin đã tải lên.',
|
|
'reservations.import.removeItem': 'Xóa xem xét',
|
|
'reservations.import.needsReview': 'Xem xét',
|
|
'reservations.import.tryAi': 'Thử phân tích bằng AI',
|
|
'reservations.import.aiParsing': 'Đang phân tích bằng AI...',
|
|
'reservations.import.confirm': 'Nhập {count} đặt chỗ',
|
|
'reservations.import.back': 'Quay lại',
|
|
'reservations.import.success': '{count} đặt chỗ đã được nhập',
|
|
'reservations.import.partialFailure': '{created} đã được nhập, {failed} không thành công',
|
|
'reservations.import.error':
|
|
'Phân tích cú pháp không thành công. Hãy chắc chắn rằng tập tin này là một xác nhận đặt phòng hợp lệ.',
|
|
'reservations.import.unavailable': 'Nhập đăng ký không có sẵn trên máy chủ này.',
|
|
'reservations.import.unsupportedFormat': 'Định dạng tệp không được hỗ trợ. Sử dụng EML, PDF, PKPass, HTML hoặc TXT.',
|
|
'reservations.import.fileTooLarge': 'Tệp "{name}" vượt quá giới hạn 10 MB.',
|
|
'reservations.airtrail.title': 'Nhập từ AirTrail',
|
|
'reservations.airtrail.cta': 'AirTrail',
|
|
'reservations.airtrail.synced': 'AirTrail',
|
|
'reservations.airtrail.syncedHint':
|
|
'Đã đồng bộ hóa từ AirTrail — các chỉnh sửa vẫn được đồng bộ hóa theo cả hai cách.',
|
|
'reservations.airtrail.notSynced': 'Chưa được đồng bộ hóa',
|
|
'reservations.airtrail.notSyncedHint': 'Chuyến bay này đã bị xóa trong AirTrail và không còn đồng bộ hóa nữa.',
|
|
'reservations.airtrail.loadError': 'Không thể tải chuyến bay AirTrail của bạn.',
|
|
'reservations.airtrail.imported': '{count} chuyến bay đã nhập',
|
|
'reservations.airtrail.skippedDuplicate': '{count} đã tham gia chuyến đi này, đã bỏ qua',
|
|
'reservations.airtrail.nothingImported': 'Không có gì để nhập khẩu.',
|
|
'reservations.airtrail.importError': 'Nhập không thành công. Vui lòng thử lại.',
|
|
'reservations.airtrail.undo': 'Nhập từ AirTrail',
|
|
'reservations.airtrail.alreadyImported': 'Đã nhập',
|
|
'reservations.airtrail.duringTrip': 'Trong chuyến đi này',
|
|
'reservations.airtrail.otherFlights': 'Các chuyến bay khác',
|
|
'reservations.airtrail.empty': 'Không tìm thấy chuyến bay nào trong tài khoản AirTrail của bạn.',
|
|
'reservations.airtrail.importCta': 'Nhập {count}',
|
|
'reservations.airtrail.joinConnection': 'Nhập thành một chuyến bay với điểm dừng tại {stops}',
|
|
'reservations.costsLabel': 'Chi phí',
|
|
'reservations.createExpense': 'Tạo chi phí',
|
|
'reservations.createExpenseHint': 'Lưu đặt chỗ, sau đó mở trình chỉnh sửa Chi phí.',
|
|
'reservations.linkedExpense': 'Chi phí liên kết',
|
|
'reservations.removeExpense': 'Xóa chi phí',
|
|
'reservations.urlLabel': 'Liên kết',
|
|
'reservations.urlPlaceholder': 'https://...',
|
|
};
|
|
export default reservations;
|