mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 06:37:33 +00:00
feat(collections): backend for the Overall Places addon (#1081)
Adds the Collections addon backend: a server-wide-per-user library of saved places, independent of any trip, with multiple named lists, an idea/want/visited status, and Vacay-style fusion invitations to share a list with other users. - Data: collection / collection_members / collection_places / collection_place_tags tables (+ migration and baseline schema). Saved places carry the owner plus a nullable saved_by so a member deleting their account can't drop shared content. - Service: list + place CRUD with owner-or-accepted-member visibility, dedup, status, save-from-trip and copy-to-trip (reusing the trip copy column list), and the full fusion-invitation state machine mirrored from vacay (send / accept / decline / cancel / leave) with a websocket broadcast and an invite notification. Deleting a list snapshots its members and notifies them. - NestJS module + addon guard (404 before auth), registered in the app module. - Widens the place photo cache reference check to count collection places so the nightly sweep no longer evicts photos a saved place still uses. - collection_invite notification wired across all 22 locales.
This commit is contained in:
@@ -0,0 +1,190 @@
|
||||
import { z } from 'zod';
|
||||
import { placeCategorySchema } from '../place/place.schema';
|
||||
import { tagSchema } from '../tag/tag.schema';
|
||||
|
||||
export const COLLECTION_STATUSES = ['idea', 'want', 'visited'] as const;
|
||||
export const collectionStatusSchema = z.enum(COLLECTION_STATUSES).catch('idea').default('idea');
|
||||
export type CollectionStatus = (typeof COLLECTION_STATUSES)[number];
|
||||
|
||||
/** A saved place — assignmentPlace minus itinerary, plus status + provenance. */
|
||||
export const collectionPlaceSchema = z.object({
|
||||
id: z.number(),
|
||||
collection_id: z.number(),
|
||||
owner_id: z.number().optional(),
|
||||
saved_by: z.number().nullable().optional(),
|
||||
name: z.string(),
|
||||
description: z.string().nullable().optional(),
|
||||
lat: z.number().nullable().optional(),
|
||||
lng: z.number().nullable().optional(),
|
||||
address: z.string().nullable().optional(),
|
||||
category_id: z.number().nullable().optional(),
|
||||
price: z.number().nullable().optional(),
|
||||
currency: z.string().nullable().optional(),
|
||||
notes: z.string().nullable().optional(),
|
||||
image_url: z.string().nullable().optional(),
|
||||
google_place_id: z.string().nullable().optional(),
|
||||
google_ftid: z.string().nullable().optional(),
|
||||
osm_id: z.string().nullable().optional(),
|
||||
website: z.string().nullable().optional(),
|
||||
phone: z.string().nullable().optional(),
|
||||
status: collectionStatusSchema,
|
||||
source_trip_id: z.number().nullable().optional(),
|
||||
source_place_id: z.number().nullable().optional(),
|
||||
sort_order: z.number().optional(),
|
||||
created_at: z.string().optional(),
|
||||
updated_at: z.string().optional(),
|
||||
category: placeCategorySchema.optional(),
|
||||
tags: z.array(tagSchema.partial()).optional(),
|
||||
});
|
||||
export type CollectionPlace = z.infer<typeof collectionPlaceSchema>;
|
||||
|
||||
/** Member of a shared list (mirrors vacay person rows). */
|
||||
export const collectionMemberSchema = z.object({
|
||||
user_id: z.number(),
|
||||
username: z.string(),
|
||||
email: z.string().optional(),
|
||||
avatar: z.string().nullable().optional(),
|
||||
status: z.enum(['pending', 'accepted']),
|
||||
is_owner: z.boolean().optional(),
|
||||
});
|
||||
export type CollectionMember = z.infer<typeof collectionMemberSchema>;
|
||||
|
||||
/** A list, with computed counts + membership for the current viewer. */
|
||||
export const collectionSchema = z.object({
|
||||
id: z.number(),
|
||||
owner_id: z.number(),
|
||||
name: z.string(),
|
||||
description: z.string().nullable().optional(),
|
||||
color: z.string().nullable().optional(),
|
||||
icon: z.string().nullable().optional(),
|
||||
cover_image: z.string().nullable().optional(),
|
||||
sort_order: z.number().optional(),
|
||||
place_count: z.number().optional(),
|
||||
is_owner: z.boolean().optional(),
|
||||
members: z.array(collectionMemberSchema).optional(),
|
||||
created_at: z.string().optional(),
|
||||
updated_at: z.string().optional(),
|
||||
});
|
||||
export type Collection = z.infer<typeof collectionSchema>;
|
||||
|
||||
// ── Requests ──────────────────────────────────────────────────────────────
|
||||
export const collectionCreateRequestSchema = z.object({
|
||||
name: z.string().min(1).max(120),
|
||||
description: z.string().max(2000).nullable().optional(),
|
||||
color: z.string().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/).optional(),
|
||||
icon: z.string().max(40).optional(),
|
||||
});
|
||||
export type CollectionCreateRequest = z.infer<typeof collectionCreateRequestSchema>;
|
||||
|
||||
export const collectionUpdateRequestSchema = collectionCreateRequestSchema.partial().extend({
|
||||
sort_order: z.number().optional(),
|
||||
});
|
||||
export type CollectionUpdateRequest = z.infer<typeof collectionUpdateRequestSchema>;
|
||||
|
||||
/** Save a place into a list from a raw maps/manual payload (or carrying provenance). */
|
||||
export const collectionSavePlaceRequestSchema = z.object({
|
||||
collection_id: z.number(),
|
||||
source_place_id: z.number().nullable().optional(),
|
||||
source_trip_id: z.number().nullable().optional(),
|
||||
name: z.string().min(1),
|
||||
description: z.string().nullable().optional(),
|
||||
lat: z.number().nullable().optional(),
|
||||
lng: z.number().nullable().optional(),
|
||||
address: z.string().nullable().optional(),
|
||||
category_id: z.number().nullable().optional(),
|
||||
price: z.number().nullable().optional(),
|
||||
currency: z.string().nullable().optional(),
|
||||
notes: z.string().nullable().optional(),
|
||||
image_url: z.string().nullable().optional(),
|
||||
google_place_id: z.string().nullable().optional(),
|
||||
google_ftid: z.string().nullable().optional(),
|
||||
osm_id: z.string().nullable().optional(),
|
||||
website: z.string().nullable().optional(),
|
||||
phone: z.string().nullable().optional(),
|
||||
status: collectionStatusSchema.optional(),
|
||||
tag_ids: z.array(z.number()).optional(),
|
||||
force: z.boolean().optional(), // "add anyway" over a dedup match
|
||||
});
|
||||
export type CollectionSavePlaceRequest = z.infer<typeof collectionSavePlaceRequestSchema>;
|
||||
|
||||
/** DEDICATED DTO for POST /places/from-trip — the server reads the place, so no place payload. */
|
||||
export const collectionSaveFromTripRequestSchema = z.object({
|
||||
collection_id: z.number(),
|
||||
source_trip_id: z.number(),
|
||||
source_place_id: z.number(),
|
||||
force: z.boolean().optional(),
|
||||
});
|
||||
export type CollectionSaveFromTripRequest = z.infer<typeof collectionSaveFromTripRequestSchema>;
|
||||
|
||||
export const collectionPlaceUpdateRequestSchema = z.object({
|
||||
name: z.string().min(1).optional(),
|
||||
notes: z.string().nullable().optional(),
|
||||
status: collectionStatusSchema.optional(),
|
||||
category_id: z.number().nullable().optional(),
|
||||
collection_id: z.number().optional(), // move to another list
|
||||
tag_ids: z.array(z.number()).optional(),
|
||||
});
|
||||
export type CollectionPlaceUpdateRequest = z.infer<typeof collectionPlaceUpdateRequestSchema>;
|
||||
|
||||
export const collectionSetStatusRequestSchema = z.object({ status: collectionStatusSchema });
|
||||
export type CollectionSetStatusRequest = z.infer<typeof collectionSetStatusRequestSchema>;
|
||||
|
||||
/** Copy one or many saved places INTO a trip (dedup precheck on server). */
|
||||
export const collectionCopyToTripRequestSchema = z.object({
|
||||
trip_id: z.number(),
|
||||
place_ids: z.array(z.number()).min(1),
|
||||
force: z.boolean().optional(),
|
||||
});
|
||||
export type CollectionCopyToTripRequest = z.infer<typeof collectionCopyToTripRequestSchema>;
|
||||
|
||||
// Fusion invitations. user_id is NUMERIC ONLY — the UI always sends an id from availableUsers.
|
||||
export const collectionInviteRequestSchema = z.object({
|
||||
collection_id: z.number(),
|
||||
user_id: z.number(),
|
||||
});
|
||||
export type CollectionInviteRequest = z.infer<typeof collectionInviteRequestSchema>;
|
||||
|
||||
export const collectionInviteActionRequestSchema = z.object({ collection_id: z.number() });
|
||||
export type CollectionInviteActionRequest = z.infer<typeof collectionInviteActionRequestSchema>;
|
||||
|
||||
export const collectionInviteCancelRequestSchema = z.object({
|
||||
collection_id: z.number(),
|
||||
user_id: z.number(),
|
||||
});
|
||||
export type CollectionInviteCancelRequest = z.infer<typeof collectionInviteCancelRequestSchema>;
|
||||
|
||||
// ── Responses ─────────────────────────────────────────────────────────────
|
||||
export const collectionListResponseSchema = z.object({
|
||||
collections: z.array(collectionSchema),
|
||||
// `from` is DERIVED from collections.owner_id JOIN users (sendInvite is owner-only, so the
|
||||
// inviter is always the list owner — collection_members has no invited_by column).
|
||||
incomingInvites: z.array(
|
||||
z.object({
|
||||
collection_id: z.number(),
|
||||
name: z.string(),
|
||||
from: z.object({ id: z.number(), username: z.string() }),
|
||||
}),
|
||||
),
|
||||
});
|
||||
export type CollectionListResponse = z.infer<typeof collectionListResponseSchema>;
|
||||
|
||||
export const collectionDetailResponseSchema = z.object({
|
||||
collection: collectionSchema,
|
||||
places: z.array(collectionPlaceSchema),
|
||||
});
|
||||
export type CollectionDetailResponse = z.infer<typeof collectionDetailResponseSchema>;
|
||||
|
||||
/** Dedup outcome envelope reused by save + copy (matches placeService dedup UX). */
|
||||
export const collectionSaveResultSchema = z.object({
|
||||
place: collectionPlaceSchema.optional(),
|
||||
duplicate: z.boolean().optional(),
|
||||
duplicateOf: z.object({ id: z.number(), name: z.string() }).nullable().optional(),
|
||||
});
|
||||
export type CollectionSaveResult = z.infer<typeof collectionSaveResultSchema>;
|
||||
|
||||
/** Library-wide "is this place already saved anywhere I can see?" lookup (inspector indicator). */
|
||||
export const collectionMembershipSchema = z.object({
|
||||
saved: z.boolean(),
|
||||
lists: z.array(z.object({ collection_id: z.number(), name: z.string(), place_id: z.number() })),
|
||||
});
|
||||
export type CollectionMembership = z.infer<typeof collectionMembershipSchema>;
|
||||
@@ -28,6 +28,10 @@ const ar: NotificationLocale = {
|
||||
title: 'دعوة دمج الإجازة',
|
||||
body: `${p.actor} يدعوك لدمج خطط الإجازة. افتح TREK للقبول أو الرفض.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'دعوة إلى مجموعة',
|
||||
body: `${p.actor} يدعوك لمشاركة مجموعة. افتح TREK للقبول أو الرفض.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} صور مشتركة`,
|
||||
body: `${p.actor} شارك ${p.count} صورة في "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} في {trip} مستحقة في {due}',
|
||||
'notif.vacay_invite.title': 'دعوة دمج الإجازة',
|
||||
'notif.vacay_invite.text': '{actor} يدعوك لدمج خطط الإجازة',
|
||||
'notif.collection_invite.title': 'دعوة إلى مجموعة',
|
||||
'notif.collection_invite.text': '{actor} يدعوك لمشاركة مجموعة',
|
||||
'notif.photos_shared.title': 'تمت مشاركة الصور',
|
||||
'notif.photos_shared.text': '{actor} شارك {count} صورة في {trip}',
|
||||
'notif.collab_message.title': 'رسالة جديدة',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'عرض التعبئة',
|
||||
'notif.action.view_photos': 'عرض الصور',
|
||||
'notif.action.view_vacay': 'عرض Vacay',
|
||||
'notif.action.view_collection': 'عرض المجموعة',
|
||||
'notif.action.view_admin': 'الذهاب للإدارة',
|
||||
'notif.action.view': 'عرض',
|
||||
'notif.action.accept': 'قبول',
|
||||
|
||||
@@ -28,6 +28,10 @@ const br: NotificationLocale = {
|
||||
title: 'Convite Vacay Fusion',
|
||||
body: `${p.actor} convidou você para fundir planos de férias. Abra o TREK para aceitar ou recusar.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Convite para coleção',
|
||||
body: `${p.actor} convidou você para compartilhar uma coleção. Abra o TREK para aceitar ou recusar.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} fotos compartilhadas`,
|
||||
body: `${p.actor} compartilhou ${p.count} foto(s) em "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} em {trip} vence em {due}',
|
||||
'notif.vacay_invite.title': 'Convite Vacay Fusion',
|
||||
'notif.vacay_invite.text': '{actor} convidou você para fundir planos de férias',
|
||||
'notif.collection_invite.title': 'Convite para coleção',
|
||||
'notif.collection_invite.text': '{actor} convidou você para uma coleção',
|
||||
'notif.photos_shared.title': 'Fotos compartilhadas',
|
||||
'notif.photos_shared.text': '{actor} compartilhou {count} foto(s) em {trip}',
|
||||
'notif.collab_message.title': 'Nova mensagem',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Ver bagagem',
|
||||
'notif.action.view_photos': 'Ver fotos',
|
||||
'notif.action.view_vacay': 'Ver Vacay',
|
||||
'notif.action.view_collection': 'Ver coleção',
|
||||
'notif.action.view_admin': 'Ir para admin',
|
||||
'notif.action.view': 'Ver',
|
||||
'notif.action.accept': 'Aceitar',
|
||||
|
||||
@@ -28,6 +28,10 @@ const cs: NotificationLocale = {
|
||||
title: 'Pozvánka Vacay Fusion',
|
||||
body: `${p.actor} vás pozval ke spojení dovolenkových plánů. Otevřete TREK pro přijetí nebo odmítnutí.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Pozvánka do sbírky',
|
||||
body: `${p.actor} vás pozval ke sdílení sbírky. Otevřete TREK pro přijetí nebo odmítnutí.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} sdílených fotek`,
|
||||
body: `${p.actor} sdílel ${p.count} foto v "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} ve výletě {trip} má termín {due}',
|
||||
'notif.vacay_invite.title': 'Pozvánka Vacay Fusion',
|
||||
'notif.vacay_invite.text': '{actor} vás pozval ke spojení dovolenkových plánů',
|
||||
'notif.collection_invite.title': 'Pozvánka do sbírky',
|
||||
'notif.collection_invite.text': '{actor} vás pozval do sbírky',
|
||||
'notif.photos_shared.title': 'Fotky sdíleny',
|
||||
'notif.photos_shared.text': '{actor} sdílel {count} foto v {trip}',
|
||||
'notif.collab_message.title': 'Nová zpráva',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Zobrazit balení',
|
||||
'notif.action.view_photos': 'Zobrazit fotky',
|
||||
'notif.action.view_vacay': 'Zobrazit Vacay',
|
||||
'notif.action.view_collection': 'Zobrazit sbírku',
|
||||
'notif.action.view_admin': 'Jít do adminu',
|
||||
'notif.action.view': 'Zobrazit',
|
||||
'notif.action.accept': 'Přijmout',
|
||||
|
||||
@@ -28,6 +28,10 @@ const de: NotificationLocale = {
|
||||
title: 'Vacay Fusion-Einladung',
|
||||
body: `${p.actor} hat dich eingeladen, Urlaubspläne zu fusionieren. Öffne TREK um anzunehmen oder abzulehnen.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Sammlungs-Einladung',
|
||||
body: `${p.actor} hat dich eingeladen, eine Sammlung zu teilen. Öffne TREK um anzunehmen oder abzulehnen.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} Fotos geteilt`,
|
||||
body: `${p.actor} hat ${p.count} Foto(s) in "${p.trip}" geteilt.`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} in {trip} ist am {due} fällig',
|
||||
'notif.vacay_invite.title': 'Vacay Fusion-Einladung',
|
||||
'notif.vacay_invite.text': '{actor} hat dich zum Fusionieren von Urlaubsplänen eingeladen',
|
||||
'notif.collection_invite.title': 'Sammlungs-Einladung',
|
||||
'notif.collection_invite.text': '{actor} hat dich zu einer Sammlung eingeladen',
|
||||
'notif.photos_shared.title': 'Fotos geteilt',
|
||||
'notif.photos_shared.text': '{actor} hat {count} Foto(s) in {trip} geteilt',
|
||||
'notif.collab_message.title': 'Neue Nachricht',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Packliste ansehen',
|
||||
'notif.action.view_photos': 'Fotos ansehen',
|
||||
'notif.action.view_vacay': 'Vacay ansehen',
|
||||
'notif.action.view_collection': 'Sammlung ansehen',
|
||||
'notif.action.view_admin': 'Zum Admin',
|
||||
'notif.action.view': 'Ansehen',
|
||||
'notif.action.accept': 'Annehmen',
|
||||
|
||||
@@ -28,6 +28,10 @@ const en: NotificationLocale = {
|
||||
title: 'Vacay Fusion Invite',
|
||||
body: `${p.actor} invited you to fuse vacation plans. Open TREK to accept or decline.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Collection invite',
|
||||
body: `${p.actor} invited you to share a collection. Open TREK to accept or decline.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} photos shared`,
|
||||
body: `${p.actor} shared ${p.count} photo(s) in "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} in {trip} is due on {due}',
|
||||
'notif.vacay_invite.title': 'Vacay Fusion Invite',
|
||||
'notif.vacay_invite.text': '{actor} invited you to fuse vacation plans',
|
||||
'notif.collection_invite.title': 'Collection invite',
|
||||
'notif.collection_invite.text': '{actor} invited you to share a collection',
|
||||
'notif.photos_shared.title': 'Photos Shared',
|
||||
'notif.photos_shared.text': '{actor} shared {count} photo(s) in {trip}',
|
||||
'notif.collab_message.title': 'New Message',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'View Packing',
|
||||
'notif.action.view_photos': 'View Photos',
|
||||
'notif.action.view_vacay': 'View Vacay',
|
||||
'notif.action.view_collection': 'View Collection',
|
||||
'notif.action.view_admin': 'Go to Admin',
|
||||
'notif.action.view': 'View',
|
||||
'notif.action.accept': 'Accept',
|
||||
|
||||
@@ -28,6 +28,10 @@ const es: NotificationLocale = {
|
||||
title: 'Invitación Vacay Fusion',
|
||||
body: `${p.actor} te invitó a fusionar planes de vacaciones. Abre TREK para aceptar o rechazar.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Invitación a colección',
|
||||
body: `${p.actor} te invitó a compartir una colección. Abre TREK para aceptar o rechazar.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} fotos compartidas`,
|
||||
body: `${p.actor} compartió ${p.count} foto(s) en "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} en {trip} vence el {due}',
|
||||
'notif.vacay_invite.title': 'Invitación Vacay Fusion',
|
||||
'notif.vacay_invite.text': '{actor} te invitó a fusionar planes de vacaciones',
|
||||
'notif.collection_invite.title': 'Invitación a colección',
|
||||
'notif.collection_invite.text': '{actor} te invitó a una colección',
|
||||
'notif.photos_shared.title': 'Fotos compartidas',
|
||||
'notif.photos_shared.text': '{actor} compartió {count} foto(s) en {trip}',
|
||||
'notif.collab_message.title': 'Nuevo mensaje',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Ver equipaje',
|
||||
'notif.action.view_photos': 'Ver fotos',
|
||||
'notif.action.view_vacay': 'Ver Vacay',
|
||||
'notif.action.view_collection': 'Ver colección',
|
||||
'notif.action.view_admin': 'Ir al admin',
|
||||
'notif.action.view': 'Ver',
|
||||
'notif.action.accept': 'Aceptar',
|
||||
|
||||
@@ -27,6 +27,7 @@ export type NotificationEventKey =
|
||||
| 'trip_reminder'
|
||||
| 'todo_due'
|
||||
| 'vacay_invite'
|
||||
| 'collection_invite'
|
||||
| 'photos_shared'
|
||||
| 'collab_message'
|
||||
| 'packing_tagged'
|
||||
|
||||
@@ -28,6 +28,10 @@ const fr: NotificationLocale = {
|
||||
title: 'Invitation Vacay Fusion',
|
||||
body: `${p.actor} vous invite à fusionner les plans de vacances. Ouvrez TREK pour accepter ou refuser.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Invitation à une collection',
|
||||
body: `${p.actor} vous invite à partager une collection. Ouvrez TREK pour accepter ou refuser.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} photos partagées`,
|
||||
body: `${p.actor} a partagé ${p.count} photo(s) dans "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} dans {trip} est due le {due}',
|
||||
'notif.vacay_invite.title': 'Invitation Vacay Fusion',
|
||||
'notif.vacay_invite.text': '{actor} vous invite à fusionner les plans de vacances',
|
||||
'notif.collection_invite.title': 'Invitation à une collection',
|
||||
'notif.collection_invite.text': '{actor} vous invite à une collection',
|
||||
'notif.photos_shared.title': 'Photos partagées',
|
||||
'notif.photos_shared.text': '{actor} a partagé {count} photo(s) dans {trip}',
|
||||
'notif.collab_message.title': 'Nouveau message',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Voir les bagages',
|
||||
'notif.action.view_photos': 'Voir les photos',
|
||||
'notif.action.view_vacay': 'Voir Vacay',
|
||||
'notif.action.view_collection': 'Voir la collection',
|
||||
'notif.action.view_admin': "Aller à l'admin",
|
||||
'notif.action.view': 'Voir',
|
||||
'notif.action.accept': 'Accepter',
|
||||
|
||||
@@ -28,6 +28,10 @@ const gr: NotificationLocale = {
|
||||
title: 'Πρόσκληση συγχώνευσης διακοπών',
|
||||
body: `Ο/Η ${p.actor} σας προσκάλεσε να συγχωνεύσετε τα σχέδια διακοπών σας. Ανοίξτε το TREK για να αποδεχτείτε ή να απορρίψετε.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Πρόσκληση σε συλλογή',
|
||||
body: `Ο/Η ${p.actor} σας προσκάλεσε να μοιραστείτε μια συλλογή. Ανοίξτε το TREK για να αποδεχτείτε ή να απορρίψετε.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} φωτογραφίες κοινοποιήθηκαν`,
|
||||
body: `Ο/Η ${p.actor} κοινοποίησε ${p.count} φωτογραφία/ες στο "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': 'Η εργασία {todo} στο {trip} λήγει στις {due}',
|
||||
'notif.vacay_invite.title': 'Πρόσκληση Σύντηξης Vacay',
|
||||
'notif.vacay_invite.text': 'Ο/Η {actor} σας προσκάλεσε να συγχωνεύσετε τα σχέδια διακοπών',
|
||||
'notif.collection_invite.title': 'Πρόσκληση σε συλλογή',
|
||||
'notif.collection_invite.text': 'Ο/Η {actor} σας προσκάλεσε σε μια συλλογή',
|
||||
'notif.photos_shared.title': 'Κοινοποίηση Φωτογραφιών',
|
||||
'notif.photos_shared.text': 'Ο/Η {actor} μοιράστηκε {count} φωτογραφία(ες) στο {trip}',
|
||||
'notif.collab_message.title': 'Νέο Μήνυμα',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Προβολή Αποσκευών',
|
||||
'notif.action.view_photos': 'Προβολή Φωτογραφιών',
|
||||
'notif.action.view_vacay': 'Προβολή Vacay',
|
||||
'notif.action.view_collection': 'Προβολή συλλογής',
|
||||
'notif.action.view_admin': 'Μετάβαση στη Διαχείριση',
|
||||
'notif.action.view': 'Προβολή',
|
||||
'notif.action.accept': 'Αποδοχή',
|
||||
|
||||
@@ -28,6 +28,10 @@ const hu: NotificationLocale = {
|
||||
title: 'Vacay Fusion meghívó',
|
||||
body: `${p.actor} meghívott a nyaralási tervek összevonásához. Nyissa meg a TREK-et az elfogadáshoz vagy elutasításhoz.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Gyűjtemény meghívó',
|
||||
body: `${p.actor} meghívott egy gyűjtemény megosztására. Nyissa meg a TREK-et az elfogadáshoz vagy elutasításhoz.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} fotó megosztva`,
|
||||
body: `${p.actor} ${p.count} fotót osztott meg a(z) "${p.trip}" utazásban.`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} ({trip}) határideje: {due}',
|
||||
'notif.vacay_invite.title': 'Vacay Fusion meghívó',
|
||||
'notif.vacay_invite.text': '{actor} meghívott a nyaralási tervek összevonásához',
|
||||
'notif.collection_invite.title': 'Gyűjtemény meghívó',
|
||||
'notif.collection_invite.text': '{actor} meghívott egy gyűjteménybe',
|
||||
'notif.photos_shared.title': 'Fotók megosztva',
|
||||
'notif.photos_shared.text': '{actor} {count} fotót osztott meg a(z) {trip} utazásban',
|
||||
'notif.collab_message.title': 'Új üzenet',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Csomagolás megtekintése',
|
||||
'notif.action.view_photos': 'Fotók megtekintése',
|
||||
'notif.action.view_vacay': 'Vacay megtekintése',
|
||||
'notif.action.view_collection': 'Gyűjtemény megtekintése',
|
||||
'notif.action.view_admin': 'Admin megnyitása',
|
||||
'notif.action.view': 'Megtekintés',
|
||||
'notif.action.accept': 'Elfogadás',
|
||||
|
||||
@@ -28,6 +28,10 @@ const id: NotificationLocale = {
|
||||
title: 'Undangan Penggabungan Vacay',
|
||||
body: `${p.actor} mengundang Anda untuk menggabungkan rencana liburan. Buka TREK untuk menerima atau menolak.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Undangan koleksi',
|
||||
body: `${p.actor} mengundang Anda untuk berbagi koleksi. Buka TREK untuk menerima atau menolak.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} foto dibagikan`,
|
||||
body: `${p.actor} membagikan ${p.count} foto di "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} di {trip} jatuh tempo pada {due}',
|
||||
'notif.vacay_invite.title': 'Undangan Vacay Fusion',
|
||||
'notif.vacay_invite.text': '{actor} mengundangmu untuk menggabungkan rencana liburan',
|
||||
'notif.collection_invite.title': 'Undangan koleksi',
|
||||
'notif.collection_invite.text': '{actor} mengundang Anda ke koleksi',
|
||||
'notif.photos_shared.title': 'Foto Dibagikan',
|
||||
'notif.photos_shared.text': '{actor} membagikan {count} foto di {trip}',
|
||||
'notif.collab_message.title': 'Pesan Baru',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Lihat Perlengkapan',
|
||||
'notif.action.view_photos': 'Lihat Foto',
|
||||
'notif.action.view_vacay': 'Lihat Vacay',
|
||||
'notif.action.view_collection': 'Lihat koleksi',
|
||||
'notif.action.view_admin': 'Ke Admin',
|
||||
'notif.action.view': 'Lihat',
|
||||
'notif.action.accept': 'Terima',
|
||||
|
||||
@@ -28,6 +28,10 @@ const it: NotificationLocale = {
|
||||
title: 'Invito Vacay Fusion',
|
||||
body: `${p.actor} ti ha invitato a fondere i piani vacanza. Apri TREK per accettare o rifiutare.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Invito a una raccolta',
|
||||
body: `${p.actor} ti ha invitato a condividere una raccolta. Apri TREK per accettare o rifiutare.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} foto condivise`,
|
||||
body: `${p.actor} ha condiviso ${p.count} foto in "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} in {trip} scade il {due}',
|
||||
'notif.vacay_invite.title': 'Invito Vacay Fusion',
|
||||
'notif.vacay_invite.text': '{actor} ti ha invitato a fondere i piani vacanza',
|
||||
'notif.collection_invite.title': 'Invito a una raccolta',
|
||||
'notif.collection_invite.text': '{actor} ti ha invitato a una raccolta',
|
||||
'notif.photos_shared.title': 'Foto condivise',
|
||||
'notif.photos_shared.text': '{actor} ha condiviso {count} foto in {trip}',
|
||||
'notif.collab_message.title': 'Nuovo messaggio',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Vedi bagagli',
|
||||
'notif.action.view_photos': 'Vedi foto',
|
||||
'notif.action.view_vacay': 'Vedi Vacay',
|
||||
'notif.action.view_collection': 'Vedi raccolta',
|
||||
'notif.action.view_admin': "Vai all'admin",
|
||||
'notif.action.view': 'Vedi',
|
||||
'notif.action.accept': 'Accetta',
|
||||
|
||||
@@ -28,6 +28,10 @@ const ja: NotificationLocale = {
|
||||
title: 'Vacay Fusion招待',
|
||||
body: `${p.actor}が休暇プランの統合に招待しています。TREKを開いて承認または拒否してください。`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'コレクション招待',
|
||||
body: `${p.actor}がコレクションの共有に招待しています。TREKを開いて承認または拒否してください。`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count}枚の写真が共有されました`,
|
||||
body: `${p.actor}が「${p.trip}」で${p.count}枚の写真を共有しました。`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '「{trip}」の{todo}は{due}が期限です',
|
||||
'notif.vacay_invite.title': 'Vacay Fusionへの招待',
|
||||
'notif.vacay_invite.text': '{actor}から旅行プランの統合に招待されました',
|
||||
'notif.collection_invite.title': 'コレクション招待',
|
||||
'notif.collection_invite.text': '{actor}がコレクションに招待しました',
|
||||
'notif.photos_shared.title': '写真が共有されました',
|
||||
'notif.photos_shared.text': '{actor}が「{trip}」で{count}枚の写真を共有しました',
|
||||
'notif.collab_message.title': '新しいメッセージ',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': '持ち物を見る',
|
||||
'notif.action.view_photos': '写真を見る',
|
||||
'notif.action.view_vacay': 'Vacayを見る',
|
||||
'notif.action.view_collection': 'コレクションを見る',
|
||||
'notif.action.view_admin': '管理画面へ',
|
||||
'notif.action.view': '表示',
|
||||
'notif.action.accept': '承認',
|
||||
|
||||
@@ -28,6 +28,10 @@ const ko: NotificationLocale = {
|
||||
title: 'Vacay Fusion 초대',
|
||||
body: `${p.actor}이(가) 휴가 계획을 합치도록 초대했습니다. TREK을 열어 수락하거나 거절하세요.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: '컬렉션 초대',
|
||||
body: `${p.actor}이(가) 컬렉션 공유에 초대했습니다. TREK을 열어 수락하거나 거절하세요.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count}장의 사진이 공유되었습니다`,
|
||||
body: `${p.actor}이(가) "${p.trip}"에서 ${p.count}장의 사진을 공유했습니다.`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{trip}의 {todo}이(가) {due}에 마감됩니다',
|
||||
'notif.vacay_invite.title': 'Vacay 퓨전 초대',
|
||||
'notif.vacay_invite.text': '{actor}이(가) 휴가 계획 공유에 초대했습니다',
|
||||
'notif.collection_invite.title': '컬렉션 초대',
|
||||
'notif.collection_invite.text': '{actor}이(가) 컬렉션에 초대했습니다',
|
||||
'notif.photos_shared.title': '사진 공유됨',
|
||||
'notif.photos_shared.text': '{actor}이(가) {trip}에서 {count}장의 사진을 공유했습니다',
|
||||
'notif.collab_message.title': '새 메시지',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': '짐 목록 보기',
|
||||
'notif.action.view_photos': '사진 보기',
|
||||
'notif.action.view_vacay': 'Vacay 보기',
|
||||
'notif.action.view_collection': '컬렉션 보기',
|
||||
'notif.action.view_admin': '관리자로 이동',
|
||||
'notif.action.view': '보기',
|
||||
'notif.action.accept': '수락',
|
||||
|
||||
@@ -28,6 +28,10 @@ const nl: NotificationLocale = {
|
||||
title: 'Vacay Fusion uitnodiging',
|
||||
body: `${p.actor} nodigt je uit om vakantieplannen te fuseren. Open TREK om te accepteren of af te wijzen.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Collectie-uitnodiging',
|
||||
body: `${p.actor} nodigt je uit om een collectie te delen. Open TREK om te accepteren of af te wijzen.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} foto's gedeeld`,
|
||||
body: `${p.actor} heeft ${p.count} foto('s) gedeeld in "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} in {trip} verloopt op {due}',
|
||||
'notif.vacay_invite.title': 'Vacay Fusion-uitnodiging',
|
||||
'notif.vacay_invite.text': '{actor} nodigt je uit om vakantieplannen te fuseren',
|
||||
'notif.collection_invite.title': 'Collectie-uitnodiging',
|
||||
'notif.collection_invite.text': '{actor} nodigt je uit voor een collectie',
|
||||
'notif.photos_shared.title': "Foto's gedeeld",
|
||||
'notif.photos_shared.text': "{actor} heeft {count} foto('s) gedeeld in {trip}",
|
||||
'notif.collab_message.title': 'Nieuw bericht',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Paklijst bekijken',
|
||||
'notif.action.view_photos': "Foto's bekijken",
|
||||
'notif.action.view_vacay': 'Vacay bekijken',
|
||||
'notif.action.view_collection': 'Collectie bekijken',
|
||||
'notif.action.view_admin': 'Naar admin',
|
||||
'notif.action.view': 'Bekijken',
|
||||
'notif.action.accept': 'Accepteren',
|
||||
|
||||
@@ -28,6 +28,10 @@ const pl: NotificationLocale = {
|
||||
title: 'Zaproszenie Vacay Fusion',
|
||||
body: `${p.actor} zaprosił Cię do połączenia planów urlopowych. Otwórz TREK, aby zaakceptować lub odrzucić.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Zaproszenie do kolekcji',
|
||||
body: `${p.actor} zaprosił Cię do udostępnienia kolekcji. Otwórz TREK, aby zaakceptować lub odrzucić.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} zdjęć udostępnionych`,
|
||||
body: `${p.actor} udostępnił ${p.count} zdjęcie/zdjęcia w "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} w {trip} — termin {due}',
|
||||
'notif.vacay_invite.title': 'Zaproszenie Vacay Fusion',
|
||||
'notif.vacay_invite.text': '{actor} zaprosił Cię do połączenia planów urlopowych',
|
||||
'notif.collection_invite.title': 'Zaproszenie do kolekcji',
|
||||
'notif.collection_invite.text': '{actor} zaprosił Cię do kolekcji',
|
||||
'notif.photos_shared.title': 'Zdjęcia udostępnione',
|
||||
'notif.photos_shared.text': '{actor} udostępnił {count} zdjęcie/zdjęcia w {trip}',
|
||||
'notif.collab_message.title': 'Nowa wiadomość',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Zobacz pakowanie',
|
||||
'notif.action.view_photos': 'Zobacz zdjęcia',
|
||||
'notif.action.view_vacay': 'Zobacz Vacay',
|
||||
'notif.action.view_collection': 'Zobacz kolekcję',
|
||||
'notif.action.view_admin': 'Przejdź do admina',
|
||||
'notif.action.view': 'Zobacz',
|
||||
'notif.action.accept': 'Akceptuj',
|
||||
|
||||
@@ -28,6 +28,10 @@ const ru: NotificationLocale = {
|
||||
title: 'Приглашение Vacay Fusion',
|
||||
body: `${p.actor} приглашает вас объединить планы отпуска. Откройте TREK для подтверждения.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Приглашение в коллекцию',
|
||||
body: `${p.actor} приглашает вас поделиться коллекцией. Откройте TREK для подтверждения.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} фото`,
|
||||
body: `${p.actor} поделился ${p.count} фото в "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} в {trip} — срок {due}',
|
||||
'notif.vacay_invite.title': 'Приглашение Vacay Fusion',
|
||||
'notif.vacay_invite.text': '{actor} приглашает вас объединить планы отпуска',
|
||||
'notif.collection_invite.title': 'Приглашение в коллекцию',
|
||||
'notif.collection_invite.text': '{actor} приглашает вас в коллекцию',
|
||||
'notif.photos_shared.title': 'Фото опубликованы',
|
||||
'notif.photos_shared.text': '{actor} поделился {count} фото в {trip}',
|
||||
'notif.collab_message.title': 'Новое сообщение',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Открыть упаковку',
|
||||
'notif.action.view_photos': 'Открыть фото',
|
||||
'notif.action.view_vacay': 'Открыть Vacay',
|
||||
'notif.action.view_collection': 'Открыть коллекцию',
|
||||
'notif.action.view_admin': 'Перейти в админ',
|
||||
'notif.action.view': 'Открыть',
|
||||
'notif.action.accept': 'Принять',
|
||||
|
||||
@@ -28,6 +28,10 @@ const en: NotificationLocale = {
|
||||
title: 'Vacay sammanslagnings inbjudan',
|
||||
body: `${p.actor} bjöd in dig att slå samman semesterplaner. Öppna TREK för att acceptera eller avvisa.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Inbjudan till samling',
|
||||
body: `${p.actor} bjöd in dig att dela en samling. Öppna TREK för att acceptera eller avvisa.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} foton delade`,
|
||||
body: `${p.actor} delade ${p.count} foto(n) i "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} i {trip} förfaller den {due}',
|
||||
'notif.vacay_invite.title': 'Vacay sammanslagnings inbjudan',
|
||||
'notif.vacay_invite.text': '{actor} bjöd in dig till sammanslagning av semester planer',
|
||||
'notif.collection_invite.title': 'Inbjudan till samling',
|
||||
'notif.collection_invite.text': '{actor} bjöd in dig till en samling',
|
||||
'notif.photos_shared.title': 'Delade foton',
|
||||
'notif.photos_shared.text': '{actor} delade {count} foto(n) i {trip}',
|
||||
'notif.collab_message.title': 'Nytt meddelande',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Visa förpackning',
|
||||
'notif.action.view_photos': 'Visa bilder',
|
||||
'notif.action.view_vacay': 'Visa Vacay',
|
||||
'notif.action.view_collection': 'Visa samling',
|
||||
'notif.action.view_admin': 'Gå till Admin',
|
||||
'notif.action.view': 'Visa',
|
||||
'notif.action.accept': 'Godkänn',
|
||||
|
||||
@@ -28,6 +28,10 @@ const tr: NotificationLocale = {
|
||||
title: 'Vacay Fusion Daveti',
|
||||
body: `${p.actor} sizi tatil planlarını birleştirmeye davet etti. Kabul etmek veya reddetmek için TREK'i açın.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Koleksiyon daveti',
|
||||
body: `${p.actor} sizi bir koleksiyonu paylaşmaya davet etti. Kabul etmek veya reddetmek için TREK’i açın.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} fotoğraf paylaşıldı`,
|
||||
body: `${p.actor}, "${p.trip}" içinde ${p.count} fotoğraf paylaştı.`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{trip} içindeki {todo} — son tarih: {due}',
|
||||
'notif.vacay_invite.title': 'Vacay Birleştirme Daveti',
|
||||
'notif.vacay_invite.text': '{actor} tatil planlarını birleştirmeniz için sizi davet etti',
|
||||
'notif.collection_invite.title': 'Koleksiyon daveti',
|
||||
'notif.collection_invite.text': '{actor} sizi bir koleksiyona davet etti',
|
||||
'notif.photos_shared.title': 'Fotoğraflar Paylaşıldı',
|
||||
'notif.photos_shared.text': '{actor}, {trip} içinde {count} fotoğraf paylaştı',
|
||||
'notif.collab_message.title': 'Yeni Mesaj',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Paket listesini görüntüle',
|
||||
'notif.action.view_photos': 'Fotoğrafları Görüntüle',
|
||||
'notif.action.view_vacay': "Vacay'ı Görüntüle",
|
||||
'notif.action.view_collection': 'Koleksiyonu görüntüle',
|
||||
'notif.action.view_admin': 'Yöneticiye git',
|
||||
'notif.action.view': 'Görüntüle',
|
||||
'notif.action.accept': 'Kabul et',
|
||||
|
||||
@@ -28,6 +28,10 @@ const uk: NotificationLocale = {
|
||||
title: 'Запрошення Vacay Fusion',
|
||||
body: `${p.actor} запрошує вас об'єднати плани відпустки. Відкрийте TREK, щоб прийняти або відхилити.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Запрошення до колекції',
|
||||
body: `${p.actor} запрошує вас поділитися колекцією. Відкрийте TREK, щоб прийняти або відхилити.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} фото поділились`,
|
||||
body: `${p.actor} поділився ${p.count} фото у "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} у {trip} — термін {due}',
|
||||
'notif.vacay_invite.title': 'Запрошення Vacay Fusion',
|
||||
'notif.vacay_invite.text': '{actor} запрошує вас об’єднати плани відпустки',
|
||||
'notif.collection_invite.title': 'Запрошення до колекції',
|
||||
'notif.collection_invite.text': '{actor} запрошує вас до колекції',
|
||||
'notif.photos_shared.title': 'Фото опубліковано',
|
||||
'notif.photos_shared.text': '{actor} поділився {count} фото у {trip}',
|
||||
'notif.collab_message.title': 'Нове повідомлення',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Відкрити пакування',
|
||||
'notif.action.view_photos': 'Відкрити фото',
|
||||
'notif.action.view_vacay': 'Відкрити Vacay',
|
||||
'notif.action.view_collection': 'Переглянути колекцію',
|
||||
'notif.action.view_admin': 'Перейти в адмін',
|
||||
'notif.action.view': 'Відкрити',
|
||||
'notif.action.accept': 'Прийняти',
|
||||
|
||||
@@ -28,6 +28,10 @@ const en: NotificationLocale = {
|
||||
title: 'Lời mời kết hợp kì nghỉ',
|
||||
body: `${p.actor} đã mời bạn kết hợp kế hoạch kỳ nghỉ. Mở TREK để chấp nhận hoặc từ chối.`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: 'Lời mời bộ sưu tập',
|
||||
body: `${p.actor} đã mời bạn chia sẻ một bộ sưu tập. Mở TREK để chấp nhận hoặc từ chối.`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} đã chia sẻ hình ảnh`,
|
||||
body: `${p.actor} đã chi sẻ ${p.count} ảnh trong "${p.trip}".`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{todo} trong {trip} đáo hạn vào {due}',
|
||||
'notif.vacay_invite.title': 'Lời mời kết hợp Vacay',
|
||||
'notif.vacay_invite.text': '{actor} đã mời bạn lên kế hoạch cho kỳ nghỉ',
|
||||
'notif.collection_invite.title': 'Lời mời bộ sưu tập',
|
||||
'notif.collection_invite.text': '{actor} đã mời bạn vào một bộ sưu tập',
|
||||
'notif.photos_shared.title': 'Ảnh được chia sẻ',
|
||||
'notif.photos_shared.text': '{actor} đã chia sẻ {count} ảnh trong {trip}',
|
||||
'notif.collab_message.title': 'Tin nhắn mới',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': 'Xem đóng gói',
|
||||
'notif.action.view_photos': 'Xem ảnh',
|
||||
'notif.action.view_vacay': 'Xem kỳ nghỉ',
|
||||
'notif.action.view_collection': 'Xem bộ sưu tập',
|
||||
'notif.action.view_admin': 'Đi tới quản trị viên',
|
||||
'notif.action.view': 'Xem',
|
||||
'notif.action.accept': 'Chấp nhận',
|
||||
|
||||
@@ -28,6 +28,10 @@ const zhTW: NotificationLocale = {
|
||||
title: 'Vacay 融合邀請',
|
||||
body: `${p.actor} 邀請您合併假期計畫。開啟 TREK 以接受或拒絕。`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: '收藏邀請',
|
||||
body: `${p.actor} 邀請您共享收藏。開啟 TREK 以接受或拒絕。`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `已分享 ${p.count} 張照片`,
|
||||
body: `${p.actor} 在「${p.trip}」中分享了 ${p.count} 張照片。`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{trip} 中的 {todo} 將於 {due} 到期',
|
||||
'notif.vacay_invite.title': 'Vacay Fusion 邀請',
|
||||
'notif.vacay_invite.text': '{actor} 邀請你合併假期計畫',
|
||||
'notif.collection_invite.title': '收藏邀請',
|
||||
'notif.collection_invite.text': '{actor} 邀請您加入收藏',
|
||||
'notif.photos_shared.title': '照片已分享',
|
||||
'notif.photos_shared.text': '{actor} 在 {trip} 中分享了 {count} 張照片',
|
||||
'notif.collab_message.title': '新訊息',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': '查看打包',
|
||||
'notif.action.view_photos': '查看照片',
|
||||
'notif.action.view_vacay': '查看 Vacay',
|
||||
'notif.action.view_collection': '查看收藏',
|
||||
'notif.action.view_admin': '前往管理',
|
||||
'notif.action.view': '查看',
|
||||
'notif.action.accept': '接受',
|
||||
|
||||
@@ -28,6 +28,10 @@ const zh: NotificationLocale = {
|
||||
title: 'Vacay 融合邀请',
|
||||
body: `${p.actor} 邀请你合并假期计划。打开 TREK 接受或拒绝。`,
|
||||
}),
|
||||
collection_invite: (p) => ({
|
||||
title: '收藏邀请',
|
||||
body: `${p.actor} 邀请你共享收藏。打开 TREK 接受或拒绝。`,
|
||||
}),
|
||||
photos_shared: (p) => ({
|
||||
title: `${p.count} 张照片已分享`,
|
||||
body: `${p.actor} 在"${p.trip}"中分享了 ${p.count} 张照片。`,
|
||||
|
||||
@@ -15,6 +15,8 @@ const notif: TranslationStrings = {
|
||||
'notif.todo_due.text': '{trip} 中的 {todo} 将于 {due} 到期',
|
||||
'notif.vacay_invite.title': 'Vacay 融合邀请',
|
||||
'notif.vacay_invite.text': '{actor} 邀请您合并假期计划',
|
||||
'notif.collection_invite.title': '收藏邀请',
|
||||
'notif.collection_invite.text': '{actor} 邀请你加入收藏',
|
||||
'notif.photos_shared.title': '照片已分享',
|
||||
'notif.photos_shared.text': '{actor} 在 {trip} 中分享了 {count} 张照片',
|
||||
'notif.collab_message.title': '新消息',
|
||||
@@ -28,6 +30,7 @@ const notif: TranslationStrings = {
|
||||
'notif.action.view_packing': '查看行李',
|
||||
'notif.action.view_photos': '查看照片',
|
||||
'notif.action.view_vacay': '查看 Vacay',
|
||||
'notif.action.view_collection': '查看收藏',
|
||||
'notif.action.view_admin': '前往管理',
|
||||
'notif.action.view': '查看',
|
||||
'notif.action.accept': '接受',
|
||||
|
||||
@@ -31,6 +31,7 @@ export * from './airtrail/airtrail.schema';
|
||||
export * from './day/day.schema';
|
||||
export * from './assignment/assignment.schema';
|
||||
export * from './place/place.schema';
|
||||
export * from './collection/collection.schema';
|
||||
export * from './trip/trip.schema';
|
||||
export * from './collab/collab.schema';
|
||||
export * from './file/file.schema';
|
||||
|
||||
Reference in New Issue
Block a user