mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 13:10:29 +00:00
bee500880e
Finishes the plural work the previous wip commit started. t() picks a count string's form by the language's own Intl.PluralRules, and every locale now spells out the forms its language reaches with whole numbers, about 160 count strings in all: one, few and many in Russian, Ukrainian and Polish, one and few in Czech and Slovak, five forms in Arabic, one in the others, none in Japanese, Korean, Chinese, Thai, Vietnamese and Indonesian. Each language was translated and then reviewed on its own. English no longer reads "1 files", "1 updates available" or "photo(s)". Count labels shown next to a number now take that number too: the atlas and admin statistics, the trip cards, journey and shared trip pills, packing templates, receipts, storage usage, the Studio export note. A heading that shared its key with a counted label keeps a key of its own (the boarding pass heading, the Bookings tab), so languages that put a noun after a number in the singular keep a plural heading. The plugin hosts chip passed its count through .replace() after t() and never got a form; three toasts sent the count as text. Mail and push texts for shared photos and suppressed storage failures pick their form in code through pluralForm. A whole number sent as text counts too, which is how in-app notification params arrive, and the plural rule follows the language of the strings on screen while another one still loads. The parity check knows which forms each language needs and refuses missing and impossible ones. It also reads keys that contain a colon now: it skipped them, which hid 58 missing plugin permission texts in Catalan and 35 in Vietnamese, both translated. The client parity test covers every language of the registry instead of a hand-kept list of 19, and the placeholder spec lets a form spell its number out only where its category is that one number. Brazilian Portuguese error screens were in Breton, and an Arabic dashboard label held Hebrew text.
72 lines
3.2 KiB
TypeScript
72 lines
3.2 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const planner: TranslationStrings = {
|
|
'planner.places': 'Llocs',
|
|
'planner.bookings': 'Reserves',
|
|
'planner.packingList': "Llista d'equipatge",
|
|
'planner.documents': 'Documents',
|
|
'planner.dayPlan': 'Pla per dies',
|
|
'planner.reservations': 'Reserves',
|
|
'planner.minTwoPlaces': 'Calen almenys 2 llocs amb coordenades',
|
|
'planner.noGeoPlaces': 'No hi ha llocs amb coordenades disponibles',
|
|
'planner.routeCalculated': 'Ruta calculada',
|
|
'planner.routeCalcFailed': "No s'ha pogut calcular la ruta",
|
|
'planner.routeError': 'Error en calcular la ruta',
|
|
'planner.icsExportFailed': "Error en exportar l'ICS",
|
|
'planner.routeOptimized': 'Ruta optimitzada',
|
|
'planner.reservationUpdated': 'Reserva actualitzada',
|
|
'planner.reservationAdded': 'Reserva afegida',
|
|
'planner.confirmDeleteReservation': 'Vols eliminar la reserva?',
|
|
'planner.reservationDeleted': 'Reserva eliminada',
|
|
'planner.days': 'Dies',
|
|
'planner.allPlaces': 'Tots els llocs',
|
|
'planner.totalPlaces': '{n} llocs en total',
|
|
'planner.totalPlaces.one': '{n} lloc en total',
|
|
'planner.noDaysPlanned': 'Encara no hi ha dies planificats',
|
|
'planner.editTrip': 'Edita el viatge →',
|
|
'planner.placeOne': '1 lloc',
|
|
'planner.placeN': '{n} llocs',
|
|
'planner.placeN.one': '{n} lloc',
|
|
'planner.addNote': 'Afegeix una nota',
|
|
'planner.noEntries': 'No hi ha entrades per a aquest dia',
|
|
'planner.addPlace': 'Afegeix un lloc / activitat',
|
|
'planner.addPlaceShort': '+ Afegeix un lloc / activitat',
|
|
'planner.resPending': 'Reserva pendent',
|
|
'planner.resConfirmed': 'Reserva confirmada',
|
|
'planner.notePlaceholder': 'Nota…',
|
|
'planner.noteTimePlaceholder': 'Hora (opcional)',
|
|
'planner.noteExamplePlaceholder':
|
|
"p. ex. S3 a les 14:30 des de l'estació central, ferri des del moll 7, pausa per menjar…",
|
|
'planner.totalCost': 'Cost total',
|
|
'planner.searchPlaces': 'Cerca llocs…',
|
|
'planner.allCategories': 'Totes les categories',
|
|
'planner.noPlacesFound': "No s'han trobat llocs",
|
|
'planner.addFirstPlace': 'Afegeix el primer lloc',
|
|
'planner.noReservations': 'Sense reserves',
|
|
'planner.addFirstReservation': 'Afegeix la primera reserva',
|
|
'planner.new': 'Nou',
|
|
'planner.addToDay': '+ Dia',
|
|
'planner.calculating': 'Calculant…',
|
|
'planner.route': 'Ruta',
|
|
'planner.optimize': 'Optimitza',
|
|
'planner.openGoogleMaps': 'Obre a Google Maps',
|
|
'planner.openCoMaps': 'Obre a CoMaps',
|
|
'planner.selectDayHint': "Selecciona un dia de la llista de l'esquerra per veure el seu pla",
|
|
'planner.noPlacesForDay': 'Encara no hi ha llocs per a aquest dia',
|
|
'planner.addPlacesLink': 'Afegeix llocs →',
|
|
'planner.minTotal': 'min en total',
|
|
'planner.noReservation': 'Sense reserva',
|
|
'planner.removeFromDay': 'Treure del dia',
|
|
'planner.addToThisDay': 'Afegeix al dia',
|
|
'planner.overview': 'Vista general',
|
|
'planner.noDays': 'Encara no hi ha dies',
|
|
'planner.editTripToAddDays': 'Edita el viatge per afegir dies',
|
|
'planner.dayCount': '{n} dies',
|
|
'planner.dayCount.one': '{n} dia',
|
|
'planner.clickToUnlock': 'Fes clic per desbloquejar',
|
|
'planner.keepPosition': "Mantén la posició durant l'optimització de ruta",
|
|
'planner.dayDetails': 'Detalls del dia',
|
|
'planner.dayN': 'Dia {n}',
|
|
};
|
|
export default planner;
|