Files
TREK/shared/src/i18n/gr/collab.ts
T
Maurice 7e3b9fd039 fix(collab): keep every panel on screen, and stop leaking spool and links
The desktop layout rendered notes and links as a pair and dropped whichever of
the two was on its own, so turning the new Links feature off on an otherwise
default install made the Notes panel disappear. Both rows are now split by kind
and rendered only when they hold something, and one function decides what a
panel id renders, because the branch that lost a panel did so by not listing it.

The message and its attachment rows are written in one transaction. The caller
has already committed the image bytes by then, so a message that landed without
them left those bytes with nothing pointing at them and nothing to sweep them.
Deleting one now drops the blobs after the rows are gone rather than before.

A body the Zod pipe rejects used to leave up to four spooled images on disk:
pipes run after interceptors, so multer had already written them and the
handler's own cleanup was never reached. An interceptor removes them on any
failure before the handler, which also covers every other schema mismatch, and
the length check that could never fire is gone.

Adding, pinning and deleting a link now says something when it fails instead of
raising an unhandled rejection, the list has real types, and the rejected-image
toast is translated in all 23 locales rather than shipping English everywhere.
The picking, previewing and clearing of chat images moved into one hook both
shells use: it was copied into two, and both rebuilt every preview on each
change and leaked an object URL per image per pick.

Tests: the four link routes end to end with the validation pipe the harness was
missing, the image filter against the disguised-extension case, and the layout
combinations that drop a panel.
2026-09-09 00:11:00 +02:00

98 lines
5.9 KiB
TypeScript

