Files
TREK/shared/src/i18n/tr/files.ts
T
jubnl 1ed751f740 fix(files): show descriptive error for unsupported upload type
Unsupported file uploads showed a generic 'Upload failed' toast even
though the server already returns a descriptive 400. The client catch
blocks discarded the error and always showed t('files.uploadError').

The server now emits the i18n key 'files.uploadErrorType' as its error
message; a new translateApiError() helper resolves a server message that
is a known translation key via t() and falls back to the generic key
otherwise. Wired into the three trip-file upload catch sites.

Closes #1363
2026-06-29 13:38:53 +02:00

61 lines
2.6 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.title': 'Dosyalar',
'files.pageTitle': 'Dosyalar ve Belgeler',
'files.subtitle': '{trip} için {count} dosya',
'files.download': 'İndir',
'files.openError': 'Dosya açılamadı',
'files.downloadPdf': 'PDF İndir',
'files.count': '{count} dosya',
'files.countSingular': '1 dosya',
'files.uploaded': '{count} yüklendi',
'files.uploadError': 'Yükleme başarısız oldu',
'files.uploadErrorType': 'Bu dosya türü desteklenmiyor',
'files.dropzone': 'Dosyaları buraya bırakın',
'files.dropzoneHint': 'veya göz atmak için tıklayın',
'files.allowedTypes': 'Görsel, PDF, DOC, DOCX, XLS, XLSX, TXT, CSV · Maks. 50 MB',
'files.uploading': 'Yükleniyor...',
'files.filterAll': 'Tüm',
'files.filterPdf': "PDF'ler",
'files.filterImages': 'Görseller',
'files.filterDocs': 'Belgeler',
'files.filterCollab': 'İşbirliği Notları',
'files.sourceCollab': 'İşbirliği notlarından',
'files.empty': 'Henüz dosya yok',
'files.emptyHint': 'Seyahatinize eklemek için dosya yükleyin',
'files.openTab': 'Yeni sekmede aç',
'files.confirm.delete': 'Bu dosyayı silmek istediğinizden emin misiniz?',
'files.toast.deleted': 'Dosya silindi',
'files.toast.deleteError': 'Dosya silinemedi',
'files.sourcePlan': 'Gün Planı',
'files.sourceBooking': 'Rezervasyon',
'files.sourceTransport': 'Ulaşım',
'files.attach': 'Ekle',
'files.pasteHint': 'Panodan görsel de yapıştırabilirsiniz (Ctrl+V)',
'files.trash': 'Çöp kutusu',
'files.trashEmpty': 'Çöp kutusu boş',
'files.emptyTrash': 'Çöp kutusunu boşalt',
'files.restore': 'Geri yükle',
'files.star': 'Yıldızla',
'files.unstar': 'Yıldızı kaldır',
'files.assign': 'Ata',
'files.assignTitle': 'Dosya Ata',
'files.assignPlace': 'Yer',
'files.assignBooking': 'Rezervasyon',
'files.assignTransport': 'Ulaşım',
'files.unassigned': 'Atanmamış',
'files.unlink': 'Bağlantıyı kaldır',
'files.toast.trashed': 'Çöp kutusuna taşındı',
'files.toast.restored': 'Dosya geri yüklendi',
'files.toast.trashEmptied': 'Çöp kutusu boşaltıldı',
'files.toast.assigned': 'Dosya atandı',
'files.toast.assignError': 'Atama başarısız',
'files.toast.restoreError': 'Geri yükleme başarısız',
'files.confirm.permanentDelete': 'Bu dosya kalıcı olarak silinsin mi? Bu işlem geri alınamaz.',
'files.confirm.emptyTrash': 'Çöp kutusundaki tüm dosyalar kalıcı olarak silinsin mi? Bu işlem geri alınamaz.',
'files.noteLabel': 'Not',
'files.notePlaceholder': 'Not ekleyin...',
};
export default files;