Files
TREK/shared/src/i18n/uk/collection.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

192 lines
12 KiB
TypeScript

import type { TranslationStrings } from '../types';
const collection: TranslationStrings = {
'collections.saveNToList': 'Зберегти {count} до списку',
'collections.addedNToList': 'Збережено {count} до {name}',
'collections.noOwnLists': 'У вас ще немає списків',
'collections.saveToListHint': 'Дублікати пропускаються автоматично',
'collections.role.label': 'Роль',
'collections.role.viewer': 'Глядач',
'collections.role.editor': 'Редактор',
'collections.role.admin': 'Адмін',
'collections.picker.allLists': 'Усі списки',
'collections.select': 'Вибрати',
'collections.selectAll': 'Вибрати все',
'collections.deselectAll': 'Зняти вибір',
'collections.moveToList': 'Перемістити до списку',
'collections.duplicateToList': 'Дублювати до списку',
'collections.moveToListTitle': 'Перемістити {count} до іншого списку',
'collections.duplicateToListTitle': 'Дублювати {count} до іншого списку',
'collections.noOtherLists': 'Інших списків поки немає',
'collections.movedCount': 'Переміщено місць: {count}',
'collections.duplicatedCount': 'Продубльовано місць: {count}',
'collections.placeCount': '{count} місць',
'collections.category': 'Категорія',
'collections.noCategory': 'Без категорії',
'collections.editListTitle': 'Редагувати список',
'collections.coverImage': 'Обкладинка',
'collections.addCover': 'Додати обкладинку',
'collections.changeCover': 'Змінити обкладинку',
'collections.description': 'Опис',
'collections.descriptionPlaceholder': 'Додайте опис…',
'collections.links': 'Посилання',
'collections.linkLabel': 'Підпис',
'collections.addLink': 'Додати посилання',
'collections.addDetails': 'Додати деталі',
'collections.addPlace': 'Додати місце',
'collections.addPlaceSearch': 'Пошук місця…',
'collections.addPlaceHint': 'Знайдіть, щоб додати місце до цього списку',
'collections.importFromTrip': 'Імпорт із подорожі',
'collections.importTitle': 'Імпорт із подорожі',
'collections.importDoneTitle': 'Імпорт завершено',
'collections.importPickTripHint': 'Вибери подорож і перенеси її місця до списку {name}.',
'collections.importNoTrips': 'Подорожей поки немає',
'collections.importPlacesCount': '{count} місць',
'collections.importSearchPlaces': 'Пошук місць…',
'collections.importOnlyNew': 'Лише нові',
'collections.importSelectAll': 'Вибрати все',
'collections.importClearSelection': 'Зняти вибір',
'collections.importAlreadySaved': 'Уже збережено',
'collections.importUnscheduled': 'Без дня',
'collections.importOnDay': 'День {count}',
'collections.importSelectedCount': 'Вибрано: {count}',
'collections.importAction': 'Імпортувати {count}',
'collections.importEmptyTrip': 'У цій подорожі ще немає місць',
'collections.importNothingNew': 'Усе з цієї подорожі вже є у списку',
'collections.importDone': 'Додано місць: {count}',
'collections.importDoneSkipped': '{count} уже були у списку й лишилися без змін',
'collections.importDoneClean': 'Тепер усі вони у списку {name}',
'collections.sort.default': 'За замовчуванням',
'collections.sort.nameAsc': 'Назва (А–Я)',
'collections.coordinates': 'Координати',
'collections.showList': 'Показати список',
'collections.expandMap': 'Розгорнути карту',
'collections.hero.mine': 'Моя колекція',
'collections.hero.shared': 'Поділено з вами',
'collections.hero.all': 'Ваша бібліотека',
'collections.title': 'Колекції',
'collections.subtitle': 'Ваші збережені місця, упорядковані у списки',
'collections.newList': 'Новий список',
'collections.create': 'Створити',
'collections.editList': 'Перейменувати',
'collections.listMenu': 'Параметри списку',
'collections.deleteList': 'Видалити список',
'collections.deleteListConfirm': 'Це назавжди видалить список і всі збережені в ньому місця. Це не можна скасувати.',
'collections.listName': 'Назва списку',
'collections.listNamePlaceholder': 'напр., Токіо 2025',
'collections.listColor': 'Колір',
'collections.allSaved': 'Усі збережені',
'collections.shared': 'Спільний',
'collections.empty.title': 'Поки немає місць',
'collections.empty.text': 'Зберігайте місця з будь-якої подорожі, щоб наповнити цей список.',
'collections.empty.noMatchTitle': 'Немає збігів',
'collections.empty.noMatchText': 'Жодне збережене місце не відповідає вашому фільтру чи пошуку.',
'collections.empty.firstTitle': 'Створіть свою першу колекцію',
'collections.empty.firstText': 'Створіть список, щоб зберігати місця, які хочете пам’ятати між подорожами.',
'collections.view.grid': 'Сітка',
'collections.view.list': 'Список',
'collections.view.map': 'Карта',
'collections.status.idea': 'Ідея',
'collections.status.want': 'Хочу відвідати',
'collections.status.visited': 'Відвідано',
'collections.status.filterAll': 'Усі',
'collections.status.cycleHint': 'торкніться, щоб змінити',
'collections.markVisited': 'Позначити як відвідане',
'collections.markVisitedAll': 'Відвідано всюди',
'collections.markVisitedSelection': 'Позначити відвіданим у списках',
'collections.markVisitedNone': 'Жодне з цих місць не збережене у списку',
'collections.markedVisited': 'Позначено як відвідане',
'collections.markedVisitedTrip': 'Позначено місць як відвідані: {count}',
'collections.copyToTrip': 'Скопіювати в подорож',
'collections.copyToTripTitle': 'Скопіювати в подорож',
'collections.copyN': 'Скопіювати {count} у подорож',
'collections.copyToTripSearch': 'Пошук подорожей',
'collections.searchLists': 'Пошук списків',
'collections.copyToTripConfirm': 'Скопіювати',
'collections.noTrips': 'Поки немає подорожей',
'collections.alreadyInTrip': 'Уже в цій подорожі',
'collections.copied': 'Скопійовано в подорож',
'collections.copiedCount': 'Скопійовано місць: {count}',
'collections.skippedDuplicates': 'Пропущено дублікатів: {count}',
'collections.copyNothing': 'Нема чого копіювати',
'collections.removeFromList': 'Видалити зі списку',
'collections.removeFromListConfirm': 'Видалити це місце зі списку?',
'collections.removeFromCollection': 'Видалити з колекції',
'collections.saved': 'Збережено в {name}',
'collections.savedUndo': 'Скасувати',
'collections.viewInCollection': 'Відкрити',
'collections.duplicateWarning': 'Це місце вже є у списку',
'collections.search': 'Пошук місць',
'collections.selectMode': 'Вибрати',
'collections.selectedCount': 'Вибрано: {count}',
'collections.pickList': 'Зберегти у список',
'collections.pickListPlaceholder': 'Виберіть список',
'collections.addedToList': 'Додано до {name}',
'collections.removedFromList': 'Видалено з {name}',
'collections.inLists': 'У ваших списках',
'collections.otherLists': 'Додати до списку',
'collections.noListsYet': 'Спершу створіть список, щоб зберігати місця.',
'collections.removedFromAll': 'Видалено з колекції',
'collections.picker.title': 'Збережені місця',
'collections.picker.showMore': 'Показати ще {count}',
'collections.picker.search': 'Пошук збережених місць',
'collections.picker.empty': 'Немає збережених місць для додавання',
'collections.picker.hint': 'Виберіть місце зі своїх колекцій',
'collections.picker.use': 'Використати',
'collections.share.title': 'Поділитися списком',
'collections.share.titleNamed': 'Поділитися «{name}»',
'collections.share.button': 'Поділитися',
'collections.share.members': 'Учасники',
'collections.share.owner': 'Власник',
'collections.share.you': 'ви',
'collections.share.pending': 'очікує запрошення',
'collections.share.accepted': 'прийнято',
'collections.share.invite': 'Запросити',
'collections.share.inviteUser': 'Виберіть користувача',
'collections.share.sendInvite': 'Надіслати запрошення',
'collections.share.inviteHint': 'Запрошені можуть переглядати та редагувати цей список.',
'collections.share.noUsers': 'Немає користувачів для запрошення.',
'collections.share.memberHint': 'Лише власник списку може запрошувати або вилучати учасників.',
'collections.share.cancel': 'Скасувати',
'collections.share.leave': 'Покинути список',
'collections.share.leaveConfirm': 'Покинути цей спільний список? Ви втратите доступ, доки вас не запросять знову.',
'collections.share.left': 'Ви покинули список',
'collections.share.remove': 'Видалити',
'collections.invites.title': 'Запрошення',
'collections.invites.from': 'від',
'collections.invites.accept': 'Прийняти',
'collections.invites.decline': 'Відхилити',
'collections.invites.received': 'У вас нове запрошення до списку',
'collections.invite.sent': 'Запрошення надіслано',
'collections.invite.error': 'Не вдалося надіслати запрошення',
'collections.invite.accepted': 'Запрошення прийнято',
'collections.invite.declined': 'Запрошення відхилено',
'collections.widget.title': 'Колекції',
'collections.widget.empty': 'Поки немає збережених місць',
'collections.widget.savedCount': 'Збережено: {count}',
'collections.labels.title': 'Мітки',
'collections.labels.manage': 'Керувати мітками',
'collections.labels.add': 'Додати мітку',
'collections.labels.name': 'Назва мітки',
'collections.labels.namePlaceholder': 'напр., Berlin',
'collections.labels.assign': 'Призначити мітку',
'collections.labels.assignN': 'Додати мітки до {count} місць',
'collections.labels.assignedCount': 'Позначено місць: {count}',
'collections.labels.empty': 'Поки немає міток',
'collections.labels.emptyHint': 'Спершу створіть мітку, щоб групувати місця в цьому списку.',
};
export default collection;