mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +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
88 lines
3.5 KiB
TypeScript
88 lines
3.5 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.save': 'Uložiť',
|
|
'common.showMore': 'Zobraziť viac',
|
|
'common.showLess': 'Zobraziť menej',
|
|
'common.cancel': 'Zrušiť',
|
|
'common.clear': 'Vymazať',
|
|
'common.delete': 'Odstrániť',
|
|
'common.remove': 'Odstrániť',
|
|
'common.preview': 'Náhľad',
|
|
'common.edit': 'Upraviť',
|
|
'common.add': 'Pridať',
|
|
'common.loading': 'Načítava sa...',
|
|
'common.import': 'Importovať',
|
|
'common.select': 'Vybrať',
|
|
'common.selectAll': 'Vybrať všetko',
|
|
'common.deselectAll': 'Zrušiť výber',
|
|
'common.error': 'Chyba',
|
|
'common.success': 'Úspech',
|
|
'common.unknownError': 'Neznáma chyba',
|
|
'common.tooManyAttempts': 'Príliš veľa pokusov. Skúste to znova neskôr.',
|
|
'common.back': 'Späť',
|
|
'common.all': 'Všetko',
|
|
'common.close': 'Zavrieť',
|
|
'common.open': 'Otvoriť',
|
|
'common.upload': 'Nahrať',
|
|
'common.search': 'Hľadať',
|
|
'common.confirm': 'Potvrdiť',
|
|
'common.ok': 'OK',
|
|
'common.yes': 'Áno',
|
|
'common.no': 'Nie',
|
|
'common.or': 'alebo',
|
|
'common.none': 'Žiadne',
|
|
'common.date': 'Dátum',
|
|
'common.rename': 'Premenovať',
|
|
'common.discardChanges': 'Zahodiť zmeny',
|
|
'common.discard': 'Zahodiť',
|
|
'common.unsavedTitle': 'Zahodiť zmeny?',
|
|
'common.unsavedMessage': 'To, čo ste tu zadali, ešte nie je uložené.',
|
|
'common.keepEditing': 'Pokračovať v úpravách',
|
|
'common.name': 'Meno',
|
|
'common.email': 'E-mail',
|
|
'common.password': 'Heslo',
|
|
'common.saving': 'Ukladá sa...',
|
|
'common.justNow': 'práve teraz',
|
|
'common.hoursAgo': 'pred {count} h',
|
|
'common.hoursAgo.one': 'pred {count} h',
|
|
'common.hoursAgo.few': 'pred {count} h',
|
|
'common.daysAgo': 'pred {count} d',
|
|
'common.daysAgo.one': 'pred {count} d',
|
|
'common.daysAgo.few': 'pred {count} d',
|
|
'common.saved': 'Uložené',
|
|
'common.update': 'Aktualizovať',
|
|
'common.change': 'Zmeniť',
|
|
'common.uploading': 'Nahráva sa…',
|
|
'common.backToPlanning': 'Späť k plánovaniu',
|
|
'common.reset': 'Obnoviť',
|
|
'common.expand': 'Rozbaliť',
|
|
'common.collapse': 'Zbaliť',
|
|
'common.copy': 'Kopírovať',
|
|
'common.copied': 'Skopírované',
|
|
'common.datepicker.prevMonth': 'Predchádzajúci mesiac',
|
|
'common.datepicker.nextMonth': 'Nasledujúci mesiac',
|
|
'common.datepicker.prevYear': 'Predchádzajúci rok',
|
|
'common.datepicker.nextYear': 'Nasledujúci rok',
|
|
'common.datepicker.prevYears': 'Predchádzajúce roky',
|
|
'common.datepicker.nextYears': 'Nasledujúce roky',
|
|
'common.datepicker.selectMonth': 'Vybrať mesiac',
|
|
'common.datepicker.selectYear': 'Vybrať rok',
|
|
'common.datepicker.enterManually': 'Zadať dátum ručne',
|
|
'common.datepicker.typeDate': 'Napíšte dátum',
|
|
'common.datepicker.dialog': 'Výber dátumu',
|
|
'common.datepicker.clearDate': 'Vymazať dátum',
|
|
'common.errorTitle': 'Niečo sa pokazilo',
|
|
'common.errorBody': 'Táto časť aplikácie prestala fungovať. Vaše údaje sú v bezpečí.',
|
|
'common.errorPanelTitle': 'Túto sekciu sa nepodarilo zobraziť',
|
|
'common.errorPanelBody': 'Zvyšok stránky funguje ďalej.',
|
|
'common.errorRetry': 'Skúsiť znova',
|
|
'common.errorReload': 'Znova načítať stránku',
|
|
'common.errorUpdateTitle': 'Je dostupná nová verzia',
|
|
'common.errorUpdateBody':
|
|
'TREK bol aktualizovaný, kým bola táto karta otvorená. Znova načítajte stránku pre novú verziu.',
|
|
'common.errorPluginTitle': 'Tento plugin sa nepodarilo zobraziť',
|
|
'common.needsConnection': 'Na toto je potrebné pripojenie. Skús to znova, keď bude TREK opäť online.',
|
|
};
|
|
export default common;
|