mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 18:04:18 +00:00
2c06c9904b
Sharing a list works between people on the same TREK. This is the other case: giving one to somebody who runs their own, or keeping a copy. Export sits beside Edit and Share in the list header and downloads the open list; Import sits beside New list in the rail, reads a file, shows what is in it and makes a new list of it. Desktop only, which the route already decides. What travels is what somebody wrote down: the list's name, colour and description, its labels, and each place with its address, coordinates, notes, status, contact details, category name and labels. A file is dull JSON on purpose, so it can be read and edited by a person. What does not travel is everything that only means something on the instance it came from. Ids of every kind, since the receiver issues its own and a category crosses over by name. Star ratings and members, because a rating is an opinion somebody gave the people on that list. Provenance into trips, which points at rows the receiver cannot see. And an image path under /uploads, which resolves on the sender's server: only an absolute https URL survives. A file is a stranger's JSON and is read as one. It is parsed in the browser that chose it and never uploaded; the parsed list goes through the same contract on both sides; and a link that is not http(s) arrives as nothing rather than as an anchor. Strict where it must refuse, forgiving where it can drop: a file that does not say what it is never reaches the importer, while one unreadable place inside it is skipped and counted, and one bad field on a good place costs that field alone. An import is always a new list. Importing into an existing one would mean deciding what happens to a place that is already there, and every answer to that is a merge nobody asked for.
211 lines
9.7 KiB
TypeScript
211 lines
9.7 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
||
|
||
const collection: TranslationStrings = {
|
||
'collections.saveNToList': 'Save {count} to a list',
|
||
'collections.addedNToList': 'Saved {count} to {name}',
|
||
'collections.noOwnLists': 'You have no lists yet',
|
||
'collections.saveToListHint': 'Duplicates are skipped automatically',
|
||
'collections.role.label': 'Role',
|
||
'collections.role.viewer': 'Viewer',
|
||
'collections.role.editor': 'Editor',
|
||
'collections.role.admin': 'Admin',
|
||
'collections.picker.allLists': 'All lists',
|
||
'collections.select': 'Select',
|
||
'collections.selectAll': 'Select all',
|
||
'collections.deselectAll': 'Deselect all',
|
||
'collections.moveToList': 'Move to list',
|
||
'collections.duplicateToList': 'Duplicate to list',
|
||
'collections.moveToListTitle': 'Move {count} to another list',
|
||
'collections.duplicateToListTitle': 'Duplicate {count} to another list',
|
||
'collections.noOtherLists': 'No other lists yet',
|
||
'collections.movedCount': 'Moved {count} places',
|
||
'collections.duplicatedCount': 'Duplicated {count} places',
|
||
'collections.placeCount': '{count} places',
|
||
'collections.category': 'Category',
|
||
'collections.noCategory': 'No category',
|
||
'collections.editListTitle': 'Edit list',
|
||
'collections.coverImage': 'Cover image',
|
||
'collections.addCover': 'Add cover',
|
||
'collections.changeCover': 'Change cover',
|
||
'collections.description': 'Description',
|
||
'collections.descriptionPlaceholder': 'Add a description…',
|
||
'collections.links': 'Links',
|
||
'collections.linkLabel': 'Label',
|
||
'collections.addLink': 'Add link',
|
||
'collections.addDetails': 'Add details',
|
||
'collections.addPlace': 'Add a place',
|
||
'collections.addPlaceSearch': 'Search for a place…',
|
||
'collections.addPlaceHint': 'Search to add a place to this list',
|
||
'collections.importFromTrip': 'Import from a trip',
|
||
'collections.importTitle': 'Import from a trip',
|
||
'collections.importDoneTitle': 'Import finished',
|
||
'collections.importPickTripHint': 'Pick a trip and take its places into {name}.',
|
||
'collections.importNoTrips': 'No trips yet',
|
||
'collections.importPlacesCount': '{count} places',
|
||
'collections.importSearchPlaces': 'Search places…',
|
||
'collections.importOnlyNew': 'Only new',
|
||
'collections.importSelectAll': 'Select all',
|
||
'collections.importClearSelection': 'Clear selection',
|
||
'collections.importAlreadySaved': 'Already saved',
|
||
'collections.importUnscheduled': 'Unscheduled',
|
||
'collections.importOnDay': 'Day {count}',
|
||
'collections.importSelectedCount': '{count} selected',
|
||
'collections.importAction': 'Import {count}',
|
||
'collections.importEmptyTrip': 'This trip has no places yet',
|
||
'collections.importNothingNew': 'Everything from this trip is already on this list',
|
||
'collections.importDone': '{count} places added',
|
||
'collections.importDoneSkipped': '{count} were already on the list and stayed as they were',
|
||
'collections.importDoneClean': 'They are all in {name} now',
|
||
'collections.sort.default': 'Default',
|
||
'collections.sort.nameAsc': 'Name (A–Z)',
|
||
'collections.coordinates': 'Coordinates',
|
||
'collections.showList': 'Show list',
|
||
'collections.expandMap': 'Expand map',
|
||
'collections.hero.mine': 'My collection',
|
||
'collections.hero.shared': 'Shared with you',
|
||
'collections.hero.all': 'Your library',
|
||
'collections.title': 'Collections',
|
||
'collections.subtitle': 'Your saved places, organised into lists',
|
||
|
||
'collections.newList': 'New list',
|
||
'collections.create': 'Create',
|
||
'collections.editList': 'Rename',
|
||
'collections.listMenu': 'List options',
|
||
'collections.deleteList': 'Delete list',
|
||
'collections.deleteListConfirm':
|
||
'This permanently deletes the list and all of its saved places. This cannot be undone.',
|
||
'collections.listName': 'List name',
|
||
'collections.listNamePlaceholder': 'e.g. Tokyo 2025',
|
||
'collections.listColor': 'Colour',
|
||
'collections.allSaved': 'All saved',
|
||
'collections.shared': 'Shared',
|
||
|
||
'collections.empty.title': 'No places yet',
|
||
'collections.empty.text': 'Save places from any trip to build this list.',
|
||
'collections.empty.noMatchTitle': 'No matches',
|
||
'collections.empty.noMatchText': 'No saved places match your filter or search.',
|
||
'collections.empty.firstTitle': 'Start your first collection',
|
||
'collections.empty.firstText': 'Create a list to save places you want to remember across trips.',
|
||
|
||
'collections.view.grid': 'Grid',
|
||
'collections.view.list': 'List',
|
||
'collections.view.map': 'Map',
|
||
|
||
'collections.status.idea': 'Idea',
|
||
'collections.status.want': 'Want to go',
|
||
'collections.status.visited': 'Visited',
|
||
'collections.status.filterAll': 'All',
|
||
'collections.status.cycleHint': 'tap to change',
|
||
|
||
'collections.markVisited': 'Mark visited',
|
||
'collections.markVisitedAll': 'Visited everywhere',
|
||
'collections.markVisitedSelection': 'Mark visited in your lists',
|
||
'collections.markVisitedNone': 'None of these places are saved in a list',
|
||
'collections.markedVisited': 'Marked as visited',
|
||
'collections.markedVisitedTrip': '{count} places marked as visited',
|
||
|
||
'collections.copyToTrip': 'Copy to trip',
|
||
'collections.copyToTripTitle': 'Copy to trip',
|
||
'collections.copyN': 'Copy {count} to trip',
|
||
'collections.copyToTripSearch': 'Search trips',
|
||
'collections.searchLists': 'Search lists',
|
||
'collections.copyToTripConfirm': 'Copy',
|
||
'collections.noTrips': 'No trips yet',
|
||
'collections.alreadyInTrip': 'Already in this trip',
|
||
'collections.copied': 'Copied to trip',
|
||
'collections.copiedCount': 'Copied {count} places',
|
||
'collections.skippedDuplicates': 'Skipped {count} duplicates',
|
||
'collections.copyNothing': 'Nothing to copy',
|
||
'collections.removeFromList': 'Remove from list',
|
||
'collections.removeFromListConfirm': 'Remove this place from the list?',
|
||
'collections.removeFromCollection': 'Remove from Collection',
|
||
|
||
'collections.saved': 'Saved to {name}',
|
||
'collections.savedUndo': 'Undo',
|
||
'collections.viewInCollection': 'View',
|
||
'collections.duplicateWarning': 'This place is already in the list',
|
||
|
||
'collections.search': 'Search places',
|
||
'collections.selectMode': 'Select',
|
||
'collections.selectedCount': '{count} selected',
|
||
|
||
'collections.pickList': 'Save to list',
|
||
'collections.pickListPlaceholder': 'Choose a list',
|
||
'collections.addedToList': 'Added to {name}',
|
||
'collections.removedFromList': 'Removed from {name}',
|
||
'collections.inLists': 'In your lists',
|
||
'collections.otherLists': 'Add to a list',
|
||
'collections.noListsYet': 'Create a list first to save places.',
|
||
'collections.removedFromAll': 'Removed from collection',
|
||
'collections.picker.title': 'Saved places',
|
||
'collections.picker.showMore': 'Show {count} more',
|
||
'collections.picker.search': 'Search your saved places',
|
||
'collections.picker.empty': 'No saved places to add',
|
||
'collections.picker.hint': 'Pick a place from your collections',
|
||
'collections.picker.use': 'Use',
|
||
|
||
// Export / import a list as a file (#2198)
|
||
'collections.file.export': 'Export',
|
||
'collections.file.exportTitle': 'Download this list as a file',
|
||
'collections.file.importButton': 'Import a list from a file',
|
||
'collections.file.importTitle': 'Import a list',
|
||
'collections.file.choose': 'Choose a list file',
|
||
'collections.file.confirm': 'Import',
|
||
'collections.file.change': 'Change',
|
||
'collections.file.labelCount': '{count} labels',
|
||
'collections.file.hint':
|
||
'The places arrive as a new list of your own. Ratings, members and uploaded photos stay behind.',
|
||
'collections.file.done': '{count} places imported',
|
||
'collections.file.doneSkipped': '{count} places imported, {skipped} skipped',
|
||
'collections.file.errorTooLarge': 'That file is too large to be a list.',
|
||
'collections.file.errorUnreadable': 'That file could not be read.',
|
||
'collections.file.errorNotACollection': 'That is not a TREK list file.',
|
||
|
||
'collections.share.title': 'Share list',
|
||
'collections.share.titleNamed': 'Share “{name}”',
|
||
'collections.share.button': 'Share',
|
||
'collections.share.members': 'Members',
|
||
'collections.share.owner': 'Owner',
|
||
'collections.share.you': 'you',
|
||
'collections.share.pending': 'pending invite',
|
||
'collections.share.accepted': 'accepted',
|
||
'collections.share.invite': 'Invite someone',
|
||
'collections.share.inviteUser': 'Select a user',
|
||
'collections.share.sendInvite': 'Send invite',
|
||
'collections.share.inviteHint': 'Invited people can view and edit this list.',
|
||
'collections.share.noUsers': 'No users available to invite.',
|
||
'collections.share.memberHint': 'Only the list owner can invite or remove people.',
|
||
'collections.share.cancel': 'Cancel',
|
||
'collections.share.leave': 'Leave list',
|
||
'collections.share.leaveConfirm': 'Leave this shared list? You will lose access until you are invited again.',
|
||
'collections.share.left': 'You left the list',
|
||
'collections.share.remove': 'Remove',
|
||
|
||
'collections.invites.title': 'Invites',
|
||
'collections.invites.from': 'from',
|
||
'collections.invites.accept': 'Accept',
|
||
'collections.invites.decline': 'Decline',
|
||
'collections.invites.received': 'You have a new list invite',
|
||
'collections.invite.sent': 'Invite sent',
|
||
'collections.invite.error': 'Could not send invite',
|
||
'collections.invite.accepted': 'Invite accepted',
|
||
'collections.invite.declined': 'Invite declined',
|
||
|
||
'collections.widget.title': 'Collections',
|
||
'collections.widget.empty': 'No saved places yet',
|
||
'collections.widget.savedCount': '{count} saved',
|
||
|
||
'collections.labels.title': 'Labels',
|
||
'collections.labels.manage': 'Manage labels',
|
||
'collections.labels.add': 'Add label',
|
||
'collections.labels.name': 'Label name',
|
||
'collections.labels.namePlaceholder': 'e.g. Berlin',
|
||
'collections.labels.assign': 'Assign label',
|
||
'collections.labels.assignN': 'Add labels to {count} places',
|
||
'collections.labels.assignedCount': 'Labelled {count} places',
|
||
'collections.labels.empty': 'No labels yet',
|
||
'collections.labels.emptyHint': 'Create a label first to group places in this list.',
|
||
};
|
||
|
||
export default collection;
|