Files
TREK/shared/src/i18n/uk/files.ts
T
Maurice 92c48fba22 fix(files): file notes, links, stars and the trash changed offline wait in the queue and sync once the connection is back
Every file write went straight to the API, so offline a star snapped back
without a word and moving a file to the trash failed with "Failed to delete
file". Notes, the place or booking of a file, a further link, the star, the
trash move, restore, delete for good and emptying the trash now go through
fileRepo and the mutation queue like the other trip data: the local copy
changes at once, and an online write to a file that still has an older one
queued joins the queue behind it, since file writes carry no version token.
The desktop file manager, its assign dialog and the phone's files tab,
menu, link and trash sheets all write through it.

The single file answers carry no ids of further links, so a replayed edit,
star or restore keeps the ones the local copy holds, and the link answer
({ success, links }) writes no row.

What only works online says so instead of failing: an upload shows that it
needs a connection, a place saved with newly picked files is stopped with a
hint, and removing a further link (its row id is known only to the server)
asks to try again once online.

Refs #2601
2026-10-12 19:32:16 +02:00

80 lines
4.9 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 files: TranslationStrings = {
'files.filterStarred': 'Позначені',
'files.link': 'Пов’язати',
'files.linkTitle': 'Пов’язати файл',
'files.linkEmpty': 'Поки немає місць чи бронювань для зв’язування',
'files.menu': 'Більше опцій',
'files.uploadErrorSize': 'Файл завеликий (макс. {max} МБ)',
'files.title': 'Файли',
'files.pageTitle': 'Файли та документи',
'files.subtitle': '{count} файлу для {trip}',
'files.subtitle.one': '{count} файл для {trip}',
'files.subtitle.few': '{count} файли для {trip}',
'files.subtitle.many': '{count} файлів для {trip}',
'files.download': 'Завантажити',
'files.openError': 'Не вдалося відкрити файл',
'files.downloadPdf': 'Завантажити PDF',
'files.count': '{count} файлу',
'files.count.one': '{count} файл',
'files.count.few': '{count} файли',
'files.count.many': '{count} файлів',
'files.uploaded': 'Завантажено {count} файлу',
'files.uploaded.one': 'Завантажено {count} файл',
'files.uploaded.few': 'Завантажено {count} файли',
'files.uploaded.many': 'Завантажено {count} файлів',
'files.uploadError': 'Помилка завантаження',
'files.uploadErrorType': 'Цей тип файлу не підтримується',
'files.dropzone': 'Перетягніть файли сюди',
'files.dropzoneHint': 'або натисніть для вибору',
'files.allowedTypes': 'Зображення, PDF, DOC, DOCX, XLS, XLSX, TXT, CSV · Макс. 50 МБ',
'files.uploading': 'Завантаження...',
'files.filterAll': 'Усі',
'files.filterPdf': 'PDF',
'files.filterImages': 'Зображення',
'files.filterDocs': 'Документи',
'files.filterCollab': 'Нотатки Collab',
'files.sourceCollab': 'З нотаток Collab',
'files.empty': 'Файлів поки немає',
'files.emptyHint': 'Завантажте файли, щоб прикріпити їх до поїздки',
'files.openTab': 'Відкрити в новій вкладці',
'files.confirm.delete': 'Ви впевнені, що хочете видалити цей файл?',
'files.toast.deleted': 'Файл видалено',
'files.toast.deleteError': 'Не вдалося видалити файл',
'files.sourcePlan': 'План дня',
'files.sourceBooking': 'Бронювання',
'files.attach': 'Прикріпити',
'files.pasteHint': 'Також можна вставити зображення з буфера обміну (Ctrl+V)',
'files.trash': 'Кошик',
'files.trashEmpty': 'Кошик порожній',
'files.emptyTrash': 'Очистити кошик',
'files.restore': 'Відновити',
'files.star': 'У фаворити',
'files.unstar': 'Зняти з фаворитів',
'files.assign': 'Призначити',
'files.assignTitle': 'Призначити файл',
'files.assignPlace': 'Місце',
'files.assignBooking': 'Бронювання',
'files.unassigned': 'Не призначено',
'files.unlink': 'Видалити зв’язок',
'files.toast.trashed': 'Переміщено до кошика',
'files.toast.restored': 'Файл відновлено',
'files.toast.trashEmptied': 'Кошик очищено',
'files.toast.assigned': 'Файл призначено',
'files.toast.assignError': 'Помилка призначення',
'files.toast.restoreError': 'Помилка відновлення',
'files.confirm.permanentDelete': 'Безповоротно видалити цей файл? Цю дію неможливо скасувати.',
'files.confirm.emptyTrash': 'Безповоротно видалити всі файли з кошика? Цю дію неможливо скасувати.',
'files.noteLabel': 'Нотатка',
'files.notePlaceholder': 'Додати нотатку...',
'files.assignTransport': 'Транспорт',
'files.sourceTransport': 'Транспорт',
'files.uploadNeedsConnection': 'Для завантаження потрібне з’єднання. Спробуйте ще раз, коли TREK знову буде онлайн.',
'files.linkNeedsConnection':
'Щоб прибрати цей зв’язок, потрібне з’єднання. Спробуйте ще раз, коли TREK знову буде онлайн.',
'files.placeFilesNeedConnection':
'Для завантаження файлів потрібне з’єднання. Приберіть нові, щоб зберегти місце офлайн, або збережіть, коли знову будете онлайн.',
};
export default files;