mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 07:30:04 +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
85 lines
3.1 KiB
TypeScript
85 lines
3.1 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.save': 'Save',
|
|
'common.showMore': 'Show more',
|
|
'common.showLess': 'Show less',
|
|
'common.cancel': 'Cancel',
|
|
'common.clear': 'Clear',
|
|
'common.delete': 'Delete',
|
|
'common.remove': 'Remove',
|
|
'common.preview': 'Preview',
|
|
'common.edit': 'Edit',
|
|
'common.add': 'Add',
|
|
'common.loading': 'Loading...',
|
|
'common.import': 'Import',
|
|
'common.select': 'Select',
|
|
'common.selectAll': 'Select all',
|
|
'common.deselectAll': 'Deselect all',
|
|
'common.error': 'Error',
|
|
'common.success': 'Success',
|
|
'common.unknownError': 'Unknown error',
|
|
'common.tooManyAttempts': 'Too many attempts. Please try again later.',
|
|
'common.back': 'Back',
|
|
'common.all': 'All',
|
|
'common.close': 'Close',
|
|
'common.open': 'Open',
|
|
'common.upload': 'Upload',
|
|
'common.search': 'Search',
|
|
'common.confirm': 'Confirm',
|
|
'common.ok': 'OK',
|
|
'common.yes': 'Yes',
|
|
'common.no': 'No',
|
|
'common.or': 'or',
|
|
'common.none': 'None',
|
|
'common.date': 'Date',
|
|
'common.rename': 'Rename',
|
|
'common.discardChanges': 'Discard Changes',
|
|
'common.discard': 'Discard',
|
|
'common.unsavedTitle': 'Discard your changes?',
|
|
'common.unsavedMessage': 'What you entered here has not been saved yet.',
|
|
'common.keepEditing': 'Keep editing',
|
|
'common.name': 'Name',
|
|
'common.email': 'Email',
|
|
'common.password': 'Password',
|
|
'common.saving': 'Saving...',
|
|
'common.justNow': 'just now',
|
|
'common.hoursAgo': '{count}h ago',
|
|
'common.hoursAgo.one': '{count}h ago',
|
|
'common.daysAgo': '{count}d ago',
|
|
'common.daysAgo.one': '{count}d ago',
|
|
'common.saved': 'Saved',
|
|
'common.update': 'Update',
|
|
'common.change': 'Change',
|
|
'common.uploading': 'Uploading…',
|
|
'common.backToPlanning': 'Back to Planning',
|
|
'common.reset': 'Reset',
|
|
'common.expand': 'Expand',
|
|
'common.collapse': 'Collapse',
|
|
'common.copy': 'Copy',
|
|
'common.copied': 'Copied',
|
|
'common.datepicker.prevMonth': 'Previous month',
|
|
'common.datepicker.nextMonth': 'Next month',
|
|
'common.datepicker.prevYear': 'Previous year',
|
|
'common.datepicker.nextYear': 'Next year',
|
|
'common.datepicker.prevYears': 'Previous years',
|
|
'common.datepicker.nextYears': 'Next years',
|
|
'common.datepicker.selectMonth': 'Select month',
|
|
'common.datepicker.selectYear': 'Select year',
|
|
'common.datepicker.enterManually': 'Enter date manually',
|
|
'common.datepicker.typeDate': 'Type a date',
|
|
'common.datepicker.dialog': 'Date picker',
|
|
'common.datepicker.clearDate': 'Clear date',
|
|
'common.errorTitle': 'Something went wrong',
|
|
'common.errorBody': 'This part of the app stopped working. Your data is safe.',
|
|
'common.errorPanelTitle': 'This section could not be shown',
|
|
'common.errorPanelBody': 'The rest of the page still works.',
|
|
'common.errorRetry': 'Try again',
|
|
'common.errorReload': 'Reload page',
|
|
'common.errorUpdateTitle': 'A new version is available',
|
|
'common.errorUpdateBody': 'TREK was updated while this tab was open. Reload to get the new version.',
|
|
'common.errorPluginTitle': 'This plugin could not be shown',
|
|
'common.needsConnection': 'This needs a connection. Try again once TREK is back online.',
|
|
};
|
|
export default common;
|