The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
Merge remote-tracking branch 'origin/dev' into feat/indonesian-translation
jubnl191d59166cee
diff --cc client/src/i18n/TranslationContext.tsxindex e9a990a83,964a9af7b..cb2a51754--- a/client/src/i18n/TranslationContext.tsx+++ b/client/src/i18n/TranslationContext.tsx@@@ -18,26 -20,16 +21,15 @@@ export { SUPPORTED_LANGUAGEStype TranslationStrings = Record<string, string | { name: string; category: string }[]>- export const SUPPORTED_LANGUAGES = [- { value: 'de', label: 'Deutsch' },- { value: 'en', label: 'English' },- { value: 'es', label: 'Español' },- { value: 'fr', label: 'Français' },- { value: 'hu', label: 'Magyar' },- { value: 'nl', label: 'Nederlands' },- { value: 'br', label: 'Português (Brasil)' },- { value: 'cs', label: 'Česky' },- { value: 'pl', label: 'Polski' },- { value: 'ru', label: 'Русский' },- { value: 'zh', label: '简体中文' },- { value: 'zh-TW', label: '繁體中文' },- { value: 'it', label: 'Italiano' },- { value: 'ar', label: 'العربية' },- { value: 'id', label: 'Bahasa Indonesia' },- ] as const-- const translations: Record<string, TranslationStrings> = { de, en, es, fr, hu, it, ru, zh, 'zh-TW': zhTw, nl, id, ar, br, cs, pl }- const LOCALES: Record<string, string> = { de: 'de-DE', en: 'en-US', es: 'es-ES', fr: 'fr-FR', hu: 'hu-HU', it: 'it-IT', ru: 'ru-RU', zh: 'zh-CN', 'zh-TW': 'zh-TW', nl: 'nl-NL', id: 'id-ID', ar: 'ar-SA', br: 'pt-BR', cs: 'cs-CZ', pl: 'pl-PL' }+ // Keyed by SupportedLanguageCode so TypeScript enforces all languages have a translation.+ const translations: Record<SupportedLanguageCode, TranslationStrings> = {- de, en, es, fr, hu, it, ru, zh, 'zh-TW': zhTw, nl, ar, br, cs, pl,++ de, en, es, fr, hu, it, ru, zh, 'zh-TW': zhTw, nl, id, ar, br, cs, pl,+ }++ // Derived from SUPPORTED_LANGUAGES — add new languages there, not here.+ const LOCALES: Record<string, string> = Object.fromEntries(+ SUPPORTED_LANGUAGES.map(l => [l.value, l.locale])+ )-const RTL_LANGUAGES = new Set(['ar'])export function getLocaleForLanguage(language: string): string {diff --cc client/src/i18n/supportedLanguages.tsindex 000000000,28d957b8d..458a9fff1mode 000000,100644..100644--- a/client/src/i18n/supportedLanguages.ts+++ b/client/src/i18n/supportedLanguages.ts@@@ -1,0 -1,20 +1,21 @@@+ export const SUPPORTED_LANGUAGES = [+ { value: 'de', label: 'Deutsch', locale: 'de-DE' },+ { value: 'en', label: 'English', locale: 'en-US' },+ { value: 'es', label: 'Español', locale: 'es-ES' },+ { value: 'fr', label: 'Français', locale: 'fr-FR' },+ { value: 'hu', label: 'Magyar', locale: 'hu-HU' },+ { value: 'nl', label: 'Nederlands', locale: 'nl-NL' },+ { value: 'br', label: 'Português (Brasil)', locale: 'pt-BR' },+ { value: 'cs', label: 'Česky', locale: 'cs-CZ' },+ { value: 'pl', label: 'Polski', locale: 'pl-PL' },+ { value: 'ru', label: 'Русский', locale: 'ru-RU' },+ { value: 'zh', label: '简体中文', locale: 'zh-CN' },+ { value: 'zh-TW', label: '繁體中文', locale: 'zh-TW' },+ { value: 'it', label: 'Italiano', locale: 'it-IT' },+ { value: 'ar', label: 'العربية', locale: 'ar-SA' },++ { value: 'id', label: 'Bahasa Indonesia', locale: 'id-ID' },+ ] as const++ export type SupportedLanguageCode = typeof SUPPORTED_LANGUAGES[number]['value']++ export const SUPPORTED_LANGUAGE_CODES: string[] = SUPPORTED_LANGUAGES.map(l => l.value)diff --cc server/src/services/notifications.tsindex b04689595,db3371778..ca0ad885a--- a/server/src/services/notifications.ts+++ b/server/src/services/notifications.ts@@@ -234,17 -247,8 +248,18 @@@ const EVENT_TEXTS: Record<string, Recorcollab_message: p => ({ title: `Nowa wiadomość w "${p.trip}"`, body: `${p.actor}: ${p.preview}` }),packing_tagged: p => ({ title: `Pakowanie: ${p.category}`, body: `${p.actor} przypisał Cię do kategorii "${p.category}" w "${p.trip}".` }),version_available: p => ({ title: 'Nowa wersja TREK dostępna', body: `TREK ${p.version} jest teraz dostępny. Odwiedź panel administracyjny, aby zaktualizować.` }),+ synology_session_cleared: () => ({ title: 'Sesja Synology wyczyszczona', body: 'Twoje konto lub URL Synology uległo zmianie. Zostałeś wylogowany z Synology Photos.' }),},+ id: {+ trip_invite: p => ({ title: `Undangan perjalanan: "${p.trip}"`, body: `${p.actor} mengundang ${p.invitee || 'seorang anggota'} ke perjalanan "${p.trip}".` }),+ booking_change: p => ({ title: `Pemesanan baru: ${p.booking}`, body: `${p.actor} menambahkan "${p.booking}" (${p.type}) baru ke "${p.trip}".` }),+ trip_reminder: p => ({ title: `Pengingat perjalanan: ${p.trip}`, body: `Perjalanan Anda "${p.trip}" akan segera tiba!` }),+ vacay_invite: p => ({ title: 'Undangan Penggabungan Vacay', body: `${p.actor} mengundang Anda untuk menggabungkan rencana liburan. Buka TREK untuk menerima atau menolak.` }),+ photos_shared: p => ({ title: `${p.count} foto dibagikan`, body: `${p.actor} membagikan ${p.count} foto di "${p.trip}".` }),+ collab_message: p => ({ title: `Pesan baru di "${p.trip}"`, body: `${p.actor}: ${p.preview}` }),+ packing_tagged: p => ({ title: `Pengepakan: ${p.category}`, body: `${p.actor} menugaskan Anda ke kategori "${p.category}" di "${p.trip}".` }),+ version_available: p => ({ title: 'Versi TREK baru tersedia', body: `TREK ${p.version} sekarang tersedia. Kunjungi panel admin untuk memperbarui.` }),+ },};// Get localized event text