mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
df3edac7b9
* fix(places): match imports on the provider id so renamed places are not duplicated Re-importing a Google Maps list duplicated every place the user had renamed. buildDedupSet only ever collected names and, for unnamed places, coordinates, and isPlaceDuplicate returns on the name before it reaches the coordinate fallback, so a renamed place was findable by neither. The ids were stored all along, and even backfilled onto matched places, they were simply never read. Match on google_place_id / google_ftid / osm_id first, keeping name and coordinates in their old roles below it. Widening the coordinate check instead would have merged the restaurant and the bar in the same building. The collection copy carried a hand-mirrored port of the same predicate; it now uses the shared helpers and gets the fix with them. Closes #1550 * feat(calendar): put accommodations into the subscribed feed as all-day stays A hotel keeps its dates on the linked stay, not on the reservation: the booking form writes reservation_time = NULL for type 'hotel', and day_accommodations carries start day, end day and the check-in/out clock. The feed only ever read the reservation, so a stay showed up once on the arrival day at best, and not at all when it came from the booking form. Join the stay in and emit the reservation as an all-day range over every night, which also keeps it correct when days are reordered later — the dates now come from the day rows rather than from the copy stamped at creation time. Check-in and check-out become their own timed events when the stay records a clock, because an all-day event cannot carry the time you actually need reminding of. The check-in window, when set, becomes that event's DTEND. Closes #1586 * fix(oauth): treat a concurrent refresh as a race, not as a stolen token Refresh rotation is a race by construction. Several MCP clients share one refresh token, both post it within the same second, and the loser was read as a replay: chain revoked, MCP sessions torn down, browser window asking to log in again. That is the daily re-authentication people were seeing, not a short lifetime — access tokens last an hour and refresh tokens roll for thirty days. A revoked refresh token now only counts as a replay once it is outside a 30-second grace window, and only when the rotation that revoked it left a successor still alive. Inside the window the caller gets its own pair branched off the same parent, so both clients walk away with a working token. Explicit revocation leaves no live successor and a chain killed by a real replay has none either, so neither can slip through the window. Closes #1007 * feat(collections): mark a place visited from the trip it belongs to A place saved in several lists had to be opened in each of them to say you had been there, which is the wrong way round: you find out you have been somewhere while looking at the trip, not while browsing the library. The save picker now shows each list's own status and cycles it in place, with one action for "visited, wherever this is saved". The planner's selection bar and the mobile bulk toolbar carry the same thing for a whole selection — select all, one tap, done. Matching happens on the server with the signals findMembership already uses plus the source link a place saved from this trip carries, so a copy renamed inside a list is still found. Lists you may only read are skipped rather than refused; a shared list you cannot edit should not stop you marking your own. Closes #1469 * feat(journey): jump to the top or back to the last entry in a long journal Everything that adds to a journal sits at the top — the entry button, the gallery upload — and where you left off sits at the bottom, so adding one photo to a long journey meant scrolling the whole way twice. Two buttons float over the middle of the feed, clear of the Add Entry column on one side and the reorder arrows on the other, each appearing only when there is more than a screenful to travel in that direction. They live in a zero-height sticky box so they take no layout space and never push the timeline around. While in the header, the status pill also picks up the height of the round buttons beside it. Closes #1088 * fix(packing): give the item name the row back on phones An item name had roughly a third of the row to itself: a spelled-out sharing sentence, an empty weight column and two round action buttons took the rest, so anything longer than a word was cut off. Sharing is now the icon it always was next to a label rather than a sentence in the layout, an unset weight prints nothing instead of a dash, and edit/delete sit behind one overflow button that opens the same inline menu the bag picker already uses. The to-do list needed none of this — it wraps its chips onto a second line already. Closes #1525 * docs(wiki): cover the six community changes - Calendar feeds: accommodations as an all-day range plus check-in/check-out - Collections: setting the visited status from a trip, and how places are matched - Journey: the jump buttons on a long journal - Packing: what the phone row keeps and what moved behind the overflow button - Places: re-importing a list no longer duplicates renamed places - MCP setup: the rotation race no longer ends an OAuth session * test(collections): assert the stored status instead of a private method tests/ sits outside the build tsconfig, so reaching into getPlaceById only showed up in the dedicated typecheck step. Reading the row is the better assertion anyway — it pins what was persisted, not what a getter returns.
194 lines
9.4 KiB
TypeScript
194 lines
9.4 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
||
|
||
const collection: TranslationStrings = {
|
||
'collections.saveNToList': 'Guardar {count} en una lista',
|
||
'collections.addedNToList': '{count} guardados en {name}',
|
||
'collections.noOwnLists': 'Aún no tienes listas',
|
||
'collections.saveToListHint': 'Los duplicados se omiten automáticamente',
|
||
'collections.role.label': 'Rol',
|
||
'collections.role.viewer': 'Lector',
|
||
'collections.role.editor': 'Editor',
|
||
'collections.role.admin': 'Administrador',
|
||
'collections.picker.allLists': 'Todas las listas',
|
||
'collections.select': 'Seleccionar',
|
||
'collections.selectAll': 'Seleccionar todo',
|
||
'collections.deselectAll': 'Deseleccionar todo',
|
||
'collections.moveToList': 'Mover a lista',
|
||
'collections.duplicateToList': 'Duplicar en lista',
|
||
'collections.moveToListTitle': 'Mover {count} a otra lista',
|
||
'collections.duplicateToListTitle': 'Duplicar {count} en otra lista',
|
||
'collections.noOtherLists': 'Aún no hay otras listas',
|
||
'collections.movedCount': 'Movidos {count} lugares',
|
||
'collections.duplicatedCount': 'Duplicados {count} lugares',
|
||
'collections.placeCount': '{count} lugares',
|
||
'collections.category': 'Categoría',
|
||
'collections.noCategory': 'Sin categoría',
|
||
'collections.editListTitle': 'Editar lista',
|
||
'collections.coverImage': 'Imagen de portada',
|
||
'collections.addCover': 'Añadir portada',
|
||
'collections.changeCover': 'Cambiar portada',
|
||
'collections.description': 'Descripción',
|
||
'collections.descriptionPlaceholder': 'Añade una descripción…',
|
||
'collections.links': 'Enlaces',
|
||
'collections.linkLabel': 'Etiqueta',
|
||
'collections.addLink': 'Añadir enlace',
|
||
'collections.addDetails': 'Añadir detalles',
|
||
'collections.addPlace': 'Añadir un lugar',
|
||
'collections.addPlaceSearch': 'Buscar un lugar…',
|
||
'collections.addPlaceHint': 'Busca para añadir un lugar a esta lista',
|
||
'collections.importFromTrip': 'Importar de un viaje',
|
||
'collections.importTitle': 'Importar de un viaje',
|
||
'collections.importDoneTitle': 'Importación terminada',
|
||
'collections.importPickTripHint': 'Elige un viaje y lleva sus lugares a {name}.',
|
||
'collections.importNoTrips': 'Aún no hay viajes',
|
||
'collections.importPlacesCount': '{count} lugares',
|
||
'collections.importSearchPlaces': 'Buscar lugares…',
|
||
'collections.importOnlyNew': 'Solo nuevos',
|
||
'collections.importSelectAll': 'Seleccionar todo',
|
||
'collections.importClearSelection': 'Quitar selección',
|
||
'collections.importAlreadySaved': 'Ya guardado',
|
||
'collections.importUnscheduled': 'Sin día',
|
||
'collections.importOnDay': 'Día {count}',
|
||
'collections.importSelectedCount': '{count} seleccionados',
|
||
'collections.importAction': 'Importar {count}',
|
||
'collections.importEmptyTrip': 'Este viaje aún no tiene lugares',
|
||
'collections.importNothingNew': 'Todo este viaje ya está en la lista',
|
||
'collections.importDone': 'Se añadieron {count} lugares',
|
||
'collections.importDoneSkipped': '{count} ya estaban en la lista y se quedaron igual',
|
||
'collections.importDoneClean': 'Ahora están todos en {name}',
|
||
'collections.sort.default': 'Predeterminado',
|
||
'collections.sort.nameAsc': 'Nombre (A–Z)',
|
||
'collections.coordinates': 'Coordenadas',
|
||
'collections.showList': 'Mostrar lista',
|
||
'collections.expandMap': 'Ampliar mapa',
|
||
'collections.hero.mine': 'Mi colección',
|
||
'collections.hero.shared': 'Compartida contigo',
|
||
'collections.hero.all': 'Tu biblioteca',
|
||
'collections.title': 'Colecciones',
|
||
'collections.subtitle': 'Tus lugares guardados, organizados en listas',
|
||
|
||
'collections.newList': 'Nueva lista',
|
||
'collections.create': 'Crear',
|
||
'collections.editList': 'Renombrar',
|
||
'collections.listMenu': 'Opciones de la lista',
|
||
'collections.deleteList': 'Eliminar lista',
|
||
'collections.deleteListConfirm':
|
||
'Esto elimina de forma permanente la lista y todos sus lugares guardados. No se puede deshacer.',
|
||
'collections.listName': 'Nombre de la lista',
|
||
'collections.listNamePlaceholder': 'p. ej. Tokio 2025',
|
||
'collections.listColor': 'Color',
|
||
'collections.allSaved': 'Todos los guardados',
|
||
'collections.shared': 'Compartida',
|
||
|
||
'collections.empty.title': 'Aún no hay lugares',
|
||
'collections.empty.text': 'Guarda lugares de cualquier viaje para crear esta lista.',
|
||
'collections.empty.noMatchTitle': 'Sin coincidencias',
|
||
'collections.empty.noMatchText': 'Ningún lugar guardado coincide con tu filtro o búsqueda.',
|
||
'collections.empty.firstTitle': 'Empieza tu primera colección',
|
||
'collections.empty.firstText': 'Crea una lista para guardar lugares que quieras recordar entre viajes.',
|
||
|
||
'collections.view.grid': 'Cuadrícula',
|
||
'collections.view.list': 'Lista',
|
||
'collections.view.map': 'Mapa',
|
||
|
||
'collections.status.idea': 'Idea',
|
||
'collections.status.want': 'Quiero ir',
|
||
'collections.status.visited': 'Visitado',
|
||
'collections.status.filterAll': 'Todos',
|
||
'collections.status.cycleHint': 'toca para cambiar',
|
||
|
||
'collections.markVisited': 'Marcar como visitado',
|
||
'collections.markVisitedAll': 'Visitado en todas',
|
||
'collections.markVisitedSelection': 'Marcar como visitado en tus listas',
|
||
'collections.markVisitedNone': 'Ninguno de estos lugares está guardado en una lista',
|
||
'collections.markedVisited': 'Marcado como visitado',
|
||
'collections.markedVisitedTrip': '{count} lugares marcados como visitados',
|
||
|
||
'collections.copyToTrip': 'Copiar al viaje',
|
||
'collections.copyToTripTitle': 'Copiar al viaje',
|
||
'collections.copyN': 'Copiar {count} al viaje',
|
||
'collections.copyToTripSearch': 'Buscar viajes',
|
||
'collections.searchLists': 'Buscar listas',
|
||
'collections.copyToTripConfirm': 'Copiar',
|
||
'collections.noTrips': 'Aún no hay viajes',
|
||
'collections.alreadyInTrip': 'Ya está en este viaje',
|
||
'collections.copied': 'Copiado al viaje',
|
||
'collections.copiedCount': '{count} lugares copiados',
|
||
'collections.skippedDuplicates': '{count} duplicados omitidos',
|
||
'collections.copyNothing': 'Nada que copiar',
|
||
'collections.removeFromList': 'Quitar de la lista',
|
||
'collections.removeFromListConfirm': '¿Quitar este lugar de la lista?',
|
||
'collections.removeFromCollection': 'Quitar de la colección',
|
||
|
||
'collections.saved': 'Guardado en {name}',
|
||
'collections.savedUndo': 'Deshacer',
|
||
'collections.viewInCollection': 'Ver',
|
||
'collections.duplicateWarning': 'Este lugar ya está en la lista',
|
||
|
||
'collections.search': 'Buscar lugares',
|
||
'collections.selectMode': 'Seleccionar',
|
||
'collections.selectedCount': '{count} seleccionados',
|
||
|
||
'collections.pickList': 'Guardar en una lista',
|
||
'collections.pickListPlaceholder': 'Elige una lista',
|
||
'collections.addedToList': 'Añadido a {name}',
|
||
'collections.removedFromList': 'Quitado de {name}',
|
||
'collections.inLists': 'En tus listas',
|
||
'collections.otherLists': 'Añadir a una lista',
|
||
'collections.noListsYet': 'Crea primero una lista para guardar lugares.',
|
||
'collections.removedFromAll': 'Quitado de la colección',
|
||
'collections.picker.title': 'Lugares guardados',
|
||
'collections.picker.showMore': 'Mostrar {count} más',
|
||
'collections.picker.search': 'Busca en tus lugares guardados',
|
||
'collections.picker.empty': 'No hay lugares guardados para añadir',
|
||
'collections.picker.hint': 'Elige un lugar de tus colecciones',
|
||
'collections.picker.use': 'Usar',
|
||
|
||
'collections.share.title': 'Compartir lista',
|
||
'collections.share.titleNamed': 'Compartir «{name}»',
|
||
'collections.share.button': 'Compartir',
|
||
'collections.share.members': 'Miembros',
|
||
'collections.share.owner': 'Propietario',
|
||
'collections.share.you': 'tú',
|
||
'collections.share.pending': 'invitación pendiente',
|
||
'collections.share.accepted': 'aceptada',
|
||
'collections.share.invite': 'Invitar a alguien',
|
||
'collections.share.inviteUser': 'Seleccionar usuario',
|
||
'collections.share.sendInvite': 'Enviar invitación',
|
||
'collections.share.inviteHint': 'Las personas invitadas pueden ver y editar esta lista.',
|
||
'collections.share.noUsers': 'No hay usuarios disponibles para invitar.',
|
||
'collections.share.memberHint': 'Solo el propietario de la lista puede invitar o quitar personas.',
|
||
'collections.share.cancel': 'Cancelar',
|
||
'collections.share.leave': 'Salir de la lista',
|
||
'collections.share.leaveConfirm':
|
||
'¿Salir de esta lista compartida? Perderás el acceso hasta que vuelvan a invitarte.',
|
||
'collections.share.left': 'Has salido de la lista',
|
||
'collections.share.remove': 'Quitar',
|
||
|
||
'collections.invites.title': 'Invitaciones',
|
||
'collections.invites.from': 'de',
|
||
'collections.invites.accept': 'Aceptar',
|
||
'collections.invites.decline': 'Rechazar',
|
||
'collections.invites.received': 'Tienes una nueva invitación a una lista',
|
||
'collections.invite.sent': 'Invitación enviada',
|
||
'collections.invite.error': 'No se pudo enviar la invitación',
|
||
'collections.invite.accepted': 'Invitación aceptada',
|
||
'collections.invite.declined': 'Invitación rechazada',
|
||
|
||
'collections.widget.title': 'Colecciones',
|
||
'collections.widget.empty': 'Aún no hay lugares guardados',
|
||
'collections.widget.savedCount': '{count} guardados',
|
||
'collections.labels.title': 'Etiquetas',
|
||
'collections.labels.manage': 'Gestionar etiquetas',
|
||
'collections.labels.add': 'Añadir etiqueta',
|
||
'collections.labels.name': 'Nombre de la etiqueta',
|
||
'collections.labels.namePlaceholder': 'p. ej. Berlin',
|
||
'collections.labels.assign': 'Asignar etiqueta',
|
||
'collections.labels.assignN': 'Añadir etiquetas a {count} lugares',
|
||
'collections.labels.assignedCount': 'Etiquetados {count} lugares',
|
||
'collections.labels.empty': 'Aún no hay etiquetas',
|
||
'collections.labels.emptyHint': 'Crea primero una etiqueta para agrupar lugares en esta lista.',
|
||
};
|
||
|
||
export default collection;
|