mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +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.3 KiB
TypeScript
86 lines
3.3 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.save': 'Salva',
|
|
'common.showMore': 'Mostra di più',
|
|
'common.showLess': 'Mostra meno',
|
|
'common.cancel': 'Annulla',
|
|
'common.clear': 'Cancella',
|
|
'common.delete': 'Elimina',
|
|
'common.remove': 'Rimuovi',
|
|
'common.preview': 'Anteprima',
|
|
'common.edit': 'Modifica',
|
|
'common.add': 'Aggiungi',
|
|
'common.loading': 'Caricamento...',
|
|
'common.import': 'Importa',
|
|
'common.select': 'Seleziona',
|
|
'common.selectAll': 'Seleziona tutto',
|
|
'common.deselectAll': 'Deseleziona tutto',
|
|
'common.error': 'Errore',
|
|
'common.success': 'Successo',
|
|
'common.unknownError': 'Errore sconosciuto',
|
|
'common.tooManyAttempts': 'Troppi tentativi. Riprova più tardi.',
|
|
'common.back': 'Indietro',
|
|
'common.all': 'Tutti',
|
|
'common.close': 'Chiudi',
|
|
'common.open': 'Apri',
|
|
'common.upload': 'Carica',
|
|
'common.search': 'Cerca',
|
|
'common.confirm': 'Conferma',
|
|
'common.ok': 'OK',
|
|
'common.yes': 'Sì',
|
|
'common.no': 'No',
|
|
'common.or': 'o',
|
|
'common.none': 'Nessuno',
|
|
'common.date': 'Data',
|
|
'common.rename': 'Rinomina',
|
|
'common.discardChanges': 'Scarta modifiche',
|
|
'common.discard': 'Scarta',
|
|
'common.unsavedTitle': 'Scartare le modifiche?',
|
|
'common.unsavedMessage': 'Quello che hai inserito qui non è ancora stato salvato.',
|
|
'common.keepEditing': 'Continua a modificare',
|
|
'common.name': 'Nome',
|
|
'common.email': 'Email',
|
|
'common.password': 'Password',
|
|
'common.saving': 'Salvataggio...',
|
|
'common.saved': 'Salvato',
|
|
'common.expand': 'Espandi',
|
|
'common.collapse': 'Comprimi',
|
|
'common.update': 'Aggiorna',
|
|
'common.change': 'Cambia',
|
|
'common.uploading': 'Caricamento…',
|
|
'common.backToPlanning': 'Torna al Programma',
|
|
'common.reset': 'Reimposta',
|
|
'common.copy': 'Copia',
|
|
'common.copied': 'Copiato',
|
|
'common.justNow': 'proprio ora',
|
|
'common.hoursAgo': '{count}h fa',
|
|
'common.hoursAgo.one': '{count}h fa',
|
|
'common.daysAgo': '{count}g fa',
|
|
'common.daysAgo.one': '{count}g fa',
|
|
'common.datepicker.prevMonth': 'Mese precedente',
|
|
'common.datepicker.nextMonth': 'Mese prossimo',
|
|
'common.datepicker.prevYear': 'Anno precedente',
|
|
'common.datepicker.nextYear': 'Anno prossimo',
|
|
'common.datepicker.prevYears': 'Anni precedenti',
|
|
'common.datepicker.nextYears': 'Anni prossimi',
|
|
'common.datepicker.selectMonth': 'Seleziona mese',
|
|
'common.datepicker.selectYear': 'Seleziona anno',
|
|
'common.datepicker.enterManually': 'Inserisci la data manualmente',
|
|
'common.datepicker.typeDate': 'Inserisci una data',
|
|
'common.datepicker.dialog': 'Selettore di date',
|
|
'common.datepicker.clearDate': 'Cancella data',
|
|
'common.errorTitle': 'Qualcosa è andato storto',
|
|
'common.errorBody': "Questa parte dell'app ha smesso di funzionare. I tuoi dati sono al sicuro.",
|
|
'common.errorPanelTitle': 'Impossibile mostrare questa sezione',
|
|
'common.errorPanelBody': 'Il resto della pagina funziona ancora.',
|
|
'common.errorRetry': 'Riprova',
|
|
'common.errorReload': 'Ricarica la pagina',
|
|
'common.errorUpdateTitle': 'È disponibile una nuova versione',
|
|
'common.errorUpdateBody':
|
|
'TREK è stato aggiornato mentre questa scheda era aperta. Ricarica per ottenere la nuova versione.',
|
|
'common.errorPluginTitle': 'Impossibile mostrare questo plugin',
|
|
'common.needsConnection': 'Serve una connessione. Riprova quando TREK tornerà online.',
|
|
};
|
|
export default common;
|