mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 03:50:30 +00:00
bdd8c08dd4
The day plan wrote straight to the API, so offline a place dropped on a day snapped back with "Error assigning place", a renamed day or a new day note failed, and a moved stop, a leg's travel mode or who joins a visit were lost. Visits (put on a day, taken off, reordered, moved, travellers, leg mode), the day's name, notes text and travel mode, and the day notes (add, edit, delete, move) now go through assignmentRepo, dayRepo and dayNoteRepo and the mutation queue: the cached day changes at once, a visit or note made offline gets a temporary id that the edits after it wait for, and an online write held behind an older queued one joins the queue, since none of these carry a version token. A new order of a day that names a visit made offline is sent with its real id, or without it when its create failed. Desktop, the phone timeline and note sheet all write through the store, so both are covered. The replay reads each answer for what it names: the day answer keeps the cached notes and visits, the participants answer lands on its visit, and a visit the server refuses with 409 (a Tour already on that day) fails instead of waiting as a conflict no retry can solve. The trip's name, description, reminder and the archive flag wait in the queue too, from the planner, the phone and the dashboard. What only the server can do says so instead of failing: new dates, a day count, a currency or a cover, a new trip, a copy or a delete, members, guests, share and invite links, and a new order of the days, which moves the dates of the bookings. Refs #2601
83 lines
3.3 KiB
TypeScript
83 lines
3.3 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.save': 'Simpan',
|
|
'common.showMore': 'Tampilkan lebih banyak',
|
|
'common.showLess': 'Tampilkan lebih sedikit',
|
|
'common.cancel': 'Batal',
|
|
'common.clear': 'Hapus',
|
|
'common.delete': 'Hapus',
|
|
'common.remove': 'Hapus',
|
|
'common.preview': 'Pratinjau',
|
|
'common.edit': 'Sunting',
|
|
'common.add': 'Tambah',
|
|
'common.loading': 'Memuat...',
|
|
'common.import': 'Impor',
|
|
'common.select': 'Pilih',
|
|
'common.selectAll': 'Pilih semua',
|
|
'common.deselectAll': 'Batalkan semua pilihan',
|
|
'common.error': 'Kesalahan',
|
|
'common.success': 'Berhasil',
|
|
'common.unknownError': 'Kesalahan tidak diketahui',
|
|
'common.tooManyAttempts': 'Terlalu banyak percobaan. Coba lagi nanti.',
|
|
'common.back': 'Kembali',
|
|
'common.all': 'Semua',
|
|
'common.close': 'Tutup',
|
|
'common.open': 'Buka',
|
|
'common.upload': 'Unggah',
|
|
'common.search': 'Cari',
|
|
'common.confirm': 'Konfirmasi',
|
|
'common.ok': 'OK',
|
|
'common.yes': 'Ya',
|
|
'common.no': 'Tidak',
|
|
'common.or': 'atau',
|
|
'common.none': 'Tidak ada',
|
|
'common.date': 'Tanggal',
|
|
'common.rename': 'Ganti nama',
|
|
'common.discardChanges': 'Buang perubahan',
|
|
'common.discard': 'Buang',
|
|
'common.unsavedTitle': 'Buang perubahan?',
|
|
'common.unsavedMessage': 'Yang kamu masukkan di sini belum disimpan.',
|
|
'common.keepEditing': 'Lanjut mengedit',
|
|
'common.name': 'Nama',
|
|
'common.email': 'Email',
|
|
'common.password': 'Kata sandi',
|
|
'common.saving': 'Menyimpan...',
|
|
'common.justNow': 'baru saja',
|
|
'common.hoursAgo': '{count}j lalu',
|
|
'common.daysAgo': '{count}h lalu',
|
|
'common.saved': 'Tersimpan',
|
|
'common.update': 'Perbarui',
|
|
'common.change': 'Ubah',
|
|
'common.uploading': 'Mengunggah…',
|
|
'common.backToPlanning': 'Kembali ke Perencanaan',
|
|
'common.reset': 'Atur ulang',
|
|
'common.expand': 'Perluas',
|
|
'common.collapse': 'Ciutkan',
|
|
'common.copy': 'Salin',
|
|
'common.copied': 'Disalin',
|
|
'common.datepicker.prevMonth': 'Previous month', // en-fallback
|
|
'common.datepicker.nextMonth': 'Next month', // en-fallback
|
|
'common.datepicker.prevYear': 'Previous year', // en-fallback
|
|
'common.datepicker.nextYear': 'Next year', // en-fallback
|
|
'common.datepicker.prevYears': 'Previous years', // en-fallback
|
|
'common.datepicker.nextYears': 'Next years', // en-fallback
|
|
'common.datepicker.selectMonth': 'Select month', // en-fallback
|
|
'common.datepicker.selectYear': 'Select year', // en-fallback
|
|
'common.datepicker.enterManually': 'Enter date manually', // en-fallback
|
|
'common.datepicker.typeDate': 'Type a date', // en-fallback
|
|
'common.datepicker.dialog': 'Date picker', // en-fallback
|
|
'common.datepicker.clearDate': 'Clear date', // en-fallback
|
|
'common.errorTitle': 'Terjadi kesalahan',
|
|
'common.errorBody': 'Bagian aplikasi ini berhenti bekerja. Data Anda aman.',
|
|
'common.errorPanelTitle': 'Bagian ini tidak dapat ditampilkan',
|
|
'common.errorPanelBody': 'Bagian lain dari halaman masih berfungsi.',
|
|
'common.errorRetry': 'Coba lagi',
|
|
'common.errorReload': 'Muat ulang halaman',
|
|
'common.errorUpdateTitle': 'Versi baru tersedia',
|
|
'common.errorUpdateBody': 'TREK diperbarui saat tab ini terbuka. Muat ulang untuk mendapatkan versi baru.',
|
|
'common.errorPluginTitle': 'Plugin ini tidak dapat ditampilkan',
|
|
'common.needsConnection': 'Ini memerlukan koneksi. Coba lagi begitu TREK kembali online.',
|
|
};
|
|
export default common;
|