mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +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.5 KiB
TypeScript
86 lines
3.5 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.save': 'Guardar',
|
|
'common.showMore': 'Ver más',
|
|
'common.showLess': 'Ver menos',
|
|
'common.cancel': 'Cancelar',
|
|
'common.clear': 'Borrar',
|
|
'common.delete': 'Eliminar',
|
|
'common.remove': 'Eliminar',
|
|
'common.preview': 'Vista previa',
|
|
'common.edit': 'Editar',
|
|
'common.add': 'Añadir',
|
|
'common.loading': 'Cargando...',
|
|
'common.import': 'Importar',
|
|
'common.select': 'Seleccionar',
|
|
'common.selectAll': 'Seleccionar todo',
|
|
'common.deselectAll': 'Deseleccionar todo',
|
|
'common.error': 'Error',
|
|
'common.success': 'Éxito',
|
|
'common.unknownError': 'Error desconocido',
|
|
'common.tooManyAttempts': 'Demasiados intentos. Inténtelo de nuevo más tarde.',
|
|
'common.back': 'Atrás',
|
|
'common.all': 'Todo',
|
|
'common.close': 'Cerrar',
|
|
'common.open': 'Abrir',
|
|
'common.upload': 'Subir',
|
|
'common.search': 'Buscar',
|
|
'common.confirm': 'Confirmar',
|
|
'common.ok': 'Aceptar',
|
|
'common.yes': 'Sí',
|
|
'common.no': 'No',
|
|
'common.or': 'o',
|
|
'common.none': 'Ninguno',
|
|
'common.date': 'Fecha',
|
|
'common.rename': 'Renombrar',
|
|
'common.discardChanges': 'Descartar cambios',
|
|
'common.discard': 'Descartar',
|
|
'common.unsavedTitle': '¿Descartar los cambios?',
|
|
'common.unsavedMessage': 'Lo que has introducido aquí aún no se ha guardado.',
|
|
'common.keepEditing': 'Seguir editando',
|
|
'common.name': 'Nombre',
|
|
'common.email': 'Correo',
|
|
'common.password': 'Contraseña',
|
|
'common.saving': 'Guardando...',
|
|
'common.saved': 'Guardado',
|
|
'common.expand': 'Expandir',
|
|
'common.collapse': 'Contraer',
|
|
'common.update': 'Actualizar',
|
|
'common.change': 'Cambiar',
|
|
'common.uploading': 'Subiendo…',
|
|
'common.backToPlanning': 'Volver a la planificación',
|
|
'common.reset': 'Restablecer',
|
|
'common.copy': 'Copiar',
|
|
'common.copied': 'Copiado',
|
|
'common.justNow': 'justo ahora',
|
|
'common.hoursAgo': 'hace {count}h',
|
|
'common.hoursAgo.one': 'hace {count}h',
|
|
'common.daysAgo': 'hace {count}d',
|
|
'common.daysAgo.one': 'hace {count}d',
|
|
'common.datepicker.prevMonth': 'Previous month', // en-fallback
|
|
'common.datepicker.nextMonth': 'Next month', // en-fallback
|
|
'common.datepicker.prevYear': 'Previous year', // en-fallback
|
|
'common.datepicker.nextYear': 'Next year', // en-fallback
|
|
'common.datepicker.prevYears': 'Previous years', // en-fallback
|
|
'common.datepicker.nextYears': 'Next years', // en-fallback
|
|
'common.datepicker.selectMonth': 'Select month', // en-fallback
|
|
'common.datepicker.selectYear': 'Select year', // en-fallback
|
|
'common.datepicker.enterManually': 'Enter date manually', // en-fallback
|
|
'common.datepicker.typeDate': 'Type a date', // en-fallback
|
|
'common.datepicker.dialog': 'Date picker', // en-fallback
|
|
'common.datepicker.clearDate': 'Clear date', // en-fallback
|
|
'common.errorTitle': 'Algo salió mal',
|
|
'common.errorBody': 'Esta parte de la aplicación dejó de funcionar. Tus datos están a salvo.',
|
|
'common.errorPanelTitle': 'No se pudo mostrar esta sección',
|
|
'common.errorPanelBody': 'El resto de la página sigue funcionando.',
|
|
'common.errorRetry': 'Reintentar',
|
|
'common.errorReload': 'Recargar la página',
|
|
'common.errorUpdateTitle': 'Hay una nueva versión disponible',
|
|
'common.errorUpdateBody':
|
|
'TREK se actualizó mientras esta pestaña estaba abierta. Recarga para obtener la nueva versión.',
|
|
'common.errorPluginTitle': 'No se pudo mostrar este plugin',
|
|
'common.needsConnection': 'Esto necesita conexión. Vuelve a intentarlo cuando TREK esté de nuevo en línea.',
|
|
};
|
|
export default common;
|