mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-30 18:46:00 +00:00
1ed751f740
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
61 lines
2.6 KiB
TypeScript
61 lines
2.6 KiB
TypeScript
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;
|