mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 23:50:08 +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.3 KiB
TypeScript
98 lines
4.3 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const collab: TranslationStrings = {
|
|
'collab.chat.readOnly': 'Akses hanya-baca ke obrolan ini',
|
|
'collab.chat.messageOptions': 'Opsi pesan',
|
|
'collab.polls.confirmDeleteTitle': 'Hapus polling?',
|
|
'collab.polls.confirmDeleteBody': 'Polling ini akan dihapus secara permanen.',
|
|
'collab.polls.countdownDaysHours': '{d}h {h}j lagi',
|
|
'collab.polls.countdownHoursMinutes': '{h}j {m}m lagi',
|
|
'collab.polls.countdownMinutes': '{m}m lagi',
|
|
'collab.polls.clearDeadline': 'Hapus tenggat',
|
|
'collab.tabs.chat': 'Chat',
|
|
'collab.tabs.notes': 'Catatan',
|
|
'collab.tabs.polls': 'Polling',
|
|
'collab.tabs.links': 'Tautan',
|
|
'collab.links.add': 'Tambah tautan',
|
|
'collab.chat.imageRejected': 'Hanya gambar JPEG, PNG, GIF, dan WebP hingga 10 MB yang diizinkan',
|
|
'collab.links.cancel': 'Batal',
|
|
'collab.links.save': 'Simpan tautan',
|
|
'collab.links.titlePlaceholder': 'Judul tautan',
|
|
'collab.links.urlPlaceholder': 'https://...',
|
|
'collab.links.empty': 'Belum ada tautan bersama',
|
|
'collab.links.pin': 'Sematkan tautan',
|
|
'collab.links.unpin': 'Lepas sematan tautan',
|
|
'collab.links.delete': 'Hapus tautan',
|
|
'collab.whatsNext.title': 'Berikutnya',
|
|
'collab.whatsNext.today': 'Hari ini',
|
|
'collab.whatsNext.tomorrow': 'Besok',
|
|
'collab.whatsNext.empty': 'Tidak ada aktivitas mendatang',
|
|
'collab.whatsNext.until': 'sampai',
|
|
'collab.whatsNext.emptyHint': 'Aktivitas dengan waktu akan muncul di sini',
|
|
'collab.chat.send': 'Kirim',
|
|
'collab.chat.placeholder': 'Ketik pesan...',
|
|
'collab.chat.empty': 'Mulai percakapan',
|
|
'collab.chat.emptyHint': 'Pesan dibagikan kepada semua anggota perjalanan',
|
|
'collab.chat.emptyDesc': 'Bagikan ide, rencana, dan update dengan grup perjalananmu',
|
|
'collab.chat.today': 'Hari ini',
|
|
'collab.chat.yesterday': 'Kemarin',
|
|
'collab.chat.deletedMessage': 'menghapus pesan',
|
|
'collab.chat.reply': 'Balas',
|
|
'collab.chat.loadMore': 'Muat pesan lebih lama',
|
|
'collab.chat.justNow': 'baru saja',
|
|
'collab.chat.minutesAgo': '{n}m lalu',
|
|
'collab.chat.hoursAgo': '{n}j lalu',
|
|
'collab.notes.title': 'Catatan',
|
|
'collab.notes.new': 'Catatan Baru',
|
|
'collab.notes.empty': 'Belum ada catatan',
|
|
'collab.notes.emptyHint': 'Mulai catat ide dan rencana',
|
|
'collab.notes.all': 'Semua',
|
|
'collab.notes.titlePlaceholder': 'Judul catatan',
|
|
'collab.notes.content': 'Konten',
|
|
'collab.notes.removeFile': 'Hapus {name}',
|
|
'collab.notes.contentPlaceholder': 'Tulis sesuatu...',
|
|
'collab.notes.categoryPlaceholder': 'Kategori',
|
|
'collab.notes.newCategory': 'Kategori baru...',
|
|
'collab.notes.category': 'Kategori',
|
|
'collab.notes.noCategory': 'Tanpa kategori',
|
|
'collab.notes.color': 'Warna',
|
|
'collab.notes.save': 'Simpan',
|
|
'collab.notes.cancel': 'Batal',
|
|
'collab.notes.edit': 'Edit',
|
|
'collab.notes.delete': 'Hapus',
|
|
'collab.notes.confirmDeleteTitle': 'Hapus catatan?',
|
|
'collab.notes.confirmDeleteBody': 'Catatan ini akan dihapus secara permanen.',
|
|
'collab.notes.pin': 'Sematkan',
|
|
'collab.notes.unpin': 'Lepas sematan',
|
|
'collab.notes.daysAgo': '{n}h lalu',
|
|
'collab.notes.categorySettings': 'Kelola Kategori',
|
|
'collab.notes.create': 'Buat',
|
|
'collab.notes.website': 'Website',
|
|
'collab.notes.websitePlaceholder': 'https://...',
|
|
'collab.notes.attachFiles': 'Lampirkan file',
|
|
'collab.notes.noCategoriesYet': 'Belum ada kategori',
|
|
'collab.notes.emptyDesc': 'Buat catatan untuk memulai',
|
|
'collab.polls.title': 'Polling',
|
|
'collab.polls.new': 'Polling Baru',
|
|
'collab.polls.empty': 'Belum ada polling',
|
|
'collab.polls.emptyHint': 'Tanyakan ke grup dan voting bersama',
|
|
'collab.polls.question': 'Pertanyaan',
|
|
'collab.polls.questionPlaceholder': 'Apa yang harus kita lakukan?',
|
|
'collab.polls.markdownHint': 'Mendukung Markdown',
|
|
'collab.polls.addOption': '+ Tambah pilihan',
|
|
'collab.polls.optionPlaceholder': 'Pilihan {n}',
|
|
'collab.polls.create': 'Buat Polling',
|
|
'collab.polls.close': 'Tutup',
|
|
'collab.polls.closed': 'Ditutup',
|
|
'collab.polls.votes': '{n} suara',
|
|
'collab.polls.vote': '{n} suara',
|
|
'collab.polls.multipleChoice': 'Pilihan ganda',
|
|
'collab.polls.multiChoice': 'Pilihan ganda',
|
|
'collab.polls.deadline': 'Tenggat waktu',
|
|
'collab.polls.option': 'Pilihan',
|
|
'collab.polls.options': 'Pilihan',
|
|
'collab.polls.delete': 'Hapus',
|
|
'collab.polls.closedSection': 'Ditutup',
|
|
};
|
|
export default collab;
|