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
86 lines
3.3 KiB
TypeScript
86 lines
3.3 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const common: TranslationStrings = {
|
|
'common.datepicker.prevMonth': 'Föregående månad',
|
|
'common.datepicker.nextMonth': 'Nästa månad',
|
|
'common.datepicker.prevYear': 'Föregående år',
|
|
'common.datepicker.nextYear': 'Nästa år',
|
|
'common.datepicker.prevYears': 'Tidigare år',
|
|
'common.datepicker.nextYears': 'Senare år',
|
|
'common.datepicker.selectMonth': 'Välj månad',
|
|
'common.datepicker.selectYear': 'Välj år',
|
|
'common.datepicker.enterManually': 'Ange datum manuellt',
|
|
'common.datepicker.typeDate': 'Skriv ett datum',
|
|
'common.datepicker.dialog': 'Datumväljare',
|
|
'common.datepicker.clearDate': 'Rensa datum',
|
|
'common.save': 'Spara',
|
|
'common.showMore': 'Visa mer',
|
|
'common.showLess': 'Visa mindre',
|
|
'common.cancel': 'Avbryt',
|
|
'common.clear': 'Rensa',
|
|
'common.delete': 'Ta bort',
|
|
'common.remove': 'Ta bort',
|
|
'common.preview': 'Förhandsvisning',
|
|
'common.edit': 'Redigera',
|
|
'common.add': 'Lägg till',
|
|
'common.loading': 'Laddar...',
|
|
'common.import': 'Importera',
|
|
'common.select': 'Välj',
|
|
'common.selectAll': 'Välj alla',
|
|
'common.deselectAll': 'Avmarkera alla',
|
|
'common.error': 'Fel',
|
|
'common.success': 'Klart',
|
|
'common.unknownError': 'Okänt fel',
|
|
'common.tooManyAttempts': 'För många försök. Försök igen senare.',
|
|
'common.back': 'Tillbaka',
|
|
'common.all': 'Alla',
|
|
'common.close': 'Stäng',
|
|
'common.open': 'Öppen',
|
|
'common.upload': 'Ladda upp',
|
|
'common.search': 'Sök',
|
|
'common.confirm': 'Godkänn',
|
|
'common.ok': 'OK',
|
|
'common.yes': 'Ja',
|
|
'common.no': 'Nej',
|
|
'common.or': 'eller',
|
|
'common.none': 'Ingen',
|
|
'common.date': 'Datum',
|
|
'common.rename': 'Döp om',
|
|
'common.discardChanges': 'Ångra ändringar',
|
|
'common.discard': 'Ångra',
|
|
'common.unsavedTitle': 'Slänga ändringarna?',
|
|
'common.unsavedMessage': 'Det du har fyllt i här är inte sparat än.',
|
|
'common.keepEditing': 'Fortsätt redigera',
|
|
'common.name': 'Namn',
|
|
'common.email': 'E-post',
|
|
'common.password': 'Lösenord',
|
|
'common.saving': 'Sparar...',
|
|
'common.justNow': 'just nu',
|
|
'common.hoursAgo': '{count}h sedan',
|
|
'common.hoursAgo.one': '{count}h sedan',
|
|
'common.daysAgo': '{count}d sedan',
|
|
'common.daysAgo.one': '{count}d sedan',
|
|
'common.saved': 'Sparad',
|
|
'common.update': 'Uppdatera',
|
|
'common.change': 'Ändra',
|
|
'common.uploading': 'Laddar upp…',
|
|
'common.backToPlanning': 'Tillbaka till planering',
|
|
'common.reset': 'Återställ',
|
|
'common.expand': 'Expandera',
|
|
'common.collapse': 'Dölj',
|
|
'common.copy': 'Kopiera',
|
|
'common.copied': 'Kopierad',
|
|
'common.errorTitle': 'Något gick fel',
|
|
'common.errorBody': 'Den här delen av appen slutade fungera. Dina data är säkra.',
|
|
'common.errorPanelTitle': 'Det här avsnittet kunde inte visas',
|
|
'common.errorPanelBody': 'Resten av sidan fungerar fortfarande.',
|
|
'common.errorRetry': 'Försök igen',
|
|
'common.errorReload': 'Ladda om sidan',
|
|
'common.errorUpdateTitle': 'En ny version är tillgänglig',
|
|
'common.errorUpdateBody':
|
|
'TREK uppdaterades medan den här fliken var öppen. Ladda om för att hämta den nya versionen.',
|
|
'common.errorPluginTitle': 'Det här tillägget kunde inte visas',
|
|
'common.needsConnection': 'Det här kräver en anslutning. Försök igen när TREK är online igen.',
|
|
};
|
|
export default common;
|