Files
TREK/shared/src/i18n/ca/journey.ts
T
Maurice df3edac7b9 feat: six community requests — import dedup, accommodations in the feed, OAuth refresh race, visited-from-trip, journal jumps, phone packing rows (#1915)
* 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.
2026-08-12 17:43:22 +02:00

249 lines
13 KiB
TypeScript

import type { TranslationStrings } from '../types';
const journey: TranslationStrings = {
'journey.search.placeholder': 'Cerca viatges…',
'journey.search.noResults': 'Cap viatge coincideix amb "{query}"',
'journey.title': 'Travesia',
'journey.subtitle': 'Registra els teus viatges en temps real',
'journey.new': 'Travesia nova',
'journey.create': 'Crea',
'journey.titlePlaceholder': 'A on vas?',
'journey.empty': 'Encara no hi ha travesies',
'journey.emptyHint': 'Comença a documentar el teu proper viatge',
'journey.deleted': 'Travesia eliminada',
'journey.createError': "No s'ha pogut crear la travesia",
'journey.deleteError': "No s'ha pogut eliminar la travesia",
'journey.deleteConfirmTitle': 'Elimina',
'journey.deleteConfirmMessage': 'Vols eliminar "{title}"? Aquesta acció no es pot desfer.',
'journey.deleteConfirmGeneric': 'Estàs segur que vols eliminar això?',
'journey.notFound': 'Travesia no trobada',
'journey.photos': 'Fotos',
'journey.timelineEmpty': 'Encara no hi ha parades',
'journey.timelineEmptyHint': "Afegeix un registre d'ubicació o escriu una entrada de diari per començar",
'journey.status.draft': 'Esborrany',
'journey.status.active': 'Activa',
'journey.status.completed': 'Completada',
'journey.status.upcoming': 'Propera',
'journey.status.archived': 'Arxivat',
'journey.checkin.add': 'Registra la ubicació',
'journey.checkin.namePlaceholder': 'Nom del lloc',
'journey.checkin.notesPlaceholder': 'Notes (opcional)',
'journey.checkin.save': 'Desa',
'journey.checkin.error': "No s'ha pogut desar el registre",
'journey.entry.add': 'Diari',
'journey.entry.edit': "Edita l'entrada",
'journey.entry.titlePlaceholder': 'Títol (opcional)',
'journey.entry.bodyPlaceholder': 'Què va passar avui?',
'journey.entry.save': 'Desa',
'journey.entry.error': "No s'ha pogut desar l'entrada",
'journey.photo.add': 'Foto',
'journey.photo.uploadError': 'Error en pujar',
'journey.share.share': 'Comparteix',
'journey.share.public': 'Públic',
'journey.share.linkCopied': 'Enllaç públic copiat',
'journey.share.disabled': 'Compartició pública desactivada',
'journey.editor.titlePlaceholder': 'Dona un nom a aquest moment...',
'journey.editor.bodyPlaceholder': "Explica la història d'aquest dia...",
'journey.editor.placePlaceholder': 'Ubicació (opcional)',
'journey.editor.tagsPlaceholder': 'Etiquetes: joia amagada, millor menjar, cal tornar...',
'journey.visibility.private': 'Privat',
'journey.visibility.shared': 'Compartit',
'journey.visibility.public': 'Públic',
'journey.emptyState.title': 'La teva història comença aquí',
'journey.emptyState.subtitle': 'Registra una ubicació o escriu la teva primera entrada de diari',
'journey.frontpage.subtitle': 'Converteix els teus viatges en històries que mai no oblidaràs',
'journey.frontpage.createJourney': 'Crea una travesia',
'journey.frontpage.activeJourney': 'Travesia activa',
'journey.frontpage.latestJourney': 'Última travesia',
'journey.frontpage.allJourneys': 'Totes les travesies',
'journey.frontpage.journeys': 'travesies',
'journey.frontpage.createNew': 'Crea una travesia nova',
'journey.frontpage.createNewSub': 'Tria viatges, escriu històries, comparteix les teves aventures',
'journey.frontpage.live': 'En viu',
'journey.frontpage.synced': 'Sincronitzat',
'journey.frontpage.continueWriting': 'Continua escrivint',
'journey.frontpage.updated': 'Actualitzat {time}',
'journey.frontpage.suggestionLabel': 'El viatge acaba de terminar',
'journey.frontpage.suggestionText': 'Converteix <strong>{title}</strong> en una travesia',
'journey.frontpage.dismiss': 'Descarta',
'journey.frontpage.journeyName': 'Nom de la travesia',
'journey.frontpage.namePlaceholder': 'p. ex. Sud-est Asiàtic 2026',
'journey.frontpage.selectTrips': 'Selecciona viatges',
'journey.frontpage.tripsSelected': 'viatges seleccionats',
'journey.frontpage.trips': 'viatges',
'journey.frontpage.placesImported': "llocs s'importaran",
'journey.frontpage.places': 'llocs',
'journey.detail.backToJourney': 'Torna a la travesia',
'journey.detail.syncedWithTrips': 'Sincronitzat amb viatges',
'journey.detail.addEntry': 'Afegeix una entrada',
'journey.detail.jumpToTop': 'Torna a dalt',
'journey.detail.jumpToLast': 'Ves a l’última entrada',
'journey.detail.newEntry': 'Entrada nova',
'journey.detail.editEntry': "Edita l'entrada",
'journey.detail.noEntries': 'Encara no hi ha entrades',
'journey.detail.noEntriesHint': 'Afegeix un viatge per començar amb entrades preliminars',
'journey.detail.noPhotos': 'Encara no hi ha fotos',
'journey.detail.noPhotosHint': "Puja fotos a les entrades o explora la teva biblioteca d'Immich/Synology",
'journey.detail.journeyStats': 'Estadístiques de la travesia',
'journey.detail.syncedTrips': 'Viatges sincronitzats',
'journey.detail.noTripsLinked': 'Encara no hi ha viatges vinculats',
'journey.detail.contributors': 'Col·laboradors',
'journey.detail.readMore': 'Llegeix-ne més',
'journey.detail.prosCons': 'Pros i contres',
'journey.detail.photos': 'fotos',
'journey.detail.day': 'Dia {number}',
'journey.detail.places': 'llocs',
'journey.stats.days': 'Dies',
'journey.stats.cities': 'Ciutats',
'journey.stats.entries': 'Entrades',
'journey.stats.photos': 'Fotos',
'journey.stats.places': 'Llocs',
'journey.skeletons.show': 'Mostra suggeriments',
'journey.skeletons.hide': 'Oculta suggeriments',
'journey.verdict.lovedIt': "M'ha encantat",
'journey.verdict.couldBeBetter': 'Podria millorar',
'journey.synced.places': 'llocs',
'journey.synced.synced': 'sincronitzat',
'journey.editor.discardChangesConfirm': 'Tens canvis sense desar. Els descartes?',
'journey.editor.uploadFailed': 'Error en pujar les fotos',
'journey.editor.uploadPhotos': 'Puja fotos',
'journey.editor.uploading': 'Pujant...',
'journey.editor.uploadingProgress': 'Pujant {done}/{total}…',
'journey.editor.uploadPartialFailed': '{failed} de {total} fotos van fallar — desa de nou per tornar-ho a intentar',
'journey.editor.fromGallery': 'Des de la galeria',
'journey.editor.allPhotosAdded': "Totes les fotos ja s'han afegit",
'journey.editor.writeStory': 'Escriu la teva història...',
'journey.editor.prosCons': 'Pros i contres',
'journey.editor.pros': 'Pros',
'journey.editor.cons': 'Contres',
'journey.editor.proPlaceholder': 'Una cosa genial...',
'journey.editor.conPlaceholder': 'No tan genial...',
'journey.editor.addAnother': 'Afegeix-ne un altre',
'journey.editor.date': 'Data',
'journey.editor.location': 'Ubicació',
'journey.editor.searchLocation': 'Cerca una ubicació...',
'journey.editor.mood': "Estat d'ànim",
'journey.editor.weather': 'Clima',
'journey.editor.photoFirst': '1r',
'journey.editor.makeFirst': 'Fes 1r',
'journey.editor.searching': 'Cercant...',
'journey.editor.useCurrentLocation': 'Utilitza la meva ubicació actual',
'journey.editor.locationPermissionDenied':
"S'ha denegat l'accés a la ubicació. Permet-lo a la configuració del navegador i torna-ho a provar.",
'journey.editor.locationTimeout': "S'ha esgotat el temps per obtenir la ubicació. Torna-ho a provar.",
'journey.editor.locationUnavailable': "No s'ha pogut determinar la teva ubicació.",
'journey.editor.locationInsecureContext': 'La ubicació requereix una connexió segura (HTTPS).',
'journey.mood.amazing': 'Increïble',
'journey.mood.good': 'Bé',
'journey.mood.neutral': 'Neutral',
'journey.mood.rough': 'Difícil',
'journey.weather.sunny': 'Assolellat',
'journey.weather.partly': 'Parcialment ennuvolat',
'journey.weather.cloudy': 'Ennuvolat',
'journey.weather.rainy': 'Plujós',
'journey.weather.stormy': 'Tempestuós',
'journey.weather.cold': 'Nevat',
'journey.trips.linkTrip': 'Vincula un viatge',
'journey.trips.searchTrip': 'Cerca un viatge',
'journey.trips.searchPlaceholder': 'Nom del viatge o destinació...',
'journey.trips.noTripsAvailable': 'No hi ha viatges disponibles',
'journey.trips.link': 'Vincula',
'journey.trips.tripLinked': 'Viatge vinculat',
'journey.trips.linkFailed': "No s'ha pogut vincular el viatge",
'journey.trips.addTrip': 'Afegeix un viatge',
'journey.trips.unlinkTrip': 'Desvincula el viatge',
'journey.trips.unlinkMessage':
'Vols desvincular "{title}"? Totes les entrades i fotos sincronitzades d\'aquest viatge s\'eliminaran permanentment. Aquesta acció no es pot desfer.',
'journey.trips.unlink': 'Desvincula',
'journey.trips.tripUnlinked': 'Viatge desvinculat',
'journey.trips.unlinkFailed': "No s'ha pogut desvincular el viatge",
'journey.trips.noTripsLinkedSettings': 'No hi ha viatges vinculats',
'journey.contributors.invite': 'Convida un col·laborador',
'journey.contributors.searchUser': 'Cerca un usuari',
'journey.contributors.searchPlaceholder': "Nom d'usuari o correu...",
'journey.contributors.noUsers': "No s'han trobat usuaris",
'journey.contributors.role': 'Rol',
'journey.contributors.added': 'Col·laborador afegit',
'journey.contributors.addFailed': "No s'ha pogut afegir el col·laborador",
'journey.share.publicShare': 'Compartició pública',
'journey.share.createLink': 'Crea un enllaç per compartir',
'journey.share.linkCreated': 'Enllaç per compartir creat',
'journey.share.createFailed': "No s'ha pogut crear l'enllaç",
'journey.share.copy': 'Copia',
'journey.share.copied': 'Copiat!',
'journey.share.timeline': 'Cronologia',
'journey.share.gallery': 'Galeria',
'journey.share.map': 'Mapa',
'journey.share.removeLink': "Elimina l'enllaç per compartir",
'journey.share.linkDeleted': 'Enllaç per compartir eliminat',
'journey.share.deleteFailed': "No s'ha pogut eliminar",
'journey.share.updateFailed': "No s'ha pogut actualitzar",
'journey.invite.role': 'Rol',
'journey.invite.viewer': 'Lector',
'journey.invite.editor': 'Editor',
'journey.invite.invite': 'Convida',
'journey.invite.inviting': 'Convidant...',
'journey.settings.title': 'Configuració de la travesia',
'journey.settings.coverImage': 'Imatge de portada',
'journey.settings.changeCover': 'Canvia la portada',
'journey.settings.addCover': 'Afegeix una imatge de portada',
'journey.settings.name': 'Nom',
'journey.settings.subtitle': 'Subtítol',
'journey.settings.subtitlePlaceholder': 'p. ex. Tailàndia, Vietnam i Cambodja',
'journey.settings.endJourney': 'Arxiva el viatge',
'journey.settings.reopenJourney': 'Restaura el viatge',
'journey.settings.archived': 'Viatge arxivat',
'journey.settings.reopened': 'Viatge reobert',
'journey.settings.endDescription': 'Amaga la insígnia En Viu. Pots reobrir-lo en qualsevol moment.',
'journey.settings.delete': 'Elimina',
'journey.settings.deleteJourney': 'Elimina la travesia',
'journey.settings.deleteMessage': 'Vols eliminar "{title}"? Totes les entrades i fotos es perdran.',
'journey.settings.saved': 'Configuració desada',
'journey.settings.saveFailed': "No s'ha pogut desar",
'journey.settings.coverUpdated': 'Portada actualitzada',
'journey.settings.coverFailed': 'Error en pujar',
'journey.settings.failedToDelete': 'Error en eliminar',
'journey.entries.deleteTitle': "Elimina l'entrada",
'journey.photosUploaded': '{count} fotos pujades',
'journey.photosUploadFailed': "Algunes fotos no s'han pogut pujar",
'journey.photosAdded': '{count} fotos afegides',
'journey.public.notFound': 'No trobat',
'journey.public.notFoundMessage': "Aquesta travesia no existeix o l'enllaç ha caducat.",
'journey.public.readOnly': 'Només lectura · Travesia pública',
'journey.public.tagline': 'Kit de recursos i exploració de viatges',
'journey.public.sharedVia': 'Compartit mitjançant',
'journey.public.madeWith': 'Fet amb',
'journey.pdf.journeyBook': 'Llibre de travesia',
'journey.pdf.madeWith': 'Fet amb TREK',
'journey.pdf.day': 'Dia',
'journey.pdf.theEnd': 'Fi',
'journey.pdf.saveAsPdf': 'Desa com a PDF',
'journey.pdf.pages': 'pàgines',
'journey.picker.tripPeriod': 'Període del viatge',
'journey.picker.dateRange': 'Rang de dates',
'journey.picker.allPhotos': 'Totes les fotos',
'journey.picker.albums': 'Àlbums',
'journey.picker.selected': 'seleccionats',
'journey.picker.addTo': 'Afegeix a',
'journey.picker.newGallery': 'Galeria nova',
'journey.picker.selectAll': 'Selecciona-ho tot',
'journey.picker.deselectAll': 'Deselecciona-ho tot',
'journey.picker.noAlbums': "No s'han trobat àlbums",
'journey.picker.selectDate': 'Selecciona una data',
'journey.picker.search': 'Cerca',
'journey.detail.journeyTab': 'Travesia',
'journey.contributors.remove': 'Elimina el col·laborador',
'journey.contributors.removeConfirm': "Vols eliminar {username} d'aquesta travesia?",
'journey.contributors.removed': 'Col·laborador eliminat',
'journey.contributors.removeFailed': "No s'ha pogut eliminar el col·laborador",
'journey.editor.externalPhotos': 'External photos', // en-fallback
'journey.editor.externalPhotosFor': 'Photos for {date}', // en-fallback
'journey.editor.externalPhotosNearby': 'Nearby photos first', // en-fallback
'journey.editor.externalPhotosNoLocation': 'All photos from this day', // en-fallback
'journey.editor.externalPhotosQueued': 'queued', // en-fallback
'journey.editor.externalPhotosUnavailable': 'No connected photo providers are available.', // en-fallback
'journey.editor.externalPhotosPartialFailed': '{failed} photo groups failed — save again to retry', // en-fallback
'journey.picker.day': 'This day', // en-fallback
};
export default journey;