mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 13:23:04 +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
86 lines
3.3 KiB
TypeScript
86 lines
3.3 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.save': 'Salvesta',
|
|
'common.showMore': 'Näita rohkem',
|
|
'common.showLess': 'Näita vähem',
|
|
'common.cancel': 'Tühista',
|
|
'common.clear': 'Tühjenda',
|
|
'common.delete': 'Kustuta',
|
|
'common.remove': 'Eemalda',
|
|
'common.preview': 'Eelvaade',
|
|
'common.edit': 'Muuda',
|
|
'common.add': 'Lisa',
|
|
'common.loading': 'Laadimine...',
|
|
'common.import': 'Impordi',
|
|
'common.select': 'Vali',
|
|
'common.selectAll': 'Vali kõik',
|
|
'common.deselectAll': 'Tühista kõik valikud',
|
|
'common.error': 'Viga',
|
|
'common.success': 'Õnnestus',
|
|
'common.unknownError': 'Tundmatu viga',
|
|
'common.tooManyAttempts': 'Liiga palju katseid. Proovi hiljem uuesti.',
|
|
'common.back': 'Tagasi',
|
|
'common.all': 'Kõik',
|
|
'common.close': 'Sulge',
|
|
'common.open': 'Ava',
|
|
'common.upload': 'Laadi üles',
|
|
'common.search': 'Otsi',
|
|
'common.confirm': 'Kinnita',
|
|
'common.ok': 'OK',
|
|
'common.yes': 'Jah',
|
|
'common.no': 'Ei',
|
|
'common.or': 'või',
|
|
'common.none': 'Puudub',
|
|
'common.date': 'Kuupäev',
|
|
'common.rename': 'Nimeta ümber',
|
|
'common.discardChanges': 'Loobu muudatustest',
|
|
'common.discard': 'Loobu',
|
|
'common.unsavedTitle': 'Kas loobuda muudatustest?',
|
|
'common.unsavedMessage': 'Siia sisestatu pole veel salvestatud.',
|
|
'common.keepEditing': 'Jätka muutmist',
|
|
'common.name': 'Nimi',
|
|
'common.email': 'E-post',
|
|
'common.password': 'Parool',
|
|
'common.saving': 'Salvestamine...',
|
|
'common.justNow': 'äsja',
|
|
'common.hoursAgo': '{count} tundi tagasi',
|
|
'common.hoursAgo.one': '{count} tund tagasi',
|
|
'common.daysAgo': '{count} päeva tagasi',
|
|
'common.daysAgo.one': '{count} päev tagasi',
|
|
'common.saved': 'Salvestatud',
|
|
'common.update': 'Uuenda',
|
|
'common.change': 'Muuda',
|
|
'common.uploading': 'Üleslaadimine…',
|
|
'common.backToPlanning': 'Tagasi planeerimisse',
|
|
'common.reset': 'Lähtesta',
|
|
'common.expand': 'Laienda',
|
|
'common.collapse': 'Ahenda',
|
|
'common.copy': 'Kopeeri',
|
|
'common.copied': 'Kopeeritud',
|
|
'common.datepicker.prevMonth': 'Eelmine kuu',
|
|
'common.datepicker.nextMonth': 'Järgmine kuu',
|
|
'common.datepicker.prevYear': 'Eelmine aasta',
|
|
'common.datepicker.nextYear': 'Järgmine aasta',
|
|
'common.datepicker.prevYears': 'Eelmised aastad',
|
|
'common.datepicker.nextYears': 'Järgmised aastad',
|
|
'common.datepicker.selectMonth': 'Vali kuu',
|
|
'common.datepicker.selectYear': 'Vali aasta',
|
|
'common.datepicker.enterManually': 'Sisesta kuupäev käsitsi',
|
|
'common.datepicker.typeDate': 'Sisesta kuupäev',
|
|
'common.datepicker.dialog': 'Kuupäevavalija',
|
|
'common.datepicker.clearDate': 'Tühjenda kuupäev',
|
|
'common.errorTitle': 'Midagi läks valesti',
|
|
'common.errorBody': 'See rakenduse osa lakkas töötamast. Sinu andmed on alles.',
|
|
'common.errorPanelTitle': 'Seda jaotist ei saanud kuvada',
|
|
'common.errorPanelBody': 'Ülejäänud leht töötab endiselt.',
|
|
'common.errorRetry': 'Proovi uuesti',
|
|
'common.errorReload': 'Laadi leht uuesti',
|
|
'common.errorUpdateTitle': 'Saadaval on uus versioon',
|
|
'common.errorUpdateBody':
|
|
'TREKi uuendati ajal, kui see vahekaart oli avatud. Uue versiooni kasutamiseks laadi leht uuesti.',
|
|
'common.errorPluginTitle': 'Seda pluginat ei saanud kuvada',
|
|
'common.needsConnection': 'Selleks on vaja ühendust. Proovi uuesti, kui TREK on taas võrgus.',
|
|
};
|
|
export default common;
|