mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +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
11 KiB
TypeScript
194 lines
11 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': 'مثال: برلين',
|
|
'collections.labels.assign': 'تعيين تسمية',
|
|
'collections.labels.assignN': 'إضافة تسميات إلى {count} أماكن',
|
|
'collections.labels.assignedCount': 'تمت تسمية {count} أماكن',
|
|
'collections.labels.empty': 'لا توجد تسميات بعد',
|
|
'collections.labels.emptyHint': 'أنشئ تسمية أولًا لتجميع الأماكن في هذه القائمة.',
|
|
};
|
|
|
|
export default collection;
|