From ea9d66868a797c00f75c3d31c156d4e510a731f1 Mon Sep 17 00:00:00 2001 From: Maurice Date: Mon, 30 Nov 2026 14:36:52 +0100 Subject: [PATCH] feat(notifications): tell a new journey contributor they were added Adding somebody to a journey was silent (#1669). The new journey_invite event goes to the person added, in-app with a button to the journey and on every channel they use, once: posting the same person again only changes their role. The REST route and the MCP tool both go through JourneyService.addContributor, so both send it; the send is fire and forget like the trip and collection invites. The event is listed while the Journey addon is on, with its label in the notification settings, and its texts are translated in every locale. --- .../components/Settings/notificationLabels.ts | 5 +++ server/src/nest/journey/journey.module.ts | 6 +++ server/src/nest/journey/journey.service.ts | 42 ++++++++++++++++++- .../nest/notifications/notification-events.ts | 2 + .../notification-preferences.service.ts | 2 + .../notifications/notifications.service.ts | 8 ++++ .../notifications/transports/ntfy.service.ts | 1 + .../tests/e2e/journey-public-link.e2e.test.ts | 37 ++++++++++++++-- .../broadcast-parity/user.cases.ts | 2 + shared/src/i18n/ar/externalNotifications.ts | 4 ++ shared/src/i18n/ar/notif.ts | 3 ++ shared/src/i18n/ar/settings.ts | 1 + shared/src/i18n/az/externalNotifications.ts | 4 ++ shared/src/i18n/az/notif.ts | 3 ++ shared/src/i18n/az/settings.ts | 1 + shared/src/i18n/br/externalNotifications.ts | 4 ++ shared/src/i18n/br/notif.ts | 3 ++ shared/src/i18n/br/settings.ts | 1 + shared/src/i18n/ca/externalNotifications.ts | 4 ++ shared/src/i18n/ca/notif.ts | 3 ++ shared/src/i18n/ca/settings.ts | 1 + shared/src/i18n/cs/externalNotifications.ts | 4 ++ shared/src/i18n/cs/notif.ts | 3 ++ shared/src/i18n/cs/settings.ts | 1 + shared/src/i18n/de/externalNotifications.ts | 4 ++ shared/src/i18n/de/notif.ts | 3 ++ shared/src/i18n/de/settings.ts | 1 + shared/src/i18n/en/externalNotifications.ts | 4 ++ shared/src/i18n/en/notif.ts | 3 ++ shared/src/i18n/en/settings.ts | 1 + shared/src/i18n/es/externalNotifications.ts | 4 ++ shared/src/i18n/es/notif.ts | 3 ++ shared/src/i18n/es/settings.ts | 1 + shared/src/i18n/et/externalNotifications.ts | 4 ++ shared/src/i18n/et/notif.ts | 3 ++ shared/src/i18n/et/settings.ts | 1 + .../src/i18n/externalNotifications/types.ts | 1 + shared/src/i18n/fr/externalNotifications.ts | 4 ++ shared/src/i18n/fr/notif.ts | 3 ++ shared/src/i18n/fr/settings.ts | 1 + shared/src/i18n/gr/externalNotifications.ts | 4 ++ shared/src/i18n/gr/notif.ts | 3 ++ shared/src/i18n/gr/settings.ts | 1 + shared/src/i18n/he/externalNotifications.ts | 4 ++ shared/src/i18n/he/notif.ts | 3 ++ shared/src/i18n/he/settings.ts | 1 + shared/src/i18n/hu/externalNotifications.ts | 4 ++ shared/src/i18n/hu/notif.ts | 3 ++ shared/src/i18n/hu/settings.ts | 1 + shared/src/i18n/id/externalNotifications.ts | 4 ++ shared/src/i18n/id/notif.ts | 3 ++ shared/src/i18n/id/settings.ts | 1 + shared/src/i18n/it/externalNotifications.ts | 4 ++ shared/src/i18n/it/notif.ts | 3 ++ shared/src/i18n/it/settings.ts | 1 + shared/src/i18n/ja/externalNotifications.ts | 4 ++ shared/src/i18n/ja/notif.ts | 3 ++ shared/src/i18n/ja/settings.ts | 1 + shared/src/i18n/ko/externalNotifications.ts | 4 ++ shared/src/i18n/ko/notif.ts | 3 ++ shared/src/i18n/ko/settings.ts | 1 + shared/src/i18n/nl/externalNotifications.ts | 4 ++ shared/src/i18n/nl/notif.ts | 3 ++ shared/src/i18n/nl/settings.ts | 1 + shared/src/i18n/pl/externalNotifications.ts | 4 ++ shared/src/i18n/pl/notif.ts | 3 ++ shared/src/i18n/pl/settings.ts | 1 + shared/src/i18n/ru/externalNotifications.ts | 4 ++ shared/src/i18n/ru/notif.ts | 3 ++ shared/src/i18n/ru/settings.ts | 1 + shared/src/i18n/sk/externalNotifications.ts | 4 ++ shared/src/i18n/sk/notif.ts | 3 ++ shared/src/i18n/sk/settings.ts | 1 + shared/src/i18n/sv/externalNotifications.ts | 4 ++ shared/src/i18n/sv/notif.ts | 3 ++ shared/src/i18n/sv/settings.ts | 1 + shared/src/i18n/th/externalNotifications.ts | 4 ++ shared/src/i18n/th/notif.ts | 3 ++ shared/src/i18n/th/settings.ts | 1 + shared/src/i18n/tr/externalNotifications.ts | 4 ++ shared/src/i18n/tr/notif.ts | 3 ++ shared/src/i18n/tr/settings.ts | 1 + shared/src/i18n/uk/externalNotifications.ts | 4 ++ shared/src/i18n/uk/notif.ts | 3 ++ shared/src/i18n/uk/settings.ts | 1 + shared/src/i18n/vi/externalNotifications.ts | 4 ++ shared/src/i18n/vi/notif.ts | 3 ++ shared/src/i18n/vi/settings.ts | 1 + .../src/i18n/zh-TW/externalNotifications.ts | 4 ++ shared/src/i18n/zh-TW/notif.ts | 3 ++ shared/src/i18n/zh-TW/settings.ts | 1 + shared/src/i18n/zh/externalNotifications.ts | 4 ++ shared/src/i18n/zh/notif.ts | 3 ++ shared/src/i18n/zh/settings.ts | 1 + wiki/Notifications.md | 1 + 95 files changed, 326 insertions(+), 5 deletions(-) diff --git a/client/src/components/Settings/notificationLabels.ts b/client/src/components/Settings/notificationLabels.ts index cfce21ef3..a26f4bf3b 100644 --- a/client/src/components/Settings/notificationLabels.ts +++ b/client/src/components/Settings/notificationLabels.ts @@ -14,6 +14,10 @@ export interface NotificationChannelDescriptor { configured: boolean } +// The table below is read through a variable, which the i18n key scan cannot +// follow; a label added since is named in a *Key binding so it reads as used. +const journeyInviteLabelKey = 'settings.notifyJourneyInvite' + export const EVENT_LABEL_KEYS: Record = { trip_invite: 'settings.notifyTripInvite', booking_change: 'settings.notifyBookingChange', @@ -22,6 +26,7 @@ export const EVENT_LABEL_KEYS: Record = { vacay_invite: 'settings.notifyVacayInvite', vacay_share: 'settings.notifyVacayShare', collection_invite: 'settings.notifyCollectionInvite', + journey_invite: journeyInviteLabelKey, synology_session_cleared: 'settings.notifySynologySessionCleared', plugin_notification: 'settings.notifyPluginNotification', photos_shared: 'settings.notifyPhotosShared', diff --git a/server/src/nest/journey/journey.module.ts b/server/src/nest/journey/journey.module.ts index 902e2af10..d89ae3501 100644 --- a/server/src/nest/journey/journey.module.ts +++ b/server/src/nest/journey/journey.module.ts @@ -1,11 +1,13 @@ import { Users } from '../../db/entities/Users.entity'; import { AddonsModule } from '../addons/addons.module'; import { AppConfigModule } from '../app-config/app-config.module'; +import { UserLookupModule } from '../auth-core/user-lookup.module'; import { RateLimitModule } from '../common/rate-limit.module'; import { UserConnectionRepositoriesModule } from '../database/user-connection-repositories.module'; import { AllowedFileTypesModule } from '../files/allowed-file-types.module'; import { AllowedFileTypesService } from '../files/allowed-file-types.service'; import { MemoriesModule } from '../memories/memories.module'; +import { NotificationsModule } from '../notifications/notifications.module'; import { buildStorageUploadOptions } from '../storage/storage-upload.factory'; import { StorageModule } from '../storage/storage.module'; import { StorageService } from '../storage/storage.service'; @@ -47,6 +49,10 @@ import { MulterModule } from '@nestjs/platform-express'; AddonsModule, // The public unlock route counts wrong passwords per address and link (#2553). RateLimitModule, + // journey_invite: the new contributor hears who added them (UserLookupService) + // through the notification service. + UserLookupModule, + NotificationsModule, // RuntimeEnvService: the controller refuses the demo account's uploads in demo mode. AppConfigModule, MemoriesModule, diff --git a/server/src/nest/journey/journey.service.ts b/server/src/nest/journey/journey.service.ts index 51fb589d4..f3541bc61 100644 --- a/server/src/nest/journey/journey.service.ts +++ b/server/src/nest/journey/journey.service.ts @@ -1,9 +1,11 @@ import { ADDON_IDS } from '../../addons'; import { UserImmichRepository } from '../../db/repositories/UserImmich.repository'; import { AddonsService } from '../addons/addons.service'; +import { UserLookupService } from '../auth-core/user-lookup.service'; import { ImmichService } from '../memories/immich.service'; import { PhotoProviderRegistry } from '../memories/photo-provider.registry'; import { PhotoResolverService } from '../memories/photo-resolver.service'; +import { NotificationsService } from '../notifications/notifications.service'; import { JourneyDomainService } from './journey-domain.service'; import { JourneyMapService } from './journey-map.service'; import { JourneySettingsService } from './journey-settings.service'; @@ -30,6 +32,8 @@ export class JourneyService { private readonly immichRepo: UserImmichRepository, private readonly map: JourneyMapService, private readonly settings: JourneySettingsService, + private readonly notifications: NotificationsService, + private readonly users: UserLookupService, ) {} async journeyAddonEnabled(): Promise { @@ -133,8 +137,42 @@ export class JourneyService { } // Contributors - addContributor(id: number, userId: number, targetUserId: number, role: 'editor' | 'viewer') { - return this.journey.addContributor(id, userId, targetUserId, role); + /** + * Add a contributor, and tell them (journey_invite, #1669) when they are new + * to the journey. Both the REST route and the MCP tool come through here. + * Re-adding somebody who is already on it only changes their role, which is + * not news worth a notification. + */ + async addContributor(id: number, userId: number, targetUserId: number, role: 'editor' | 'viewer') { + const alreadyIn = (await this.journey.canAccessJourney(id, targetUserId)) !== null; + const added = await this.journey.addContributor(id, userId, targetUserId, role); + if (added && !alreadyIn) await this.notifyInvite(id, userId, targetUserId, role); + return added; + } + + /** + * Fire-and-forget, like the trip and collection invites: a notification that + * fails never undoes the contributor who was just added. + * + * @txStandalone a notification, independent of the write it reports. + */ + private async notifyInvite(journeyId: number, actorId: number, targetUserId: number, role: 'editor' | 'viewer') { + const journey = await this.journey.canAccessJourney(journeyId, actorId); + const actor = await this.users.usernameAndEmail(actorId); + this.notifications + .send({ + event: 'journey_invite', + actorId, + scope: 'user', + targetId: targetUserId, + params: { + actor: actor?.username ?? '', + journey: journey?.title ?? '', + journeyId: String(journeyId), + role, + }, + }) + .catch(() => {}); } updateContributorRole(id: number, userId: number, targetUserId: number, role: 'editor' | 'viewer') { return this.journey.updateContributorRole(id, userId, targetUserId, role); diff --git a/server/src/nest/notifications/notification-events.ts b/server/src/nest/notifications/notification-events.ts index f182f73e9..0b7750b12 100644 --- a/server/src/nest/notifications/notification-events.ts +++ b/server/src/nest/notifications/notification-events.ts @@ -38,6 +38,7 @@ export type NotifEventType = | 'vacay_invite' | 'vacay_share' | 'collection_invite' + | 'journey_invite' | 'photos_shared' | 'collab_message' | 'packing_tagged' @@ -63,6 +64,7 @@ export const ALL_EVENT_TYPES: NotifEventType[] = [ 'vacay_invite', 'vacay_share', 'collection_invite', + 'journey_invite', 'photos_shared', 'collab_message', 'packing_tagged', diff --git a/server/src/nest/notifications/notification-preferences.service.ts b/server/src/nest/notifications/notification-preferences.service.ts index 2794e8071..f7b982652 100644 --- a/server/src/nest/notifications/notification-preferences.service.ts +++ b/server/src/nest/notifications/notification-preferences.service.ts @@ -128,6 +128,8 @@ export class NotificationPreferencesService { return on(ADDON_IDS.VACAY); case 'collection_invite': return on(ADDON_IDS.COLLECTIONS); + case 'journey_invite': + return on(ADDON_IDS.JOURNEY); case 'collab_message': return on(ADDON_IDS.COLLAB); case 'packing_tagged': diff --git a/server/src/nest/notifications/notifications.service.ts b/server/src/nest/notifications/notifications.service.ts index 04b067285..c844b268e 100644 --- a/server/src/nest/notifications/notifications.service.ts +++ b/server/src/nest/notifications/notifications.service.ts @@ -238,6 +238,14 @@ const EVENT_NOTIFICATION_CONFIG: Record = { navigateTextKey: 'notif.action.view_collection', navigateTarget: (p) => (p.collectionId ? `/collections/${p.collectionId}` : '/collections'), }, + // Somebody added you to their journey (#1669): the button opens it. + journey_invite: { + inAppType: 'navigate', + titleKey: 'notif.journey_invite.title', + textKey: 'notif.journey_invite.text', + navigateTextKey: 'notif.action.view_journey', + navigateTarget: (p) => (p.journeyId ? `/journey/${p.journeyId}` : '/journey'), + }, photos_shared: { inAppType: 'navigate', titleKey: 'notif.photos_shared.title', diff --git a/server/src/nest/notifications/transports/ntfy.service.ts b/server/src/nest/notifications/transports/ntfy.service.ts index 515deb575..bd8ad03bf 100644 --- a/server/src/nest/notifications/transports/ntfy.service.ts +++ b/server/src/nest/notifications/transports/ntfy.service.ts @@ -31,6 +31,7 @@ const NTFY_EVENT_META: Partial { expect((await findRow(orm, JourneyShareTokens, { token }))?.view_count).toBe(0); }); }); + +describe('the journey invite notification', () => { + it('JPUBLINK-E2E-030: a new contributor hears about the journey once, a role change says nothing', async () => { + const { user: owner } = await makeUser(orm, { username: 'owner_jp' }); + const { user: friend } = await makeUser(orm); + const journey = await makeJourney(orm, owner.id, { title: 'Iceland ring road' }); + const notifications = app.get(NotificationsService, { strict: false }); + + const add = (role: string) => + request(server) + .post(`/api/journeys/${journey.id}/contributors`) + .set('Cookie', sessionCookie(owner.id)) + .send({ user_id: friend.id, role }); + + const invites = { recipient: friend.id, title_key: 'notif.journey_invite.title' }; + + expect((await add('viewer')).status).toBe(201); + await notifications.settled(); + const sent = await findRow(orm, Notifications, invites); + expect(sent).toMatchObject({ navigate_target: `/journey/${journey.id}` }); + expect(JSON.parse(String(sent?.text_params))).toMatchObject({ actor: 'owner_jp', journey: 'Iceland ring road' }); + + // Posting the same person again only changes the role. + expect((await add('editor')).status).toBe(201); + await notifications.settled(); + expect(await countRows(orm, Notifications, invites)).toBe(1); + }); +}); diff --git a/server/tests/integration/broadcast-parity/user.cases.ts b/server/tests/integration/broadcast-parity/user.cases.ts index 96d540c2a..fc3d6b93b 100644 --- a/server/tests/integration/broadcast-parity/user.cases.ts +++ b/server/tests/integration/broadcast-parity/user.cases.ts @@ -466,6 +466,8 @@ const journeyCases: ParityCase[] = [ { tool: 'add_journey_contributor', needs: ['journey', 'member'], + // The journey_invite notification (#1669) is held back, like the other invites. + stub: quietNotifications, args: (s) => ({ journeyId: s.journey.id, targetUserId: s.member.id, role: 'viewer' }), rest: { method: 'post', diff --git a/shared/src/i18n/ar/externalNotifications.ts b/shared/src/i18n/ar/externalNotifications.ts index d679b523f..d046bbca3 100644 --- a/shared/src/i18n/ar/externalNotifications.ts +++ b/shared/src/i18n/ar/externalNotifications.ts @@ -49,6 +49,10 @@ const ar: NotificationLocale = { title: 'دعوة إلى مجموعة', body: `${p.actor} يدعوك لمشاركة مجموعة. افتح TREK للقبول أو الرفض.`, }), + journey_invite: (p) => ({ + title: `دعوة إلى يوميات: "${p.journey}"`, + body: `${p.actor} أضافك إلى اليوميات "${p.journey}". افتح TREK لتطّلع عليها.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'ar', { zero: 'لم تتم مشاركة أي صورة', diff --git a/shared/src/i18n/ar/notif.ts b/shared/src/i18n/ar/notif.ts index 4d628dd93..e16bebc8b 100644 --- a/shared/src/i18n/ar/notif.ts +++ b/shared/src/i18n/ar/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} شارك تقويم إجازاته معك', 'notif.collection_invite.title': 'دعوة إلى مجموعة', 'notif.collection_invite.text': '{actor} يدعوك لمشاركة مجموعة', + 'notif.journey_invite.title': 'دعوة إلى يوميات', + 'notif.journey_invite.text': '{actor} أضافك إلى اليوميات {journey}', 'notif.photos_shared.title': 'تمت مشاركة الصور', 'notif.photos_shared.text': '{actor} شارك {count} صورة في {trip}', 'notif.photos_shared.text.zero': '{actor} لم يشارك أي صورة في {trip}', @@ -50,6 +52,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'عرض الصور', 'notif.action.view_vacay': 'عرض Vacay', 'notif.action.view_collection': 'عرض المجموعة', + 'notif.action.view_journey': 'عرض اليوميات', 'notif.action.view_admin': 'الذهاب للإدارة', 'notif.wanderer_source_hint.title': 'درب wanderer', 'notif.wanderer_source_hint.possible_change': 'ربما تغيّر «{tour}» في {trip} على wanderer', diff --git a/shared/src/i18n/ar/settings.ts b/shared/src/i18n/ar/settings.ts index a77f11c8a..b4e6add06 100644 --- a/shared/src/i18n/ar/settings.ts +++ b/shared/src/i18n/ar/settings.ts @@ -128,6 +128,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'دعوات دمج الإجازات', 'settings.notifyVacayShare': 'مشاركات تقويم Vacay', 'settings.notifyCollectionInvite': 'دعوات المجموعات', + 'settings.notifyJourneyInvite': 'دعوات اليوميات', 'settings.notifySynologySessionCleared': 'تمت إعادة تعيين جلسة Synology', 'settings.notifyPluginNotification': 'إشعارات المكونات الإضافية', 'settings.notifyPhotosShared': 'صور مشتركة (Immich)', diff --git a/shared/src/i18n/az/externalNotifications.ts b/shared/src/i18n/az/externalNotifications.ts index 503ee56f2..06eb95cb5 100644 --- a/shared/src/i18n/az/externalNotifications.ts +++ b/shared/src/i18n/az/externalNotifications.ts @@ -49,6 +49,10 @@ const az: NotificationLocale = { title: 'Kolleksiya dəvəti', body: `${p.actor} sizi kolleksiyanı paylaşmağa dəvət etdi. Qəbul və ya rədd etmək üçün TREK-i açın.`, }), + journey_invite: (p) => ({ + title: `Gündəliyə dəvət: "${p.journey}"`, + body: `${p.actor} sizi "${p.journey}" səyahət gündəliyinə əlavə etdi. Baxmaq üçün TREK-i açın.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'az', { one: `${p.count} foto paylaşıldı`, other: `${p.count} foto paylaşıldı` }), body: pluralForm(p.count, 'az', { diff --git a/shared/src/i18n/az/notif.ts b/shared/src/i18n/az/notif.ts index 631d07698..35ff8cf3b 100644 --- a/shared/src/i18n/az/notif.ts +++ b/shared/src/i18n/az/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} tətil təqvimini sizinlə paylaşdı', 'notif.collection_invite.title': 'Kolleksiyaya dəvət', 'notif.collection_invite.text': '{actor} sizi kolleksiyanı paylaşmağa dəvət etdi', + 'notif.journey_invite.title': 'Səyahət gündəliyinə dəvət', + 'notif.journey_invite.text': '{actor} sizi {journey} gündəliyinə əlavə etdi', 'notif.photos_shared.title': 'Fotolar paylaşıldı', 'notif.photos_shared.text': '{actor} {trip} səyahətində {count} foto paylaşdı', 'notif.photos_shared.text.one': '{actor} {trip} səyahətində {count} foto paylaşdı', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Fotolara bax', 'notif.action.view_vacay': 'Tətilə bax', 'notif.action.view_collection': 'Kolleksiyaya bax', + 'notif.action.view_journey': 'Gündəliyə bax', 'notif.action.view_admin': 'İdarəetməyə keç', 'notif.wanderer_source_hint.title': 'wanderer marşrutu', 'notif.wanderer_source_hint.possible_change': '{trip} içində "{tour}" wanderer-də dəyişmiş ola bilər', diff --git a/shared/src/i18n/az/settings.ts b/shared/src/i18n/az/settings.ts index 3e3599144..2b6ada696 100644 --- a/shared/src/i18n/az/settings.ts +++ b/shared/src/i18n/az/settings.ts @@ -159,6 +159,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Vacay birləşdirmə dəvətləri', 'settings.notifyVacayShare': 'Vacay təqvim paylaşımları', 'settings.notifyCollectionInvite': 'Kolleksiya dəvətləri', + 'settings.notifyJourneyInvite': 'Səyahət gündəliyi dəvətləri', 'settings.notifySynologySessionCleared': 'Synology sessiyası təmizləndi', 'settings.notifyPluginNotification': 'Plagin bildirişləri', 'settings.notifyPhotosShared': 'Paylaşılan fotolar (Immich)', diff --git a/shared/src/i18n/br/externalNotifications.ts b/shared/src/i18n/br/externalNotifications.ts index 17f7b59c0..43955df89 100644 --- a/shared/src/i18n/br/externalNotifications.ts +++ b/shared/src/i18n/br/externalNotifications.ts @@ -49,6 +49,10 @@ const br: NotificationLocale = { title: 'Convite para coleção', body: `${p.actor} convidou você para compartilhar uma coleção. Abra o TREK para aceitar ou recusar.`, }), + journey_invite: (p) => ({ + title: `Convite para jornada: "${p.journey}"`, + body: `${p.actor} adicionou você à jornada "${p.journey}". Abra o TREK para acompanhar.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'pt-BR', { one: `${p.count} foto compartilhada`, diff --git a/shared/src/i18n/br/notif.ts b/shared/src/i18n/br/notif.ts index 15d92ca47..9ddda012a 100644 --- a/shared/src/i18n/br/notif.ts +++ b/shared/src/i18n/br/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} compartilhou o calendário de férias com você', 'notif.collection_invite.title': 'Convite para coleção', 'notif.collection_invite.text': '{actor} convidou você para uma coleção', + 'notif.journey_invite.title': 'Convite para jornada', + 'notif.journey_invite.text': '{actor} adicionou você à jornada {journey}', 'notif.photos_shared.title': 'Fotos compartilhadas', 'notif.photos_shared.text': '{actor} compartilhou {count} fotos em {trip}', 'notif.photos_shared.text.one': '{actor} compartilhou {count} foto em {trip}', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Ver fotos', 'notif.action.view_vacay': 'Ver Vacay', 'notif.action.view_collection': 'Ver coleção', + 'notif.action.view_journey': 'Ver jornada', 'notif.action.view_admin': 'Ir para admin', 'notif.wanderer_source_hint.title': 'Trilha do wanderer', 'notif.wanderer_source_hint.possible_change': '“{tour}” em {trip} pode ter mudado no wanderer', diff --git a/shared/src/i18n/br/settings.ts b/shared/src/i18n/br/settings.ts index 0f178cbd4..6cd5f3cf9 100644 --- a/shared/src/i18n/br/settings.ts +++ b/shared/src/i18n/br/settings.ts @@ -131,6 +131,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Convites de fusão Vacay', 'settings.notifyVacayShare': 'Compartilhamentos de calendário Vacay', 'settings.notifyCollectionInvite': 'Convites para coleções', + 'settings.notifyJourneyInvite': 'Convites para jornadas', 'settings.notifySynologySessionCleared': 'Sessão Synology encerrada', 'settings.notifyPluginNotification': 'Notificações de plugins', 'settings.notifyPhotosShared': 'Fotos compartilhadas (Immich)', diff --git a/shared/src/i18n/ca/externalNotifications.ts b/shared/src/i18n/ca/externalNotifications.ts index 7a48ff044..6fc374130 100644 --- a/shared/src/i18n/ca/externalNotifications.ts +++ b/shared/src/i18n/ca/externalNotifications.ts @@ -87,6 +87,10 @@ const ca: NotificationLocale = { title: 'Invitació a una col·lecció', body: `${p.actor} t'ha convidat a compartir una col·lecció. Obre TREK per acceptar-la o rebutjar-la.`, }), + journey_invite: (p) => ({ + title: `Invitació a una travesia: "${p.journey}"`, + body: `${p.actor} t'ha afegit a la travesia "${p.journey}". Obre TREK per veure-la.`, + }), wanderer_source_hint: (p) => ({ title: `Camí de wanderer: ${p.tour}`, body: diff --git a/shared/src/i18n/ca/notif.ts b/shared/src/i18n/ca/notif.ts index 3b31c28f6..050018c8f 100644 --- a/shared/src/i18n/ca/notif.ts +++ b/shared/src/i18n/ca/notif.ts @@ -59,7 +59,10 @@ const notif: TranslationStrings = { 'notif.collection_invite.title': 'Invitació a una col·lecció', 'notif.collection_invite.text': "{actor} t'ha enviat una invitació per compartir una col·lecció", + 'notif.journey_invite.title': 'Invitació a una travesia', + 'notif.journey_invite.text': "{actor} t'ha afegit a la travesia {journey}", 'notif.action.view_collection': 'Veure col·lecció', + 'notif.action.view_journey': 'Veure la travesia', 'notif.mail_booking_added.title': 'Reserva afegida des d’un correu', 'notif.mail_booking_added.text': '{booking} s’ha afegit a {trip}', 'notif.mail_booking_added.shared': '{actor} ha afegit {booking} a {trip} des d’un correu reenviat', diff --git a/shared/src/i18n/ca/settings.ts b/shared/src/i18n/ca/settings.ts index 040ce7d25..b8c00bd9f 100644 --- a/shared/src/i18n/ca/settings.ts +++ b/shared/src/i18n/ca/settings.ts @@ -108,6 +108,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Invitacions de fusió Vacay', 'settings.notifyVacayShare': 'Comparticions de calendari Vacay', 'settings.notifyCollectionInvite': 'Invitacions a col·leccions', + 'settings.notifyJourneyInvite': 'Invitacions a travesies', 'settings.notifySynologySessionCleared': 'Sessió de Synology tancada', 'settings.notifyPluginNotification': 'Notificacions de connectors', 'settings.notifyPhotosShared': 'Fotos compartides (Immich)', diff --git a/shared/src/i18n/cs/externalNotifications.ts b/shared/src/i18n/cs/externalNotifications.ts index a3472d191..ab99fd838 100644 --- a/shared/src/i18n/cs/externalNotifications.ts +++ b/shared/src/i18n/cs/externalNotifications.ts @@ -49,6 +49,10 @@ const cs: NotificationLocale = { 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í.`, }), + journey_invite: (p) => ({ + title: `Pozvánka do deníku: "${p.journey}"`, + body: `${p.actor} vás přidal(a) do cestovního deníku "${p.journey}". Otevřete TREK a podívejte se.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'cs', { one: `${p.count} sdílená fotka`, diff --git a/shared/src/i18n/cs/notif.ts b/shared/src/i18n/cs/notif.ts index f79f8bd22..82acf6409 100644 --- a/shared/src/i18n/cs/notif.ts +++ b/shared/src/i18n/cs/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} s vámi sdílel svůj kalendář dovolených', 'notif.collection_invite.title': 'Pozvánka do sbírky', 'notif.collection_invite.text': '{actor} vás pozval do sbírky', + 'notif.journey_invite.title': 'Pozvánka do cestovního deníku', + 'notif.journey_invite.text': '{actor} vás přidal(a) do deníku {journey}', 'notif.photos_shared.title': 'Fotky sdíleny', 'notif.photos_shared.text': '{actor} sdílel {count} fotek v {trip}', 'notif.photos_shared.text.one': '{actor} sdílel {count} fotku v {trip}', @@ -47,6 +49,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Zobrazit fotky', 'notif.action.view_vacay': 'Zobrazit Vacay', 'notif.action.view_collection': 'Zobrazit sbírku', + 'notif.action.view_journey': 'Zobrazit deník', 'notif.action.view_admin': 'Jít do adminu', 'notif.wanderer_source_hint.title': 'Trasa wanderer', 'notif.wanderer_source_hint.possible_change': '„{tour}“ v {trip} se ve wanderer možná změnila', diff --git a/shared/src/i18n/cs/settings.ts b/shared/src/i18n/cs/settings.ts index 5c10e50e8..a7e7b483b 100644 --- a/shared/src/i18n/cs/settings.ts +++ b/shared/src/i18n/cs/settings.ts @@ -127,6 +127,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Pozvánky k propojení Vacay', 'settings.notifyVacayShare': 'Sdílení kalendáře Vacay', 'settings.notifyCollectionInvite': 'Pozvánky do sbírek', + 'settings.notifyJourneyInvite': 'Pozvánky do cestovních deníků', 'settings.notifySynologySessionCleared': 'Relace Synology byla zrušena', 'settings.notifyPluginNotification': 'Oznámení pluginů', 'settings.notifyPhotosShared': 'Sdílené fotky (Immich)', diff --git a/shared/src/i18n/de/externalNotifications.ts b/shared/src/i18n/de/externalNotifications.ts index 84369d4f8..d725f0bb3 100644 --- a/shared/src/i18n/de/externalNotifications.ts +++ b/shared/src/i18n/de/externalNotifications.ts @@ -49,6 +49,10 @@ const de: NotificationLocale = { title: 'Sammlungs-Einladung', body: `${p.actor} hat dich eingeladen, eine Sammlung zu teilen. Öffne TREK um anzunehmen oder abzulehnen.`, }), + journey_invite: (p) => ({ + title: `Journey-Einladung: "${p.journey}"`, + body: `${p.actor} hat dich zur Journey "${p.journey}" hinzugefügt. Öffne TREK, um reinzuschauen.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'de', { one: `${p.count} Foto geteilt`, other: `${p.count} Fotos geteilt` }), body: pluralForm(p.count, 'de', { diff --git a/shared/src/i18n/de/notif.ts b/shared/src/i18n/de/notif.ts index a8e4eadee..28a710fc7 100644 --- a/shared/src/i18n/de/notif.ts +++ b/shared/src/i18n/de/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} hat den eigenen Urlaubskalender mit dir geteilt', 'notif.collection_invite.title': 'Sammlungs-Einladung', 'notif.collection_invite.text': '{actor} hat dich zu einer Sammlung eingeladen', + 'notif.journey_invite.title': 'Journey-Einladung', + 'notif.journey_invite.text': '{actor} hat dich zu {journey} hinzugefügt', 'notif.photos_shared.title': 'Fotos geteilt', 'notif.photos_shared.text': '{actor} hat {count} Fotos in {trip} geteilt', 'notif.photos_shared.text.one': '{actor} hat {count} Foto in {trip} geteilt', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Fotos ansehen', 'notif.action.view_vacay': 'Vacay ansehen', 'notif.action.view_collection': 'Sammlung ansehen', + 'notif.action.view_journey': 'Journey ansehen', 'notif.action.view_admin': 'Zum Admin', 'notif.wanderer_source_hint.title': 'wanderer-Trail', 'notif.wanderer_source_hint.possible_change': '„{tour}“ in {trip} hat sich in wanderer möglicherweise geändert', diff --git a/shared/src/i18n/de/settings.ts b/shared/src/i18n/de/settings.ts index e91b66633..0d2522945 100644 --- a/shared/src/i18n/de/settings.ts +++ b/shared/src/i18n/de/settings.ts @@ -131,6 +131,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Vacay Fusion-Einladungen', 'settings.notifyVacayShare': 'Vacay Kalender-Freigaben', 'settings.notifyCollectionInvite': 'Sammlungs-Einladungen', + 'settings.notifyJourneyInvite': 'Journey-Einladungen', 'settings.notifySynologySessionCleared': 'Synology-Sitzung beendet', 'settings.notifyPluginNotification': 'Plugin-Benachrichtigungen', 'settings.notifyPhotosShared': 'Geteilte Fotos (Immich)', diff --git a/shared/src/i18n/en/externalNotifications.ts b/shared/src/i18n/en/externalNotifications.ts index 992a98258..75878c230 100644 --- a/shared/src/i18n/en/externalNotifications.ts +++ b/shared/src/i18n/en/externalNotifications.ts @@ -49,6 +49,10 @@ const en: NotificationLocale = { title: 'Collection invite', body: `${p.actor} invited you to share a collection. Open TREK to accept or decline.`, }), + journey_invite: (p) => ({ + title: `Journey invite: "${p.journey}"`, + body: `${p.actor} added you to the journey "${p.journey}". Open TREK to read along.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'en', { one: `${p.count} photo shared`, other: `${p.count} photos shared` }), body: pluralForm(p.count, 'en', { diff --git a/shared/src/i18n/en/notif.ts b/shared/src/i18n/en/notif.ts index 555978e0f..7dda78481 100644 --- a/shared/src/i18n/en/notif.ts +++ b/shared/src/i18n/en/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} shared their vacation calendar with you', 'notif.collection_invite.title': 'Collection invite', 'notif.collection_invite.text': '{actor} invited you to share a collection', + 'notif.journey_invite.title': 'Journey invite', + 'notif.journey_invite.text': '{actor} added you to {journey}', 'notif.photos_shared.title': 'Photos Shared', 'notif.photos_shared.text': '{actor} shared {count} photos in {trip}', 'notif.photos_shared.text.one': '{actor} shared {count} photo in {trip}', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'View Photos', 'notif.action.view_vacay': 'View Vacay', 'notif.action.view_collection': 'View Collection', + 'notif.action.view_journey': 'View Journey', 'notif.action.view_admin': 'Go to Admin', 'notif.wanderer_source_hint.title': 'wanderer trail', 'notif.wanderer_source_hint.possible_change': '“{tour}” in {trip} may have changed in wanderer', diff --git a/shared/src/i18n/en/settings.ts b/shared/src/i18n/en/settings.ts index 672b826f0..c32ae63e4 100644 --- a/shared/src/i18n/en/settings.ts +++ b/shared/src/i18n/en/settings.ts @@ -140,6 +140,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Vacay fusion invitations', 'settings.notifyVacayShare': 'Vacay calendar shares', 'settings.notifyCollectionInvite': 'Collection invitations', + 'settings.notifyJourneyInvite': 'Journey invitations', 'settings.notifySynologySessionCleared': 'Synology session cleared', 'settings.notifyPluginNotification': 'Plugin notifications', 'settings.notifyPhotosShared': 'Shared photos (Immich)', diff --git a/shared/src/i18n/es/externalNotifications.ts b/shared/src/i18n/es/externalNotifications.ts index f5ed22cf4..4dacb8a63 100644 --- a/shared/src/i18n/es/externalNotifications.ts +++ b/shared/src/i18n/es/externalNotifications.ts @@ -49,6 +49,10 @@ const es: NotificationLocale = { title: 'Invitación a colección', body: `${p.actor} te invitó a compartir una colección. Abre TREK para aceptar o rechazar.`, }), + journey_invite: (p) => ({ + title: `Invitación a una travesía: "${p.journey}"`, + body: `${p.actor} te ha añadido a la travesía "${p.journey}". Abre TREK para verla.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'es', { one: `${p.count} foto compartida`, other: `${p.count} fotos compartidas` }), body: pluralForm(p.count, 'es', { diff --git a/shared/src/i18n/es/notif.ts b/shared/src/i18n/es/notif.ts index 84338dcc5..159e7c30e 100644 --- a/shared/src/i18n/es/notif.ts +++ b/shared/src/i18n/es/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} compartió su calendario de vacaciones contigo', 'notif.collection_invite.title': 'Invitación a colección', 'notif.collection_invite.text': '{actor} te invitó a una colección', + 'notif.journey_invite.title': 'Invitación a una travesía', + 'notif.journey_invite.text': '{actor} te ha añadido a la travesía {journey}', 'notif.photos_shared.title': 'Fotos compartidas', 'notif.photos_shared.text': '{actor} compartió {count} fotos en {trip}', 'notif.photos_shared.text.one': '{actor} compartió {count} foto en {trip}', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Ver fotos', 'notif.action.view_vacay': 'Ver Vacay', 'notif.action.view_collection': 'Ver colección', + 'notif.action.view_journey': 'Ver travesía', 'notif.action.view_admin': 'Ir al admin', 'notif.wanderer_source_hint.title': 'Ruta de wanderer', 'notif.wanderer_source_hint.possible_change': '«{tour}» en {trip} puede haber cambiado en wanderer', diff --git a/shared/src/i18n/es/settings.ts b/shared/src/i18n/es/settings.ts index 71fbe9a5d..e1ceeedab 100644 --- a/shared/src/i18n/es/settings.ts +++ b/shared/src/i18n/es/settings.ts @@ -130,6 +130,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Invitaciones de fusión Vacay', 'settings.notifyVacayShare': 'Calendarios Vacay compartidos', 'settings.notifyCollectionInvite': 'Invitaciones a colecciones', + 'settings.notifyJourneyInvite': 'Invitaciones a travesías', 'settings.notifySynologySessionCleared': 'Sesión de Synology cerrada', 'settings.notifyPluginNotification': 'Notificaciones de plugins', 'settings.notifyPhotosShared': 'Fotos compartidas (Immich)', diff --git a/shared/src/i18n/et/externalNotifications.ts b/shared/src/i18n/et/externalNotifications.ts index 9f5e39118..c75316b7f 100644 --- a/shared/src/i18n/et/externalNotifications.ts +++ b/shared/src/i18n/et/externalNotifications.ts @@ -50,6 +50,10 @@ const et: NotificationLocale = { title: 'Kogumiku kutse', body: `${p.actor} kutsus sind kogumikku jagama. Nõustumiseks või keeldumiseks ava TREK.`, }), + journey_invite: (p) => ({ + title: `Reisiloo kutse: "${p.journey}"`, + body: `${p.actor} lisas sind reisiloo "${p.journey}" juurde. Ava TREK, et seda vaadata.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'et', { one: `Jagatud ${p.count} foto`, other: `Jagatud ${p.count} fotot` }), body: pluralForm(p.count, 'et', { diff --git a/shared/src/i18n/et/notif.ts b/shared/src/i18n/et/notif.ts index 03f4fc071..1b8ea127b 100644 --- a/shared/src/i18n/et/notif.ts +++ b/shared/src/i18n/et/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} jagas sinuga oma puhkusekalendrit', 'notif.collection_invite.title': 'Kogumiku kutse', 'notif.collection_invite.text': '{actor} kutsus sind kogumikku jagama', + 'notif.journey_invite.title': 'Reisiloo kutse', + 'notif.journey_invite.text': '{actor} lisas sind reisiloo {journey} juurde', 'notif.photos_shared.title': 'Fotod jagatud', 'notif.photos_shared.text': '{actor} jagas reisil {trip} {count} fotot', 'notif.photos_shared.text.one': '{actor} jagas reisil {trip} {count} foto', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Vaata fotosid', 'notif.action.view_vacay': 'Vaata Vacayd', 'notif.action.view_collection': 'Vaata kogumikku', + 'notif.action.view_journey': 'Vaata reisilugu', 'notif.action.view_admin': 'Ava haldus', 'notif.wanderer_source_hint.title': 'wanderer rada', 'notif.wanderer_source_hint.possible_change': '„{tour}“ reisil {trip} võib olla wandereris muutunud', diff --git a/shared/src/i18n/et/settings.ts b/shared/src/i18n/et/settings.ts index 5934bc6c5..2807220ed 100644 --- a/shared/src/i18n/et/settings.ts +++ b/shared/src/i18n/et/settings.ts @@ -145,6 +145,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Vacay ühendamiskutsed', 'settings.notifyVacayShare': 'Vacay kalendri jagamised', 'settings.notifyCollectionInvite': 'Kogumikukutsed', + 'settings.notifyJourneyInvite': 'Reisiloo kutsed', 'settings.notifySynologySessionCleared': 'Synology seanss tühjendatud', 'settings.notifyPluginNotification': 'Pluginate teavitused', 'settings.notifyPhotosShared': 'Jagatud fotod (Immich)', diff --git a/shared/src/i18n/externalNotifications/types.ts b/shared/src/i18n/externalNotifications/types.ts index 912a25f49..6dca59b7c 100644 --- a/shared/src/i18n/externalNotifications/types.ts +++ b/shared/src/i18n/externalNotifications/types.ts @@ -32,6 +32,7 @@ export type NotificationEventKey = | 'vacay_invite' | 'vacay_share' | 'collection_invite' + | 'journey_invite' | 'photos_shared' | 'collab_message' | 'packing_tagged' diff --git a/shared/src/i18n/fr/externalNotifications.ts b/shared/src/i18n/fr/externalNotifications.ts index 169006f06..77f6001c7 100644 --- a/shared/src/i18n/fr/externalNotifications.ts +++ b/shared/src/i18n/fr/externalNotifications.ts @@ -49,6 +49,10 @@ const fr: NotificationLocale = { title: 'Invitation à une collection', body: `${p.actor} vous invite à partager une collection. Ouvrez TREK pour accepter ou refuser.`, }), + journey_invite: (p) => ({ + title: `Invitation à un journal de voyage : "${p.journey}"`, + body: `${p.actor} vous a ajouté au journal de voyage "${p.journey}". Ouvrez TREK pour le découvrir.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'fr', { one: `${p.count} photo partagée`, other: `${p.count} photos partagées` }), body: pluralForm(p.count, 'fr', { diff --git a/shared/src/i18n/fr/notif.ts b/shared/src/i18n/fr/notif.ts index 92b3e1c63..89f950f22 100644 --- a/shared/src/i18n/fr/notif.ts +++ b/shared/src/i18n/fr/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} a partagé son calendrier de vacances avec vous', 'notif.collection_invite.title': 'Invitation à une collection', 'notif.collection_invite.text': '{actor} vous invite à une collection', + 'notif.journey_invite.title': 'Invitation à un journal de voyage', + 'notif.journey_invite.text': '{actor} vous a ajouté au journal de voyage {journey}', 'notif.photos_shared.title': 'Photos partagées', 'notif.photos_shared.text': '{actor} a partagé {count} photos dans {trip}', 'notif.photos_shared.text.one': '{actor} a partagé {count} photo dans {trip}', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Voir les photos', 'notif.action.view_vacay': 'Voir Vacay', 'notif.action.view_collection': 'Voir la collection', + 'notif.action.view_journey': 'Voir le journal', 'notif.action.view_admin': "Aller à l'admin", 'notif.wanderer_source_hint.title': 'Sentier wanderer', 'notif.wanderer_source_hint.possible_change': '« {tour} » dans {trip} a peut-être changé dans wanderer', diff --git a/shared/src/i18n/fr/settings.ts b/shared/src/i18n/fr/settings.ts index 4bb7c5c39..f8bef99b6 100644 --- a/shared/src/i18n/fr/settings.ts +++ b/shared/src/i18n/fr/settings.ts @@ -132,6 +132,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Invitations de fusion Vacay', 'settings.notifyVacayShare': 'Partages de calendrier Vacay', 'settings.notifyCollectionInvite': 'Invitations à des collections', + 'settings.notifyJourneyInvite': 'Invitations aux journaux de voyage', 'settings.notifySynologySessionCleared': 'Session Synology effacée', 'settings.notifyPluginNotification': 'Notifications des extensions', 'settings.notifyPhotosShared': 'Photos partagées (Immich)', diff --git a/shared/src/i18n/gr/externalNotifications.ts b/shared/src/i18n/gr/externalNotifications.ts index 9c8e3cf8b..6c103e7f3 100644 --- a/shared/src/i18n/gr/externalNotifications.ts +++ b/shared/src/i18n/gr/externalNotifications.ts @@ -49,6 +49,10 @@ const gr: NotificationLocale = { title: 'Πρόσκληση σε συλλογή', body: `Ο/Η ${p.actor} σας προσκάλεσε να μοιραστείτε μια συλλογή. Ανοίξτε το TREK για να αποδεχτείτε ή να απορρίψετε.`, }), + journey_invite: (p) => ({ + title: `Πρόσκληση σε ταξίδι: "${p.journey}"`, + body: `Ο χρήστης ${p.actor} σας πρόσθεσε στο ταξίδι "${p.journey}". Ανοίξτε το TREK για να το δείτε.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'el', { one: `${p.count} φωτογραφία κοινοποιήθηκε`, diff --git a/shared/src/i18n/gr/notif.ts b/shared/src/i18n/gr/notif.ts index eff3b06f6..0880242d8 100644 --- a/shared/src/i18n/gr/notif.ts +++ b/shared/src/i18n/gr/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': 'Ο/Η {actor} κοινοποίησε το ημερολόγιο διακοπών του/της σε εσάς', 'notif.collection_invite.title': 'Πρόσκληση σε συλλογή', 'notif.collection_invite.text': 'Ο/Η {actor} σας προσκάλεσε σε μια συλλογή', + 'notif.journey_invite.title': 'Πρόσκληση σε ταξίδι', + 'notif.journey_invite.text': 'Ο χρήστης {actor} σας πρόσθεσε στο ταξίδι {journey}', 'notif.photos_shared.title': 'Κοινοποίηση Φωτογραφιών', 'notif.photos_shared.text': 'Ο/Η {actor} μοιράστηκε {count} φωτογραφίες στο {trip}', 'notif.photos_shared.text.one': 'Ο/Η {actor} μοιράστηκε {count} φωτογραφία στο {trip}', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Προβολή Φωτογραφιών', 'notif.action.view_vacay': 'Προβολή Vacay', 'notif.action.view_collection': 'Προβολή συλλογής', + 'notif.action.view_journey': 'Προβολή ταξιδιού', 'notif.action.view_admin': 'Μετάβαση στη Διαχείριση', 'notif.wanderer_source_hint.title': 'Μονοπάτι wanderer', 'notif.wanderer_source_hint.possible_change': '«{tour}» στο {trip} ίσως άλλαξε στο wanderer', diff --git a/shared/src/i18n/gr/settings.ts b/shared/src/i18n/gr/settings.ts index 2d853b92a..727775dad 100644 --- a/shared/src/i18n/gr/settings.ts +++ b/shared/src/i18n/gr/settings.ts @@ -137,6 +137,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Προσκλήσεις Vacay fusion', 'settings.notifyVacayShare': 'Κοινοποιήσεις ημερολογίου Vacay', 'settings.notifyCollectionInvite': 'Προσκλήσεις σε συλλογές', + 'settings.notifyJourneyInvite': 'Προσκλήσεις σε ταξίδια', 'settings.notifySynologySessionCleared': 'Η σύνδεση Synology τερματίστηκε', 'settings.notifyPluginNotification': 'Ειδοποιήσεις προσθέτων', 'settings.notifyPhotosShared': 'Κοινόχρηστες φωτογραφίες (Immich)', diff --git a/shared/src/i18n/he/externalNotifications.ts b/shared/src/i18n/he/externalNotifications.ts index af0ac826e..6ccb4e2e1 100644 --- a/shared/src/i18n/he/externalNotifications.ts +++ b/shared/src/i18n/he/externalNotifications.ts @@ -49,6 +49,10 @@ const he: NotificationLocale = { title: 'הזמנה לאוסף', body: `${p.actor} הזמין/ה אתכם לשתף אוסף. פתחו את TREK כדי לאשר או לדחות.`, }), + journey_invite: (p) => ({ + title: `הזמנה ליומן מסע: "${p.journey}"`, + body: `${p.actor} הוסיף/ה אותך ליומן המסע "${p.journey}". פתח/י את TREK כדי לצפות בו.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'he', { one: 'תמונה אחת שותפה', diff --git a/shared/src/i18n/he/notif.ts b/shared/src/i18n/he/notif.ts index 73c323df2..c8b5466e6 100644 --- a/shared/src/i18n/he/notif.ts +++ b/shared/src/i18n/he/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} שיתף/ה איתכם את לוח החופשות', 'notif.collection_invite.title': 'הזמנה לאוסף', 'notif.collection_invite.text': '{actor} הזמין/ה אתכם לשתף אוסף', + 'notif.journey_invite.title': 'הזמנה ליומן מסע', + 'notif.journey_invite.text': '{actor} הוסיף/ה אותך ליומן המסע {journey}', 'notif.photos_shared.title': 'תמונות שותפו', 'notif.photos_shared.text': '{actor} שיתף/ה {count} תמונות ב-{trip}', 'notif.photos_shared.text.one': '{actor} שיתף/ה תמונה אחת ב-{trip}', @@ -47,6 +49,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'הצגת תמונות', 'notif.action.view_vacay': 'הצגת חופשות', 'notif.action.view_collection': 'הצגת האוסף', + 'notif.action.view_journey': 'הצגת יומן המסע', 'notif.action.view_admin': 'מעבר לניהול', 'notif.wanderer_source_hint.title': 'מסלול wanderer', 'notif.wanderer_source_hint.possible_change': 'ייתכן ש-„{tour}” ב-{trip} השתנה ב-wanderer', diff --git a/shared/src/i18n/he/settings.ts b/shared/src/i18n/he/settings.ts index bfc55cd38..e08c14955 100644 --- a/shared/src/i18n/he/settings.ts +++ b/shared/src/i18n/he/settings.ts @@ -139,6 +139,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'הזמנות לאיחוד חופשות', 'settings.notifyVacayShare': 'שיתופי לוח חופשות', 'settings.notifyCollectionInvite': 'הזמנות לאוספים', + 'settings.notifyJourneyInvite': 'הזמנות ליומני מסע', 'settings.notifySynologySessionCleared': 'הפעלת Synology נוקתה', 'settings.notifyPluginNotification': 'התראות תוספים', 'settings.notifyPhotosShared': 'תמונות משותפות (Immich)', diff --git a/shared/src/i18n/hu/externalNotifications.ts b/shared/src/i18n/hu/externalNotifications.ts index b4ebcce3d..a94f3e865 100644 --- a/shared/src/i18n/hu/externalNotifications.ts +++ b/shared/src/i18n/hu/externalNotifications.ts @@ -49,6 +49,10 @@ const hu: NotificationLocale = { 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.`, }), + journey_invite: (p) => ({ + title: `Útinapló meghívó: "${p.journey}"`, + body: `${p.actor} hozzáadott a(z) "${p.journey}" útinaplóhoz. Nyisd meg a TREK-et a megtekintéshez.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'hu', { one: `${p.count} fotó megosztva`, other: `${p.count} fotó megosztva` }), body: pluralForm(p.count, 'hu', { diff --git a/shared/src/i18n/hu/notif.ts b/shared/src/i18n/hu/notif.ts index 7c9c8eeb6..0ec37232e 100644 --- a/shared/src/i18n/hu/notif.ts +++ b/shared/src/i18n/hu/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} megosztotta veled a szabadságnaptárát', 'notif.collection_invite.title': 'Gyűjtemény meghívó', 'notif.collection_invite.text': '{actor} meghívott egy gyűjteménybe', + 'notif.journey_invite.title': 'Útinapló meghívó', + 'notif.journey_invite.text': '{actor} hozzáadott a(z) {journey} útinaplóhoz', 'notif.photos_shared.title': 'Fotók megosztva', 'notif.photos_shared.text': '{actor} {count} fotót osztott meg a(z) {trip} utazásban', 'notif.photos_shared.text.one': '{actor} {count} fotót osztott meg a(z) {trip} utazásban', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { '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_journey': 'Útinapló megtekintése', 'notif.action.view_admin': 'Admin megnyitása', 'notif.wanderer_source_hint.title': 'wanderer útvonal', 'notif.wanderer_source_hint.possible_change': '„{tour}” ({trip}) megváltozhatott a wandererben', diff --git a/shared/src/i18n/hu/settings.ts b/shared/src/i18n/hu/settings.ts index 632f4bd7f..507a22f3b 100644 --- a/shared/src/i18n/hu/settings.ts +++ b/shared/src/i18n/hu/settings.ts @@ -130,6 +130,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Vacay összevonási meghívók', 'settings.notifyVacayShare': 'Vacay naptármegosztások', 'settings.notifyCollectionInvite': 'Gyűjteménymeghívók', + 'settings.notifyJourneyInvite': 'Útinapló meghívók', 'settings.notifySynologySessionCleared': 'Synology munkamenet törölve', 'settings.notifyPluginNotification': 'Bővítményértesítések', 'settings.notifyPhotosShared': 'Megosztott fotók (Immich)', diff --git a/shared/src/i18n/id/externalNotifications.ts b/shared/src/i18n/id/externalNotifications.ts index 6efbb4dcb..99a6609da 100644 --- a/shared/src/i18n/id/externalNotifications.ts +++ b/shared/src/i18n/id/externalNotifications.ts @@ -48,6 +48,10 @@ const id: NotificationLocale = { title: 'Undangan koleksi', body: `${p.actor} mengundang Anda untuk berbagi koleksi. Buka TREK untuk menerima atau menolak.`, }), + journey_invite: (p) => ({ + title: `Undangan jurnal perjalanan: "${p.journey}"`, + body: `${p.actor} menambahkan Anda ke jurnal perjalanan "${p.journey}". Buka TREK untuk melihatnya.`, + }), photos_shared: (p) => ({ title: `${p.count} foto dibagikan`, body: `${p.actor} membagikan ${p.count} foto di "${p.trip}".`, diff --git a/shared/src/i18n/id/notif.ts b/shared/src/i18n/id/notif.ts index a2de41e41..ac11ae00d 100644 --- a/shared/src/i18n/id/notif.ts +++ b/shared/src/i18n/id/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} membagikan kalender cutinya denganmu', 'notif.collection_invite.title': 'Undangan koleksi', 'notif.collection_invite.text': '{actor} mengundang Anda ke koleksi', + 'notif.journey_invite.title': 'Undangan jurnal perjalanan', + 'notif.journey_invite.text': '{actor} menambahkan Anda ke jurnal perjalanan {journey}', 'notif.photos_shared.title': 'Foto Dibagikan', 'notif.photos_shared.text': '{actor} membagikan {count} foto di {trip}', 'notif.collab_message.title': 'Pesan Baru', @@ -45,6 +47,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Lihat Foto', 'notif.action.view_vacay': 'Lihat Vacay', 'notif.action.view_collection': 'Lihat koleksi', + 'notif.action.view_journey': 'Lihat jurnal', 'notif.action.view_admin': 'Ke Admin', 'notif.wanderer_source_hint.title': 'Jalur wanderer', 'notif.wanderer_source_hint.possible_change': '“{tour}” di {trip} mungkin berubah di wanderer', diff --git a/shared/src/i18n/id/settings.ts b/shared/src/i18n/id/settings.ts index bb00129f0..f8ab03c40 100644 --- a/shared/src/i18n/id/settings.ts +++ b/shared/src/i18n/id/settings.ts @@ -126,6 +126,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Undangan Vacay fusion', 'settings.notifyVacayShare': 'Berbagi kalender Vacay', 'settings.notifyCollectionInvite': 'Undangan koleksi', + 'settings.notifyJourneyInvite': 'Undangan jurnal perjalanan', 'settings.notifySynologySessionCleared': 'Sesi Synology dihapus', 'settings.notifyPluginNotification': 'Notifikasi plugin', 'settings.notifyPhotosShared': 'Foto dibagikan (Immich)', diff --git a/shared/src/i18n/it/externalNotifications.ts b/shared/src/i18n/it/externalNotifications.ts index 4279905af..df6d9a406 100644 --- a/shared/src/i18n/it/externalNotifications.ts +++ b/shared/src/i18n/it/externalNotifications.ts @@ -49,6 +49,10 @@ const it: NotificationLocale = { title: 'Invito a una raccolta', body: `${p.actor} ti ha invitato a condividere una raccolta. Apri TREK per accettare o rifiutare.`, }), + journey_invite: (p) => ({ + title: `Invito a un diario di viaggio: "${p.journey}"`, + body: `${p.actor} ti ha aggiunto al diario di viaggio "${p.journey}". Apri TREK per leggerlo.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'it', { one: `${p.count} foto condivisa`, other: `${p.count} foto condivise` }), body: `${p.actor} ha condiviso ${p.count} foto in "${p.trip}".`, diff --git a/shared/src/i18n/it/notif.ts b/shared/src/i18n/it/notif.ts index c8a101106..6bd6d6f58 100644 --- a/shared/src/i18n/it/notif.ts +++ b/shared/src/i18n/it/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} ha condiviso con te il suo calendario ferie', 'notif.collection_invite.title': 'Invito a una raccolta', 'notif.collection_invite.text': '{actor} ti ha invitato a una raccolta', + 'notif.journey_invite.title': 'Invito a un diario di viaggio', + 'notif.journey_invite.text': '{actor} ti ha aggiunto al diario di viaggio {journey}', 'notif.photos_shared.title': 'Foto condivise', 'notif.photos_shared.text': '{actor} ha condiviso {count} foto in {trip}', 'notif.photos_shared.text.one': '{actor} ha condiviso {count} foto in {trip}', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Vedi foto', 'notif.action.view_vacay': 'Vedi Vacay', 'notif.action.view_collection': 'Vedi raccolta', + 'notif.action.view_journey': 'Vedi diario', 'notif.action.view_admin': "Vai all'admin", 'notif.wanderer_source_hint.title': 'Sentiero wanderer', 'notif.wanderer_source_hint.possible_change': '«{tour}» in {trip} potrebbe essere cambiato in wanderer', diff --git a/shared/src/i18n/it/settings.ts b/shared/src/i18n/it/settings.ts index 7e165ef8c..c9a6a32a2 100644 --- a/shared/src/i18n/it/settings.ts +++ b/shared/src/i18n/it/settings.ts @@ -129,6 +129,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Inviti fusione Vacay', 'settings.notifyVacayShare': 'Condivisioni calendario Vacay', 'settings.notifyCollectionInvite': 'Inviti alle raccolte', + 'settings.notifyJourneyInvite': 'Inviti ai diari di viaggio', 'settings.notifySynologySessionCleared': 'Sessione Synology rimossa', 'settings.notifyPluginNotification': 'Notifiche dei plugin', 'settings.notifyPhotosShared': 'Foto condivise (Immich)', diff --git a/shared/src/i18n/ja/externalNotifications.ts b/shared/src/i18n/ja/externalNotifications.ts index 4d19442ce..e5bb4300c 100644 --- a/shared/src/i18n/ja/externalNotifications.ts +++ b/shared/src/i18n/ja/externalNotifications.ts @@ -48,6 +48,10 @@ const ja: NotificationLocale = { title: 'コレクション招待', body: `${p.actor}がコレクションの共有に招待しています。TREKを開いて承認または拒否してください。`, }), + journey_invite: (p) => ({ + title: `日記への招待:「${p.journey}」`, + body: `${p.actor}さんがあなたを日記「${p.journey}」に追加しました。TREKを開いてご覧ください。`, + }), photos_shared: (p) => ({ title: `${p.count}枚の写真が共有されました`, body: `${p.actor}が「${p.trip}」で${p.count}枚の写真を共有しました。`, diff --git a/shared/src/i18n/ja/notif.ts b/shared/src/i18n/ja/notif.ts index 0dcfa7a70..9ea535cd0 100644 --- a/shared/src/i18n/ja/notif.ts +++ b/shared/src/i18n/ja/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor}が休暇カレンダーを共有しました', 'notif.collection_invite.title': 'コレクション招待', 'notif.collection_invite.text': '{actor}がコレクションに招待しました', + 'notif.journey_invite.title': '日記への招待', + 'notif.journey_invite.text': '{actor}さんがあなたを日記「{journey}」に追加しました', 'notif.photos_shared.title': '写真が共有されました', 'notif.photos_shared.text': '{actor}が「{trip}」で{count}枚の写真を共有しました', 'notif.collab_message.title': '新しいメッセージ', @@ -45,6 +47,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': '写真を見る', 'notif.action.view_vacay': 'Vacayを見る', 'notif.action.view_collection': 'コレクションを見る', + 'notif.action.view_journey': '日記を見る', 'notif.action.view_admin': '管理画面へ', 'notif.wanderer_source_hint.title': 'wanderer のトレイル', 'notif.wanderer_source_hint.possible_change': '{trip} の「{tour}」が wanderer で変更された可能性があります', diff --git a/shared/src/i18n/ja/settings.ts b/shared/src/i18n/ja/settings.ts index c046f9ae0..ccf54b5eb 100644 --- a/shared/src/i18n/ja/settings.ts +++ b/shared/src/i18n/ja/settings.ts @@ -126,6 +126,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Vacay fusion の招待', 'settings.notifyVacayShare': 'Vacay カレンダーの共有', 'settings.notifyCollectionInvite': 'コレクションへの招待', + 'settings.notifyJourneyInvite': '日記への招待', 'settings.notifySynologySessionCleared': 'Synologyセッションがクリアされました', 'settings.notifyPluginNotification': 'プラグイン通知', 'settings.notifyPhotosShared': '共有写真(Immich)', diff --git a/shared/src/i18n/ko/externalNotifications.ts b/shared/src/i18n/ko/externalNotifications.ts index 339af6075..0f5cfeb46 100644 --- a/shared/src/i18n/ko/externalNotifications.ts +++ b/shared/src/i18n/ko/externalNotifications.ts @@ -48,6 +48,10 @@ const ko: NotificationLocale = { title: '컬렉션 초대', body: `${p.actor}이(가) 컬렉션 공유에 초대했습니다. TREK을 열어 수락하거나 거절하세요.`, }), + journey_invite: (p) => ({ + title: `여정 초대: "${p.journey}"`, + body: `${p.actor}님이 회원님을 여정 "${p.journey}"에 추가했습니다. TREK을 열어 확인하세요.`, + }), photos_shared: (p) => ({ title: `사진 ${p.count}장이 공유되었습니다`, body: `${p.actor}이(가) "${p.trip}"에서 사진 ${p.count}장을 공유했습니다.`, diff --git a/shared/src/i18n/ko/notif.ts b/shared/src/i18n/ko/notif.ts index 8905c08a4..9b737c45c 100644 --- a/shared/src/i18n/ko/notif.ts +++ b/shared/src/i18n/ko/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor}이(가) 휴가 캘린더를 공유했습니다', 'notif.collection_invite.title': '컬렉션 초대', 'notif.collection_invite.text': '{actor}이(가) 컬렉션에 초대했습니다', + 'notif.journey_invite.title': '여정 초대', + 'notif.journey_invite.text': '{actor}님이 회원님을 여정 {journey}에 추가했습니다', 'notif.photos_shared.title': '사진 공유됨', 'notif.photos_shared.text': '{actor}이(가) {trip}에서 {count}장의 사진을 공유했습니다', 'notif.collab_message.title': '새 메시지', @@ -45,6 +47,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': '사진 보기', 'notif.action.view_vacay': 'Vacay 보기', 'notif.action.view_collection': '컬렉션 보기', + 'notif.action.view_journey': '여정 보기', 'notif.action.view_admin': '관리자로 이동', 'notif.wanderer_source_hint.title': 'wanderer 트레일', 'notif.wanderer_source_hint.possible_change': '{trip}의 "{tour}"이(가) wanderer에서 바뀌었을 수 있습니다', diff --git a/shared/src/i18n/ko/settings.ts b/shared/src/i18n/ko/settings.ts index 082274196..0970276c8 100644 --- a/shared/src/i18n/ko/settings.ts +++ b/shared/src/i18n/ko/settings.ts @@ -126,6 +126,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Vacay 퓨전 초대', 'settings.notifyVacayShare': 'Vacay 캘린더 공유', 'settings.notifyCollectionInvite': '컬렉션 초대', + 'settings.notifyJourneyInvite': '여정 초대', 'settings.notifySynologySessionCleared': 'Synology 세션이 초기화되었습니다', 'settings.notifyPluginNotification': '플러그인 알림', 'settings.notifyPhotosShared': '공유된 사진 (Immich)', diff --git a/shared/src/i18n/nl/externalNotifications.ts b/shared/src/i18n/nl/externalNotifications.ts index a43ba9bce..33f2d2dc5 100644 --- a/shared/src/i18n/nl/externalNotifications.ts +++ b/shared/src/i18n/nl/externalNotifications.ts @@ -49,6 +49,10 @@ const nl: NotificationLocale = { title: 'Collectie-uitnodiging', body: `${p.actor} nodigt je uit om een collectie te delen. Open TREK om te accepteren of af te wijzen.`, }), + journey_invite: (p) => ({ + title: `Uitnodiging voor reisverslag: "${p.journey}"`, + body: `${p.actor} heeft je toegevoegd aan het reisverslag "${p.journey}". Open TREK om mee te lezen.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'nl', { one: `${p.count} foto gedeeld`, other: `${p.count} foto's gedeeld` }), body: pluralForm(p.count, 'nl', { diff --git a/shared/src/i18n/nl/notif.ts b/shared/src/i18n/nl/notif.ts index 8104a4a9d..d111db70a 100644 --- a/shared/src/i18n/nl/notif.ts +++ b/shared/src/i18n/nl/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} heeft zijn/haar vakantiekalender met je gedeeld', 'notif.collection_invite.title': 'Collectie-uitnodiging', 'notif.collection_invite.text': '{actor} nodigt je uit voor een collectie', + 'notif.journey_invite.title': 'Uitnodiging voor reisverslag', + 'notif.journey_invite.text': '{actor} heeft je toegevoegd aan het reisverslag {journey}', 'notif.photos_shared.title': "Foto's gedeeld", 'notif.photos_shared.text': "{actor} heeft {count} foto's gedeeld in {trip}", 'notif.photos_shared.text.one': '{actor} heeft {count} foto gedeeld in {trip}', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': "Foto's bekijken", 'notif.action.view_vacay': 'Vacay bekijken', 'notif.action.view_collection': 'Collectie bekijken', + 'notif.action.view_journey': 'Reisverslag bekijken', 'notif.action.view_admin': 'Naar admin', 'notif.wanderer_source_hint.title': 'wanderer-trail', 'notif.wanderer_source_hint.possible_change': '‘{tour}’ in {trip} is mogelijk gewijzigd in wanderer', diff --git a/shared/src/i18n/nl/settings.ts b/shared/src/i18n/nl/settings.ts index 937ebec7a..77271719d 100644 --- a/shared/src/i18n/nl/settings.ts +++ b/shared/src/i18n/nl/settings.ts @@ -129,6 +129,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Vacay-fusieuitnodigingen', 'settings.notifyVacayShare': 'Gedeelde Vacay-kalenders', 'settings.notifyCollectionInvite': 'Collectie-uitnodigingen', + 'settings.notifyJourneyInvite': 'Uitnodigingen voor reisverslagen', 'settings.notifySynologySessionCleared': 'Synology-sessie gewist', 'settings.notifyPluginNotification': 'Pluginmeldingen', 'settings.notifyPhotosShared': "Gedeelde foto's (Immich)", diff --git a/shared/src/i18n/pl/externalNotifications.ts b/shared/src/i18n/pl/externalNotifications.ts index b075119c4..1d92bc1dc 100644 --- a/shared/src/i18n/pl/externalNotifications.ts +++ b/shared/src/i18n/pl/externalNotifications.ts @@ -49,6 +49,10 @@ const pl: NotificationLocale = { title: 'Zaproszenie do kolekcji', body: `${p.actor} zaprosił Cię do udostępnienia kolekcji. Otwórz TREK, aby zaakceptować lub odrzucić.`, }), + journey_invite: (p) => ({ + title: `Zaproszenie do dziennika podróży: "${p.journey}"`, + body: `${p.actor} dodał(a) Cię do dziennika podróży "${p.journey}". Otwórz TREK, aby go zobaczyć.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'pl', { one: `Udostępniono ${p.count} zdjęcie`, diff --git a/shared/src/i18n/pl/notif.ts b/shared/src/i18n/pl/notif.ts index c576173c0..6c372d594 100644 --- a/shared/src/i18n/pl/notif.ts +++ b/shared/src/i18n/pl/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} udostępnił Ci swój kalendarz urlopów', 'notif.collection_invite.title': 'Zaproszenie do kolekcji', 'notif.collection_invite.text': '{actor} zaprosił Cię do kolekcji', + 'notif.journey_invite.title': 'Zaproszenie do dziennika podróży', + 'notif.journey_invite.text': '{actor} dodał(a) Cię do dziennika podróży {journey}', 'notif.photos_shared.title': 'Zdjęcia udostępnione', 'notif.photos_shared.text': '{actor} udostępnił {count} zdjęcia w {trip}', 'notif.photos_shared.text.one': '{actor} udostępnił {count} zdjęcie w {trip}', @@ -48,6 +50,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Zobacz zdjęcia', 'notif.action.view_vacay': 'Zobacz Vacay', 'notif.action.view_collection': 'Zobacz kolekcję', + 'notif.action.view_journey': 'Zobacz dziennik', 'notif.action.view_admin': 'Przejdź do admina', 'notif.wanderer_source_hint.title': 'Szlak wanderer', 'notif.wanderer_source_hint.possible_change': '„{tour}” w {trip} mógł się zmienić w wanderer', diff --git a/shared/src/i18n/pl/settings.ts b/shared/src/i18n/pl/settings.ts index a3e5a48c4..55fb84c78 100644 --- a/shared/src/i18n/pl/settings.ts +++ b/shared/src/i18n/pl/settings.ts @@ -129,6 +129,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Zaproszenia do połączenia kalendarzy', 'settings.notifyVacayShare': 'Udostępnienia kalendarza Vacay', 'settings.notifyCollectionInvite': 'Zaproszenia do kolekcji', + 'settings.notifyJourneyInvite': 'Zaproszenia do dzienników podróży', 'settings.notifySynologySessionCleared': 'Sesja Synology wyczyszczona', 'settings.notifyPluginNotification': 'Powiadomienia wtyczek', 'settings.notifyPhotosShared': 'Udostępnione zdjęcia (Immich)', diff --git a/shared/src/i18n/ru/externalNotifications.ts b/shared/src/i18n/ru/externalNotifications.ts index c463fa4ad..7d95714e6 100644 --- a/shared/src/i18n/ru/externalNotifications.ts +++ b/shared/src/i18n/ru/externalNotifications.ts @@ -49,6 +49,10 @@ const ru: NotificationLocale = { title: 'Приглашение в коллекцию', body: `${p.actor} приглашает вас поделиться коллекцией. Откройте TREK для подтверждения.`, }), + journey_invite: (p) => ({ + title: `Приглашение в путешествие: «${p.journey}»`, + body: `${p.actor} добавил(а) вас в путешествие «${p.journey}». Откройте TREK, чтобы посмотреть.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'ru', { one: `${p.count} фото опубликовано`, diff --git a/shared/src/i18n/ru/notif.ts b/shared/src/i18n/ru/notif.ts index 1eba19e17..1c26fe90d 100644 --- a/shared/src/i18n/ru/notif.ts +++ b/shared/src/i18n/ru/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} поделился с вами своим календарём отпусков', 'notif.collection_invite.title': 'Приглашение в коллекцию', 'notif.collection_invite.text': '{actor} приглашает вас в коллекцию', + 'notif.journey_invite.title': 'Приглашение в путешествие', + 'notif.journey_invite.text': '{actor} добавил(а) вас в путешествие {journey}', 'notif.photos_shared.title': 'Фото опубликованы', 'notif.photos_shared.text': '{actor} поделился {count} фото в {trip}', 'notif.photos_shared.text.one': '{actor} поделился {count} фото в {trip}', @@ -48,6 +50,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Открыть фото', 'notif.action.view_vacay': 'Открыть Vacay', 'notif.action.view_collection': 'Открыть коллекцию', + 'notif.action.view_journey': 'Открыть путешествие', 'notif.action.view_admin': 'Перейти в админ', 'notif.wanderer_source_hint.title': 'Маршрут wanderer', 'notif.wanderer_source_hint.possible_change': '«{tour}» в {trip}, возможно, изменён в wanderer', diff --git a/shared/src/i18n/ru/settings.ts b/shared/src/i18n/ru/settings.ts index 647290ed7..58a1d2a4c 100644 --- a/shared/src/i18n/ru/settings.ts +++ b/shared/src/i18n/ru/settings.ts @@ -130,6 +130,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Приглашения слияния Vacay', 'settings.notifyVacayShare': 'Общий доступ к календарю Vacay', 'settings.notifyCollectionInvite': 'Приглашения в коллекции', + 'settings.notifyJourneyInvite': 'Приглашения в путешествия', 'settings.notifySynologySessionCleared': 'Сессия Synology сброшена', 'settings.notifyPluginNotification': 'Уведомления плагинов', 'settings.notifyPhotosShared': 'Общие фото (Immich)', diff --git a/shared/src/i18n/sk/externalNotifications.ts b/shared/src/i18n/sk/externalNotifications.ts index fa01829e6..992cd8b4e 100644 --- a/shared/src/i18n/sk/externalNotifications.ts +++ b/shared/src/i18n/sk/externalNotifications.ts @@ -49,6 +49,10 @@ const sk: NotificationLocale = { title: 'Pozvánka do zbierky', body: `${p.actor} vás pozval(a) na zdieľanie zbierky. Otvorte TREK na prijatie alebo odmietnutie.`, }), + journey_invite: (p) => ({ + title: `Pozvánka do denníka: "${p.journey}"`, + body: `${p.actor} vás pridal(a) do cestovného denníka "${p.journey}". Otvorte TREK a pozrite sa.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'sk', { one: `${p.count} zdieľaná fotka`, diff --git a/shared/src/i18n/sk/notif.ts b/shared/src/i18n/sk/notif.ts index 29fa78bcb..72cd27750 100644 --- a/shared/src/i18n/sk/notif.ts +++ b/shared/src/i18n/sk/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} s vami zdieľal svoj kalendár dovoleniek', 'notif.collection_invite.title': 'Pozvánka do zbierky', 'notif.collection_invite.text': '{actor} vás pozval na zdieľanie zbierky', + 'notif.journey_invite.title': 'Pozvánka do cestovného denníka', + 'notif.journey_invite.text': '{actor} vás pridal(a) do denníka {journey}', 'notif.photos_shared.title': 'Fotky zdieľané', 'notif.photos_shared.text': '{actor} zdieľal {count} fotiek vo výlete {trip}', 'notif.photos_shared.text.one': '{actor} zdieľal {count} fotku vo výlete {trip}', @@ -47,6 +49,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Zobraziť fotky', 'notif.action.view_vacay': 'Zobraziť Vacay', 'notif.action.view_collection': 'Zobraziť zbierku', + 'notif.action.view_journey': 'Zobraziť denník', 'notif.action.view_admin': 'Prejsť do administrácie', 'notif.wanderer_source_hint.title': 'Trasa wanderer', 'notif.wanderer_source_hint.possible_change': '„{tour}“ v {trip} sa vo wanderer možno zmenila', diff --git a/shared/src/i18n/sk/settings.ts b/shared/src/i18n/sk/settings.ts index c7b308822..12220eae6 100644 --- a/shared/src/i18n/sk/settings.ts +++ b/shared/src/i18n/sk/settings.ts @@ -142,6 +142,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Pozvánky na prepojenie Vacay', 'settings.notifyVacayShare': 'Zdieľanie kalendára Vacay', 'settings.notifyCollectionInvite': 'Pozvánky do kolekcií', + 'settings.notifyJourneyInvite': 'Pozvánky do cestovných denníkov', 'settings.notifySynologySessionCleared': 'Relácia Synology bola zrušená', 'settings.notifyPluginNotification': 'Oznámenia doplnkov', 'settings.notifyPhotosShared': 'Zdieľané fotky (Immich)', diff --git a/shared/src/i18n/sv/externalNotifications.ts b/shared/src/i18n/sv/externalNotifications.ts index e475d5ede..9e50199a7 100644 --- a/shared/src/i18n/sv/externalNotifications.ts +++ b/shared/src/i18n/sv/externalNotifications.ts @@ -49,6 +49,10 @@ const en: NotificationLocale = { title: 'Inbjudan till samling', body: `${p.actor} bjöd in dig att dela en samling. Öppna TREK för att acceptera eller avvisa.`, }), + journey_invite: (p) => ({ + title: `Journey-inbjudan: "${p.journey}"`, + body: `${p.actor} har lagt till dig i Journey "${p.journey}". Öppna TREK för att läsa.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'sv', { one: `${p.count} foto delat`, other: `${p.count} foton delade` }), body: pluralForm(p.count, 'sv', { diff --git a/shared/src/i18n/sv/notif.ts b/shared/src/i18n/sv/notif.ts index fc7c4a714..06528f257 100644 --- a/shared/src/i18n/sv/notif.ts +++ b/shared/src/i18n/sv/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} delade sin semesterkalender med dig', 'notif.collection_invite.title': 'Inbjudan till samling', 'notif.collection_invite.text': '{actor} bjöd in dig till en samling', + 'notif.journey_invite.title': 'Journey-inbjudan', + 'notif.journey_invite.text': '{actor} har lagt till dig i {journey}', 'notif.photos_shared.title': 'Delade foton', 'notif.photos_shared.text': '{actor} delade {count} foton i {trip}', 'notif.photos_shared.text.one': '{actor} delade {count} foto i {trip}', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Visa bilder', 'notif.action.view_vacay': 'Visa Vacay', 'notif.action.view_collection': 'Visa samling', + 'notif.action.view_journey': 'Visa Journey', 'notif.action.view_admin': 'Gå till Admin', 'notif.wanderer_source_hint.title': 'wanderer-led', 'notif.wanderer_source_hint.possible_change': '”{tour}” i {trip} kan ha ändrats i wanderer', diff --git a/shared/src/i18n/sv/settings.ts b/shared/src/i18n/sv/settings.ts index 599aded49..a4659a232 100644 --- a/shared/src/i18n/sv/settings.ts +++ b/shared/src/i18n/sv/settings.ts @@ -134,6 +134,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Vacay samanslagnings inbjudningar', 'settings.notifyVacayShare': 'Vacay kalender delningar', 'settings.notifyCollectionInvite': 'Inbjudningar till samlingar', + 'settings.notifyJourneyInvite': 'Journey-inbjudningar', 'settings.notifySynologySessionCleared': 'Synology-session rensad', 'settings.notifyPluginNotification': 'Pluginaviseringar', 'settings.notifyPhotosShared': 'Delade foton (Immich)', diff --git a/shared/src/i18n/th/externalNotifications.ts b/shared/src/i18n/th/externalNotifications.ts index ffc3f014c..7c0601e90 100644 --- a/shared/src/i18n/th/externalNotifications.ts +++ b/shared/src/i18n/th/externalNotifications.ts @@ -48,6 +48,10 @@ const th: NotificationLocale = { title: 'คำเชิญให้แชร์คอลเลกชัน', body: `${p.actor} เชิญคุณให้แชร์คอลเลกชัน เปิด TREK เพื่อยอมรับหรือปฏิเสธ`, }), + journey_invite: (p) => ({ + title: `คำเชิญเข้าร่วมการเดินทาง: "${p.journey}"`, + body: `${p.actor} เพิ่มคุณในการเดินทาง "${p.journey}" แล้ว เปิด TREK เพื่อดู`, + }), photos_shared: (p) => ({ title: `แชร์รูปภาพ ${p.count} รูปแล้ว`, body: `${p.actor} แชร์รูปภาพ ${p.count} รูปใน "${p.trip}"`, diff --git a/shared/src/i18n/th/notif.ts b/shared/src/i18n/th/notif.ts index 29fa59779..ee9eae520 100644 --- a/shared/src/i18n/th/notif.ts +++ b/shared/src/i18n/th/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} แบ่งปันปฏิทินวันหยุดกับคุณ', 'notif.collection_invite.title': 'คำเชิญให้แชร์คอลเลกชัน', 'notif.collection_invite.text': '{actor} เชิญคุณให้แบ่งปันคอลเล็กชัน', + 'notif.journey_invite.title': 'คำเชิญเข้าร่วมการเดินทาง', + 'notif.journey_invite.text': '{actor} เพิ่มคุณในการเดินทาง {journey}', 'notif.photos_shared.title': 'แชร์รูปภาพแล้ว', 'notif.photos_shared.text': '{actor} แบ่งปันรูปภาพ {count} รูปใน {trip}', 'notif.collab_message.title': 'ข้อความใหม่', @@ -45,6 +47,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'ดูรูปถ่าย', 'notif.action.view_vacay': 'ดูวันหยุดพักผ่อน', 'notif.action.view_collection': 'ดูคอลเลกชัน', + 'notif.action.view_journey': 'ดูการเดินทาง', 'notif.action.view_admin': 'ไปที่ผู้ดูแลระบบ', 'notif.wanderer_source_hint.title': 'เส้นทาง wanderer', 'notif.wanderer_source_hint.possible_change': '"{tour}" ใน {trip} อาจเปลี่ยนแปลงใน wanderer', diff --git a/shared/src/i18n/th/settings.ts b/shared/src/i18n/th/settings.ts index d266890fc..0c50f9853 100644 --- a/shared/src/i18n/th/settings.ts +++ b/shared/src/i18n/th/settings.ts @@ -624,6 +624,7 @@ const settings: TranslationStrings = { 'settings.valhallaProviderOption.fossgis': 'Valhalla สาธารณะ (FOSSGIS)', 'settings.valhallaProviderOption.custom': 'Valhalla ของคุณเอง', 'settings.notifyCollectionInvite': 'คำเชิญเข้าคอลเลกชัน', + 'settings.notifyJourneyInvite': 'คำเชิญเข้าร่วมการเดินทาง', 'settings.notifySynologySessionCleared': 'ล้างเซสชัน Synology แล้ว', 'settings.notifyPluginNotification': 'การแจ้งเตือนจากปลั๊กอิน', 'settings.notifyReplicaFailure': 'การทำสำเนาที่เก็บข้อมูลล้มเหลว', diff --git a/shared/src/i18n/tr/externalNotifications.ts b/shared/src/i18n/tr/externalNotifications.ts index da93fdc5c..aa6bb6caa 100644 --- a/shared/src/i18n/tr/externalNotifications.ts +++ b/shared/src/i18n/tr/externalNotifications.ts @@ -49,6 +49,10 @@ const tr: NotificationLocale = { title: 'Koleksiyon daveti', body: `${p.actor} sizi bir koleksiyonu paylaşmaya davet etti. Kabul etmek veya reddetmek için TREK’i açın.`, }), + journey_invite: (p) => ({ + title: `Seyahat daveti: "${p.journey}"`, + body: `${p.actor} sizi "${p.journey}" seyahatine ekledi. Görmek için TREK'i açın.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'tr', { one: `${p.count} fotoğraf paylaşıldı`, diff --git a/shared/src/i18n/tr/notif.ts b/shared/src/i18n/tr/notif.ts index 14c8ac44a..1c7ced1a9 100644 --- a/shared/src/i18n/tr/notif.ts +++ b/shared/src/i18n/tr/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} tatil takvimini sizinle paylaştı', 'notif.collection_invite.title': 'Koleksiyon daveti', 'notif.collection_invite.text': '{actor} sizi bir koleksiyona davet etti', + 'notif.journey_invite.title': 'Seyahat daveti', + 'notif.journey_invite.text': '{actor} sizi {journey} seyahatine ekledi', 'notif.photos_shared.title': 'Fotoğraflar Paylaşıldı', 'notif.photos_shared.text': '{actor}, {trip} içinde {count} fotoğraf paylaştı', 'notif.photos_shared.text.one': '{actor}, {trip} içinde {count} fotoğraf paylaştı', @@ -46,6 +48,7 @@ const notif: TranslationStrings = { '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_journey': 'Seyahati görüntüle', 'notif.action.view_admin': 'Yöneticiye git', 'notif.wanderer_source_hint.title': 'wanderer rotası', 'notif.wanderer_source_hint.possible_change': '{trip} içindeki "{tour}" wanderer\'da değişmiş olabilir', diff --git a/shared/src/i18n/tr/settings.ts b/shared/src/i18n/tr/settings.ts index 737d7876d..ac17efeb3 100644 --- a/shared/src/i18n/tr/settings.ts +++ b/shared/src/i18n/tr/settings.ts @@ -131,6 +131,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Vacay birleştirme davetleri', 'settings.notifyVacayShare': 'Vacay takvim paylaşımları', 'settings.notifyCollectionInvite': 'Koleksiyon davetleri', + 'settings.notifyJourneyInvite': 'Seyahat davetleri', 'settings.notifySynologySessionCleared': 'Synology oturumu temizlendi', 'settings.notifyPluginNotification': 'Eklenti bildirimleri', 'settings.notifyPhotosShared': 'Paylaşılan fotoğraflar (Immich)', diff --git a/shared/src/i18n/uk/externalNotifications.ts b/shared/src/i18n/uk/externalNotifications.ts index 238af61a7..951a127e3 100644 --- a/shared/src/i18n/uk/externalNotifications.ts +++ b/shared/src/i18n/uk/externalNotifications.ts @@ -49,6 +49,10 @@ const uk: NotificationLocale = { title: 'Запрошення до колекції', body: `${p.actor} запрошує вас поділитися колекцією. Відкрийте TREK, щоб прийняти або відхилити.`, }), + journey_invite: (p) => ({ + title: `Запрошення до щоденника: «${p.journey}»`, + body: `${p.actor} додав(ла) вас до щоденника подорожей «${p.journey}». Відкрийте TREK, щоб переглянути.`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'uk', { one: `${p.count} нове фото`, diff --git a/shared/src/i18n/uk/notif.ts b/shared/src/i18n/uk/notif.ts index 945f85d64..6ba368952 100644 --- a/shared/src/i18n/uk/notif.ts +++ b/shared/src/i18n/uk/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} поділився з вами своїм календарем відпусток', 'notif.collection_invite.title': 'Запрошення до колекції', 'notif.collection_invite.text': '{actor} запрошує вас до колекції', + 'notif.journey_invite.title': 'Запрошення до щоденника подорожей', + 'notif.journey_invite.text': '{actor} додав(ла) вас до щоденника {journey}', 'notif.photos_shared.title': 'Фото опубліковано', 'notif.photos_shared.text': '{actor} поділився {count} фото у {trip}', 'notif.photos_shared.text.one': '{actor} поділився {count} фото у {trip}', @@ -48,6 +50,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': 'Відкрити фото', 'notif.action.view_vacay': 'Відкрити Vacay', 'notif.action.view_collection': 'Переглянути колекцію', + 'notif.action.view_journey': 'Переглянути щоденник', 'notif.action.view_admin': 'Перейти в адмін', 'notif.wanderer_source_hint.title': 'Маршрут wanderer', 'notif.wanderer_source_hint.possible_change': '«{tour}» у {trip}, можливо, змінено в wanderer', diff --git a/shared/src/i18n/uk/settings.ts b/shared/src/i18n/uk/settings.ts index cb25de17a..5eaf756ac 100644 --- a/shared/src/i18n/uk/settings.ts +++ b/shared/src/i18n/uk/settings.ts @@ -132,6 +132,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': "Запрошення об'єднання Vacay", 'settings.notifyVacayShare': 'Спільний доступ до календарів Vacay', 'settings.notifyCollectionInvite': 'Запрошення до колекцій', + 'settings.notifyJourneyInvite': 'Запрошення до щоденників подорожей', 'settings.notifySynologySessionCleared': 'Сеанс Synology скинуто', 'settings.notifyPluginNotification': 'Сповіщення плагінів', 'settings.notifyPhotosShared': 'Спільні фото (Immich)', diff --git a/shared/src/i18n/vi/externalNotifications.ts b/shared/src/i18n/vi/externalNotifications.ts index 0612fd410..2c0f8da61 100644 --- a/shared/src/i18n/vi/externalNotifications.ts +++ b/shared/src/i18n/vi/externalNotifications.ts @@ -48,6 +48,10 @@ const en: NotificationLocale = { 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.`, }), + journey_invite: (p) => ({ + title: `Lời mời hành trình: "${p.journey}"`, + body: `${p.actor} đã thêm bạn vào hành trình "${p.journey}". Mở TREK để xem.`, + }), photos_shared: (p) => ({ title: `Đã chia sẻ ${p.count} ảnh`, body: `${p.actor} đã chia sẻ ${p.count} ảnh trong "${p.trip}".`, diff --git a/shared/src/i18n/vi/notif.ts b/shared/src/i18n/vi/notif.ts index 9808bc962..376e86fab 100644 --- a/shared/src/i18n/vi/notif.ts +++ b/shared/src/i18n/vi/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} đã chia sẻ lịch nghỉ phép của họ với bạn', '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.journey_invite.title': 'Lời mời hành trình', + 'notif.journey_invite.text': '{actor} đã thêm bạn vào hành trình {journey}', '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', @@ -45,6 +47,7 @@ const notif: TranslationStrings = { '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_journey': 'Xem hành trình', 'notif.action.view_admin': 'Đi tới quản trị viên', 'notif.wanderer_source_hint.title': 'Tuyến wanderer', 'notif.wanderer_source_hint.possible_change': '“{tour}” trong {trip} có thể đã thay đổi trên wanderer', diff --git a/shared/src/i18n/vi/settings.ts b/shared/src/i18n/vi/settings.ts index cb5e086fc..07cffd667 100644 --- a/shared/src/i18n/vi/settings.ts +++ b/shared/src/i18n/vi/settings.ts @@ -134,6 +134,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Lời mời kết hợp Vacay', 'settings.notifyVacayShare': 'Chia sẻ lịch Vacay', 'settings.notifyCollectionInvite': 'Lời mời bộ sưu tập', + 'settings.notifyJourneyInvite': 'Lời mời hành trình', 'settings.notifySynologySessionCleared': 'Đã xóa phiên Synology', 'settings.notifyPluginNotification': 'Thông báo plugin', 'settings.notifyPhotosShared': 'Ảnh được chia sẻ (Immich)', diff --git a/shared/src/i18n/zh-TW/externalNotifications.ts b/shared/src/i18n/zh-TW/externalNotifications.ts index 3e8f440ef..1ba0f0f9d 100644 --- a/shared/src/i18n/zh-TW/externalNotifications.ts +++ b/shared/src/i18n/zh-TW/externalNotifications.ts @@ -49,6 +49,10 @@ const zhTW: NotificationLocale = { title: '收藏邀請', body: `${p.actor} 邀請您共享收藏。開啟 TREK 以接受或拒絕。`, }), + journey_invite: (p) => ({ + title: `旅程邀請:「${p.journey}」`, + body: `${p.actor} 將你加入旅程「${p.journey}」。打開 TREK 查看。`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'zh-TW', { other: `已分享 ${p.count} 張照片` }), body: pluralForm(p.count, 'zh-TW', { other: `${p.actor} 在「${p.trip}」中分享了 ${p.count} 張照片。` }), diff --git a/shared/src/i18n/zh-TW/notif.ts b/shared/src/i18n/zh-TW/notif.ts index a22945341..0ff731a61 100644 --- a/shared/src/i18n/zh-TW/notif.ts +++ b/shared/src/i18n/zh-TW/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} 與你共享了假期日曆', 'notif.collection_invite.title': '收藏邀請', 'notif.collection_invite.text': '{actor} 邀請您加入收藏', + 'notif.journey_invite.title': '旅程邀請', + 'notif.journey_invite.text': '{actor} 將你加入旅程 {journey}', 'notif.photos_shared.title': '照片已分享', 'notif.photos_shared.text': '{actor} 在 {trip} 中分享了 {count} 張照片', 'notif.collab_message.title': '新訊息', @@ -45,6 +47,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': '查看照片', 'notif.action.view_vacay': '查看 Vacay', 'notif.action.view_collection': '查看收藏', + 'notif.action.view_journey': '查看旅程', 'notif.action.view_admin': '前往管理', 'notif.wanderer_source_hint.title': 'wanderer 路線', 'notif.wanderer_source_hint.possible_change': '{trip} 中的「{tour}」可能已在 wanderer 中變更', diff --git a/shared/src/i18n/zh-TW/settings.ts b/shared/src/i18n/zh-TW/settings.ts index bac52c8b0..caacfa7b6 100644 --- a/shared/src/i18n/zh-TW/settings.ts +++ b/shared/src/i18n/zh-TW/settings.ts @@ -120,6 +120,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': 'Vacay 融合邀請', 'settings.notifyVacayShare': 'Vacay 日曆共享', 'settings.notifyCollectionInvite': '收藏邀請', + 'settings.notifyJourneyInvite': '旅程邀請', 'settings.notifySynologySessionCleared': 'Synology 工作階段已清除', 'settings.notifyPluginNotification': '外掛通知', 'settings.notifyPhotosShared': '共享照片 (Immich)', diff --git a/shared/src/i18n/zh/externalNotifications.ts b/shared/src/i18n/zh/externalNotifications.ts index 3d9ca6bd4..1209756cf 100644 --- a/shared/src/i18n/zh/externalNotifications.ts +++ b/shared/src/i18n/zh/externalNotifications.ts @@ -49,6 +49,10 @@ const zh: NotificationLocale = { title: '收藏邀请', body: `${p.actor} 邀请你共享收藏。打开 TREK 接受或拒绝。`, }), + journey_invite: (p) => ({ + title: `旅程邀请:“${p.journey}”`, + body: `${p.actor} 将你添加到旅程“${p.journey}”。打开 TREK 查看。`, + }), photos_shared: (p) => ({ title: pluralForm(p.count, 'zh', { other: `${p.count} 张照片已分享` }), body: pluralForm(p.count, 'zh', { other: `${p.actor} 在"${p.trip}"中分享了 ${p.count} 张照片。` }), diff --git a/shared/src/i18n/zh/notif.ts b/shared/src/i18n/zh/notif.ts index 4fa68c2a1..8cd84af71 100644 --- a/shared/src/i18n/zh/notif.ts +++ b/shared/src/i18n/zh/notif.ts @@ -25,6 +25,8 @@ const notif: TranslationStrings = { 'notif.vacay_share.text': '{actor} 与您共享了假期日历', 'notif.collection_invite.title': '收藏邀请', 'notif.collection_invite.text': '{actor} 邀请你加入收藏', + 'notif.journey_invite.title': '旅程邀请', + 'notif.journey_invite.text': '{actor} 将你添加到旅程 {journey}', 'notif.photos_shared.title': '照片已分享', 'notif.photos_shared.text': '{actor} 在 {trip} 中分享了 {count} 张照片', 'notif.collab_message.title': '新消息', @@ -45,6 +47,7 @@ const notif: TranslationStrings = { 'notif.action.view_photos': '查看照片', 'notif.action.view_vacay': '查看假期', 'notif.action.view_collection': '查看收藏', + 'notif.action.view_journey': '查看旅程', 'notif.action.view_admin': '前往管理', 'notif.wanderer_source_hint.title': 'wanderer 路线', 'notif.wanderer_source_hint.possible_change': '{trip} 中的“{tour}”可能已在 wanderer 中变化', diff --git a/shared/src/i18n/zh/settings.ts b/shared/src/i18n/zh/settings.ts index 7be524d09..7c8c13947 100644 --- a/shared/src/i18n/zh/settings.ts +++ b/shared/src/i18n/zh/settings.ts @@ -119,6 +119,7 @@ const settings: TranslationStrings = { 'settings.notifyVacayInvite': '假期合并邀请', 'settings.notifyVacayShare': '假期日历共享', 'settings.notifyCollectionInvite': '收藏邀请', + 'settings.notifyJourneyInvite': '旅程邀请', 'settings.notifySynologySessionCleared': 'Synology 会话已清除', 'settings.notifyPluginNotification': '插件通知', 'settings.notifyPhotosShared': '共享照片 (Immich)', diff --git a/wiki/Notifications.md b/wiki/Notifications.md index 875d0d319..a5a15a595 100644 --- a/wiki/Notifications.md +++ b/wiki/Notifications.md @@ -48,6 +48,7 @@ The following events are configurable in user settings: | `vacay_invite` | You were invited to fuse vacation plans | | `vacay_share` | Someone shared their vacation calendar with you (view only) | | `collection_invite` | Someone invited you to share a collection | +| `journey_invite` | Someone added you to their journey as an editor or a reader | | `photos_shared` | Photos were shared with a trip | | `collab_message` | A new message in a collaborative trip | | `packing_tagged` | You were assigned to a packing category in a trip |