Files
TREK/shared/src/i18n/uk/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.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 МБ',
'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;