import type { TranslationStrings } from '../types';
const collab: TranslationStrings = {
'collab.chat.readOnly': 'Πρόσβαση μόνο για ανάγνωση σε αυτήν τη συνομιλία',
'collab.chat.messageOptions': 'Επιλογές μηνύματος',
'collab.polls.confirmDeleteTitle': 'Διαγραφή δημοσκόπησης;',
'collab.polls.confirmDeleteBody': 'Αυτή η δημοσκόπηση θα διαγραφεί οριστικά.',
'collab.polls.countdownDaysHours': 'Απομένουν {d} ημ. {h} ώ.',
'collab.polls.countdownHoursMinutes': 'Απομένουν {h} ώ. {m} λ.',
'collab.polls.countdownMinutes': 'Απομένουν {m} λ.',
'collab.polls.clearDeadline': 'Απαλοιφή προθεσμίας',
'collab.tabs.chat': 'Συνομιλία',
'collab.tabs.notes': 'Σημειώσεις',
'collab.tabs.polls': 'Δημοσκοπήσεις',
'collab.tabs.links': 'Σύνδεσμοι',
'collab.links.add': 'Προσθήκη συνδέσμου',
'collab.chat.imageRejected': 'Επιτρέπονται μόνο εικόνες JPEG, PNG, GIF και WebP έως 10 MB',
'collab.links.cancel': 'Ακύρωση',
'collab.links.save': 'Αποθήκευση συνδέσμου',
'collab.links.titlePlaceholder': 'Τίτλος συνδέσμου',
'collab.links.urlPlaceholder': 'https://...',
'collab.links.empty': 'Δεν υπάρχουν κοινόχρηστοι σύνδεσμοι ακόμη',
'collab.links.pin': 'Καρφίτσωμα συνδέσμου',
'collab.links.unpin': 'Ξεκαρφίτσωμα συνδέσμου',
'collab.links.delete': 'Διαγραφή συνδέσμου',
'collab.whatsNext.title': 'Τι Επόμενο',
'collab.whatsNext.today': 'Σήμερα',
'collab.whatsNext.tomorrow': 'Αύριο',
'collab.whatsNext.empty': 'Καμία επερχόμενη δραστηριότητα',
'collab.whatsNext.until': 'έως',
'collab.whatsNext.emptyHint': 'Οι δραστηριότητες με ώρες θα εμφανίζονται εδώ',
'collab.chat.send': 'Αποστολή',
'collab.chat.placeholder': 'Πληκτρολογήστε ένα μήνυμα...',
'collab.chat.empty': 'Ξεκινήστε τη συζήτηση',
'collab.chat.emptyHint': 'Τα μηνύματα κοινοποιούνται σε όλα τα μέλη του ταξιδιού',
'collab.chat.emptyDesc': 'Μοιραστείτε ιδέες, σχέδια και ενημερώσεις με την ταξιδιωτική σας ομάδα',
'collab.chat.today': 'Σήμερα',
'collab.chat.yesterday': 'Χθες',
'collab.chat.deletedMessage': 'διέγραψε ένα μήνυμα',
'collab.chat.reply': 'Απάντηση',
'collab.chat.loadMore': 'Φόρτωση παλαιότερων μηνυμάτων',
'collab.chat.justNow': 'μόλις τώρα',
'collab.chat.minutesAgo': '{n}λ πριν',
'collab.chat.hoursAgo': '{n}ω πριν',
'collab.notes.title': 'Σημειώσεις',
'collab.notes.new': 'Νέα Σημείωση',
'collab.notes.empty': 'Δεν υπάρχουν σημειώσεις ακόμη',
'collab.notes.emptyHint': 'Ξεκινήστε να καταγράφετε ιδέες και σχέδια',
'collab.notes.all': 'Όλες',
'collab.notes.titlePlaceholder': 'Τίτλος σημείωσης',
'collab.notes.content': 'Περιεχόμενο',
'collab.notes.removeFile': 'Αφαίρεση {name}',
'collab.notes.contentPlaceholder': 'Γράψτε κάτι...',
'collab.notes.categoryPlaceholder': 'Κατηγορία',
'collab.notes.newCategory': 'Νέα κατηγορία...',
'collab.notes.category': 'Κατηγορία',
'collab.notes.noCategory': 'Χωρίς κατηγορία',
'collab.notes.color': 'Χρώμα',
'collab.notes.save': 'Αποθήκευση',
'collab.notes.cancel': 'Ακύρωση',
'collab.notes.edit': 'Επεξεργασία',
'collab.notes.delete': 'Διαγραφή',
'collab.notes.confirmDeleteTitle': 'Διαγραφή σημείωσης;',
'collab.notes.confirmDeleteBody': 'Αυτή η σημείωση θα διαγραφεί οριστικά.',
'collab.notes.pin': 'Καρφίτσωμα',
'collab.notes.unpin': 'Ξεκαρφίτσωμα',
'collab.notes.daysAgo': '{n}η πριν',
'collab.notes.categorySettings': 'Διαχείριση Κατηγοριών',
'collab.notes.create': 'Δημιουργία',
'collab.notes.website': 'Ιστότοπος',
'collab.notes.websitePlaceholder': 'https://...',
'collab.notes.attachFiles': 'Επισύναψη αρχείων',
'collab.notes.noCategoriesYet': 'Δεν υπάρχουν κατηγορίες ακόμη',
'collab.notes.emptyDesc': 'Δημιουργήστε μια σημείωση για να ξεκινήσετε',
'collab.polls.title': 'Δημοσκοπήσεις',
'collab.polls.new': 'Νέα Δημοσκόπηση',
'collab.polls.empty': 'Δεν υπάρχουν δημοσκοπήσεις ακόμη',
'collab.polls.emptyHint': 'Ρωτήστε την ομάδα και ψηφίστε μαζί',
'collab.polls.question': 'Ερώτηση',
'collab.polls.questionPlaceholder': 'Τι πρέπει να κάνουμε;',
'collab.polls.markdownHint': 'Υποστηρίζεται Markdown',
'collab.polls.addOption': '+ Προσθήκη επιλογής',
'collab.polls.optionPlaceholder': 'Επιλογή {n}',
'collab.polls.create': 'Δημιουργία Δημοσκόπησης',
'collab.polls.close': 'Κλείσιμο',
'collab.polls.closed': 'Κλειστή',
'collab.polls.votes': '{n} ψήφοι',
'collab.polls.vote': '{n} ψήφος',
'collab.polls.multipleChoice': 'Πολλαπλή επιλογή',
'collab.polls.multiChoice': 'Πολλαπλή επιλογή',
'collab.polls.deadline': 'Προθεσμία',
'collab.polls.option': 'Επιλογή',
'collab.polls.options': 'Επιλογές',
'collab.polls.delete': 'Διαγραφή',
'collab.polls.closedSection': 'Κλειστές',
};
export default collab;