mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-01 17:03:15 +00:00
bdd8c08dd4
The day plan wrote straight to the API, so offline a place dropped on a day snapped back with "Error assigning place", a renamed day or a new day note failed, and a moved stop, a leg's travel mode or who joins a visit were lost. Visits (put on a day, taken off, reordered, moved, travellers, leg mode), the day's name, notes text and travel mode, and the day notes (add, edit, delete, move) now go through assignmentRepo, dayRepo and dayNoteRepo and the mutation queue: the cached day changes at once, a visit or note made offline gets a temporary id that the edits after it wait for, and an online write held behind an older queued one joins the queue, since none of these carry a version token. A new order of a day that names a visit made offline is sent with its real id, or without it when its create failed. Desktop, the phone timeline and note sheet all write through the store, so both are covered. The replay reads each answer for what it names: the day answer keeps the cached notes and visits, the participants answer lands on its visit, and a visit the server refuses with 409 (a Tour already on that day) fails instead of waiting as a conflict no retry can solve. The trip's name, description, reminder and the archive flag wait in the queue too, from the planner, the phone and the dashboard. What only the server can do says so instead of failing: new dates, a day count, a currency or a cover, a new trip, a copy or a delete, members, guests, share and invite links, and a new order of the days, which moves the dates of the bookings. Refs #2601
83 lines
3.4 KiB
TypeScript
83 lines
3.4 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.datepicker.prevMonth': 'Tháng trước',
|
|
'common.datepicker.nextMonth': 'Tháng sau',
|
|
'common.datepicker.prevYear': 'Năm trước',
|
|
'common.datepicker.nextYear': 'Năm sau',
|
|
'common.datepicker.prevYears': 'Các năm trước',
|
|
'common.datepicker.nextYears': 'Các năm sau',
|
|
'common.datepicker.selectMonth': 'Chọn tháng',
|
|
'common.datepicker.selectYear': 'Chọn năm',
|
|
'common.datepicker.enterManually': 'Nhập ngày thủ công',
|
|
'common.datepicker.typeDate': 'Nhập một ngày',
|
|
'common.datepicker.dialog': 'Bộ chọn ngày',
|
|
'common.datepicker.clearDate': 'Xóa ngày',
|
|
'common.save': 'Lưu',
|
|
'common.showMore': 'Hiển thị thêm',
|
|
'common.showLess': 'Hiển thị ít hơn',
|
|
'common.cancel': 'Hủy',
|
|
'common.clear': 'Xóa',
|
|
'common.delete': 'Xóa bỏ',
|
|
'common.remove': 'Gỡ bỏ',
|
|
'common.preview': 'Xem trước',
|
|
'common.edit': 'Chỉnh sửa',
|
|
'common.add': 'Thêm',
|
|
'common.loading': 'Đang tải...',
|
|
'common.import': 'Nhập',
|
|
'common.select': 'Chọn',
|
|
'common.selectAll': 'Chọn tất cả',
|
|
'common.deselectAll': 'Bỏ chọn tất cả',
|
|
'common.error': 'Lỗi',
|
|
'common.success': 'Thành công',
|
|
'common.unknownError': 'Lỗi không xác định',
|
|
'common.tooManyAttempts': 'Quá nhiều nỗ lực. Vui lòng thử lại sau.',
|
|
'common.back': 'Quay lại',
|
|
'common.all': 'Tất cả',
|
|
'common.close': 'Đóng',
|
|
'common.open': 'Mở',
|
|
'common.upload': 'Tải lên',
|
|
'common.search': 'Tìm kiếm',
|
|
'common.confirm': 'Xác nhận',
|
|
'common.ok': 'OK',
|
|
'common.yes': 'Có',
|
|
'common.no': 'Không',
|
|
'common.or': 'hoặc',
|
|
'common.none': 'Không có',
|
|
'common.date': 'Ngày',
|
|
'common.rename': 'Đổi tên',
|
|
'common.discardChanges': 'Hủy thay đổi',
|
|
'common.discard': 'Bỏ',
|
|
'common.unsavedTitle': 'Bỏ các thay đổi?',
|
|
'common.unsavedMessage': 'Những gì bạn nhập ở đây chưa được lưu.',
|
|
'common.keepEditing': 'Tiếp tục chỉnh sửa',
|
|
'common.name': 'Tên',
|
|
'common.email': 'Email',
|
|
'common.password': 'Mật khẩu',
|
|
'common.saving': 'Đang lưu...',
|
|
'common.justNow': 'vừa xong',
|
|
'common.hoursAgo': '{count}h trước',
|
|
'common.daysAgo': '{count} ngày trước',
|
|
'common.saved': 'Đã lưu',
|
|
'common.update': 'Cập nhật',
|
|
'common.change': 'Thay đổi',
|
|
'common.uploading': 'Đang tải lên…',
|
|
'common.backToPlanning': 'Quay lại Kế hoạch',
|
|
'common.reset': 'Đặt lại',
|
|
'common.expand': 'Mở rộng',
|
|
'common.collapse': 'Thu gọn',
|
|
'common.copy': 'Sao chép',
|
|
'common.copied': 'Đã sao chép',
|
|
'common.errorTitle': 'Đã xảy ra lỗi',
|
|
'common.errorBody': 'Phần này của ứng dụng đã ngừng hoạt động. Dữ liệu của bạn vẫn an toàn.',
|
|
'common.errorPanelTitle': 'Không thể hiển thị mục này',
|
|
'common.errorPanelBody': 'Phần còn lại của trang vẫn hoạt động.',
|
|
'common.errorRetry': 'Thử lại',
|
|
'common.errorReload': 'Tải lại trang',
|
|
'common.errorUpdateTitle': 'Đã có phiên bản mới',
|
|
'common.errorUpdateBody': 'TREK đã được cập nhật trong khi thẻ này đang mở. Hãy tải lại để nhận phiên bản mới.',
|
|
'common.errorPluginTitle': 'Không thể hiển thị plugin này',
|
|
'common.needsConnection': 'Thao tác này cần kết nối. Hãy thử lại khi TREK trực tuyến trở lại.',
|
|
};
|
|
export default common;
|