mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 15:36:33 +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
86 lines
3.4 KiB
TypeScript
86 lines
3.4 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.save': 'Speichern',
|
|
'common.showMore': 'Mehr anzeigen',
|
|
'common.showLess': 'Weniger anzeigen',
|
|
'common.cancel': 'Abbrechen',
|
|
'common.clear': 'Löschen',
|
|
'common.delete': 'Löschen',
|
|
'common.remove': 'Entfernen',
|
|
'common.preview': 'Vorschau',
|
|
'common.edit': 'Bearbeiten',
|
|
'common.add': 'Hinzufügen',
|
|
'common.loading': 'Laden...',
|
|
'common.import': 'Importieren',
|
|
'common.select': 'Auswählen',
|
|
'common.selectAll': 'Alle auswählen',
|
|
'common.deselectAll': 'Alle abwählen',
|
|
'common.error': 'Fehler',
|
|
'common.success': 'Erfolg',
|
|
'common.unknownError': 'Unbekannter Fehler',
|
|
'common.tooManyAttempts': 'Zu viele Versuche. Bitte versuchen Sie es später erneut.',
|
|
'common.back': 'Zurück',
|
|
'common.all': 'Alle',
|
|
'common.close': 'Schließen',
|
|
'common.open': 'Öffnen',
|
|
'common.upload': 'Hochladen',
|
|
'common.search': 'Suchen',
|
|
'common.confirm': 'Bestätigen',
|
|
'common.ok': 'OK',
|
|
'common.yes': 'Ja',
|
|
'common.no': 'Nein',
|
|
'common.or': 'oder',
|
|
'common.none': 'Keine',
|
|
'common.date': 'Datum',
|
|
'common.rename': 'Umbenennen',
|
|
'common.discardChanges': 'Änderungen verwerfen',
|
|
'common.discard': 'Verwerfen',
|
|
'common.unsavedTitle': 'Änderungen verwerfen?',
|
|
'common.unsavedMessage': 'Was du hier eingegeben hast, ist noch nicht gespeichert.',
|
|
'common.keepEditing': 'Weiter bearbeiten',
|
|
'common.name': 'Name',
|
|
'common.email': 'E-Mail',
|
|
'common.password': 'Passwort',
|
|
'common.saving': 'Speichern...',
|
|
'common.expand': 'Erweitern',
|
|
'common.collapse': 'Einklappen',
|
|
'common.justNow': 'gerade eben',
|
|
'common.hoursAgo': 'vor {count}h',
|
|
'common.hoursAgo.one': 'vor {count}h',
|
|
'common.daysAgo': 'vor {count}T',
|
|
'common.daysAgo.one': 'vor {count}T',
|
|
'common.saved': 'Gespeichert',
|
|
'common.update': 'Aktualisieren',
|
|
'common.change': 'Ändern',
|
|
'common.uploading': 'Hochladen…',
|
|
'common.backToPlanning': 'Zurück zur Planung',
|
|
'common.reset': 'Zurücksetzen',
|
|
'common.copy': 'Kopieren',
|
|
'common.copied': 'Kopiert',
|
|
'common.datepicker.prevMonth': 'Vormonat',
|
|
'common.datepicker.nextMonth': 'Nächster Monat',
|
|
'common.datepicker.prevYear': 'Vorjahr',
|
|
'common.datepicker.nextYear': 'Nächstes Jahr',
|
|
'common.datepicker.prevYears': 'Vorherige Jahre',
|
|
'common.datepicker.nextYears': 'Nächste Jahre',
|
|
'common.datepicker.selectMonth': 'Monat auswählen',
|
|
'common.datepicker.selectYear': 'Jahr auswählen',
|
|
'common.datepicker.enterManually': 'Datum manuell eingeben',
|
|
'common.datepicker.typeDate': 'Datum eingeben',
|
|
'common.datepicker.dialog': 'Datumsauswahl',
|
|
'common.datepicker.clearDate': 'Datum löschen',
|
|
'common.errorTitle': 'Etwas ist schiefgelaufen',
|
|
'common.errorBody': 'Dieser Teil der App funktioniert nicht mehr. Deine Daten sind sicher.',
|
|
'common.errorPanelTitle': 'Dieser Bereich konnte nicht angezeigt werden',
|
|
'common.errorPanelBody': 'Der Rest der Seite funktioniert weiterhin.',
|
|
'common.errorRetry': 'Erneut versuchen',
|
|
'common.errorReload': 'Seite neu laden',
|
|
'common.errorUpdateTitle': 'Eine neue Version ist verfügbar',
|
|
'common.errorUpdateBody':
|
|
'TREK wurde aktualisiert, während dieser Tab offen war. Lade neu, um die neue Version zu erhalten.',
|
|
'common.errorPluginTitle': 'Dieses Plugin konnte nicht angezeigt werden',
|
|
'common.needsConnection': 'Dafür braucht es eine Verbindung. Versuch es noch einmal, sobald TREK wieder online ist.',
|
|
};
|
|
export default common;
|