mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 15:17:30 +00:00
7e3b9fd039
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.
98 lines
4.5 KiB
TypeScript
98 lines
4.5 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const collab: TranslationStrings = {
|
|
'collab.tabs.chat': 'Missatges',
|
|
'collab.tabs.notes': 'Notes',
|
|
'collab.tabs.polls': 'Enquestes',
|
|
'collab.tabs.links': 'Enllaços',
|
|
'collab.links.add': 'Afegeix un enllaç',
|
|
'collab.chat.imageRejected': "Només s'admeten imatges JPEG, PNG, GIF i WebP de fins a 10 MB",
|
|
'collab.links.cancel': 'Cancel·la',
|
|
'collab.links.save': 'Desa l\'enllaç',
|
|
'collab.links.titlePlaceholder': 'Títol de l\'enllaç',
|
|
'collab.links.urlPlaceholder': 'https://...',
|
|
'collab.links.empty': 'Encara no hi ha enllaços compartits',
|
|
'collab.links.pin': 'Fixa l\'enllaç',
|
|
'collab.links.unpin': 'Desfixa l\'enllaç',
|
|
'collab.links.delete': 'Suprimeix l\'enllaç',
|
|
'collab.whatsNext.title': 'Què ve ara',
|
|
'collab.whatsNext.today': 'Avui',
|
|
'collab.whatsNext.tomorrow': 'Demà',
|
|
'collab.whatsNext.empty': 'No hi ha activitats properes',
|
|
'collab.whatsNext.until': 'fins a',
|
|
'collab.whatsNext.emptyHint': 'Les activitats amb hora apareixeran aquí',
|
|
'collab.chat.send': 'Envia',
|
|
'collab.chat.placeholder': 'Escriu un missatge...',
|
|
'collab.chat.empty': 'Comença la conversa',
|
|
'collab.chat.emptyHint': 'Els missatges es comparteixen amb tots els membres del viatge',
|
|
'collab.chat.emptyDesc': 'Comparteix idees, plans i novetats amb el teu grup de viatge',
|
|
'collab.chat.today': 'Avui',
|
|
'collab.chat.yesterday': 'Ahir',
|
|
'collab.chat.deletedMessage': 'va eliminar un missatge',
|
|
'collab.chat.reply': 'Respon',
|
|
'collab.chat.loadMore': 'Carrega missatges anteriors',
|
|
'collab.chat.justNow': 'ara mateix',
|
|
'collab.chat.minutesAgo': 'fa {n} min',
|
|
'collab.chat.hoursAgo': 'fa {n} h',
|
|
'collab.notes.title': 'Notes',
|
|
'collab.notes.new': 'Nota nova',
|
|
'collab.notes.empty': 'Encara no hi ha notes',
|
|
'collab.notes.emptyHint': 'Comença a capturar idees i plans',
|
|
'collab.notes.all': 'Totes',
|
|
'collab.notes.titlePlaceholder': 'Títol de la nota',
|
|
'collab.notes.content': 'Contingut',
|
|
'collab.notes.removeFile': 'Elimina {name}',
|
|
'collab.notes.contentPlaceholder': 'Escriu alguna cosa...',
|
|
'collab.notes.categoryPlaceholder': 'Categoria',
|
|
'collab.notes.newCategory': 'Categoria nova...',
|
|
'collab.notes.category': 'Categoria',
|
|
'collab.notes.noCategory': 'Sense categoria',
|
|
'collab.notes.color': 'Color',
|
|
'collab.notes.save': 'Desa',
|
|
'collab.notes.cancel': 'Cancel·la',
|
|
'collab.notes.edit': 'Edita',
|
|
'collab.notes.delete': 'Elimina',
|
|
'collab.notes.confirmDeleteTitle': 'Vols eliminar la nota?',
|
|
'collab.notes.confirmDeleteBody': "Aquesta nota s'eliminarà de manera permanent.",
|
|
'collab.notes.pin': 'Fixa',
|
|
'collab.notes.unpin': 'Desfixa',
|
|
'collab.notes.daysAgo': 'fa {n} d',
|
|
'collab.notes.categorySettings': 'Gestiona les categories',
|
|
'collab.notes.create': 'Crea',
|
|
'collab.notes.website': 'Lloc web',
|
|
'collab.notes.websitePlaceholder': 'https://...',
|
|
'collab.notes.attachFiles': 'Adjunta fitxers',
|
|
'collab.notes.noCategoriesYet': 'Encara no hi ha categories',
|
|
'collab.notes.emptyDesc': 'Crea una nota per començar',
|
|
'collab.polls.title': 'Enquestes',
|
|
'collab.polls.new': 'Enquesta nova',
|
|
'collab.polls.empty': 'Encara no hi ha enquestes',
|
|
'collab.polls.emptyHint': 'Pregunta al grup i voteu plegats',
|
|
'collab.polls.question': 'Pregunta',
|
|
'collab.polls.questionPlaceholder': 'Què hauríem de fer?',
|
|
'collab.polls.markdownHint': 'Compatible amb Markdown',
|
|
'collab.polls.addOption': '+ Afegeix una opció',
|
|
'collab.polls.optionPlaceholder': 'Opció {n}',
|
|
'collab.polls.create': "Crea l'enquesta",
|
|
'collab.polls.close': 'Tanca',
|
|
'collab.polls.closed': 'Tancada',
|
|
'collab.polls.votes': '{n} vots',
|
|
'collab.polls.vote': '{n} vot',
|
|
'collab.polls.multipleChoice': 'Selecció múltiple',
|
|
'collab.polls.multiChoice': 'Selecció múltiple',
|
|
'collab.polls.deadline': 'Data límit',
|
|
'collab.polls.option': 'Opció',
|
|
'collab.polls.options': 'Opcions',
|
|
'collab.polls.delete': 'Elimina',
|
|
'collab.polls.closedSection': 'Tancades',
|
|
'collab.chat.readOnly': 'Accés només de lectura a aquest xat',
|
|
'collab.chat.messageOptions': 'Opcions del missatge',
|
|
'collab.polls.confirmDeleteTitle': "Vols eliminar l'enquesta?",
|
|
'collab.polls.confirmDeleteBody': 'Aquesta enquesta quedarà eliminada permanentment.',
|
|
'collab.polls.countdownDaysHours': '{d}d {h}h restants',
|
|
'collab.polls.countdownHoursMinutes': '{h}h {m}m restants',
|
|
'collab.polls.countdownMinutes': '{m}m restants',
|
|
'collab.polls.clearDeadline': 'Esborra la data límit',
|
|
};
|
|
export default collab;
|