Cập nhật API thêm trip (validate)

This commit is contained in:
2025-12-22 15:22:06 +07:00
parent 12fb7c48ed
commit 67e9fc22a3
9 changed files with 228 additions and 86 deletions

View File

@@ -165,7 +165,14 @@
"success": "Data filled from last trip",
"error": "Unable to fetch trip data",
"noData": "No previous trip data available"
}
},
"validation": {
"shipRequired": "Please select a ship before creating the trip",
"datesRequired": "Please select departure and arrival dates",
"tripNameRequired": "Please enter a trip name"
},
"createTripSuccess": "Trip created successfully!",
"createTripError": "Unable to create trip. Please try again."
},
"trip": {
"infoTrip": "Trip Information",

View File

@@ -165,7 +165,14 @@
"success": "Đã điền dữ liệu từ chuyến đi cuối cùng",
"error": "Không thể lấy dữ liệu chuyến đi",
"noData": "Không có dữ liệu chuyến đi trước đó"
}
},
"validation": {
"shipRequired": "Vui lòng chọn tàu trước khi tạo chuyến đi",
"datesRequired": "Vui lòng chọn ngày khởi hành và ngày kết thúc",
"tripNameRequired": "Vui lòng nhập tên chuyến đi"
},
"createTripSuccess": "Tạo chuyến đi thành công!",
"createTripError": "Không thể tạo chuyến đi. Vui lòng thử lại."
},
"trip": {
"infoTrip": "Thông Tin Chuyến Đi",