Files
TREK/shared/src/i18n/uk/planner.ts
T
Maurice bee500880e fix(i18n): every language says one file and five files its own way
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.
2026-10-08 00:01:59 +00:00

77 lines
4.3 KiB
TypeScript

import type { TranslationStrings } from '../types';
const planner: TranslationStrings = {
'planner.places': 'Місця',
'planner.bookings': 'Бронювання',
'planner.packingList': 'Список речей',
'planner.documents': 'Документи',
'planner.dayPlan': 'План дня',
'planner.reservations': 'Бронювання',
'planner.minTwoPlaces': 'Потрібно мінімум 2 місця з координатами',
'planner.noGeoPlaces': 'Немає місць з координатами',
'planner.routeCalculated': 'Маршрут розраховано',
'planner.routeCalcFailed': 'Не вдалося розрахувати маршрут',
'planner.routeError': 'Помилка розрахунку маршруту',
'planner.icsExportFailed': 'Не вдалося експортувати ICS',
'planner.routeOptimized': 'Маршрут оптимізовано',
'planner.reservationUpdated': 'Бронювання оновлено',
'planner.reservationAdded': 'Бронювання додано',
'planner.confirmDeleteReservation': 'Видалити бронювання?',
'planner.reservationDeleted': 'Бронювання видалено',
'planner.days': 'Дні',
'planner.allPlaces': 'Усі місця',
'planner.totalPlaces': 'Усього {n} місця',
'planner.totalPlaces.one': 'Усього {n} місце',
'planner.totalPlaces.few': 'Усього {n} місця',
'planner.totalPlaces.many': 'Усього {n} місць',
'planner.noDaysPlanned': 'Дні ще не заплановано',
'planner.editTrip': 'Редагувати поїздку →',
'planner.placeOne': '1 місце',
'planner.placeN': '{n} місця',
'planner.placeN.one': '{n} місце',
'planner.placeN.few': '{n} місця',
'planner.placeN.many': '{n} місць',
'planner.addNote': 'Додати нотатку',
'planner.noEntries': 'На цей день записів немає',
'planner.addPlace': 'Додати місце/активність',
'planner.addPlaceShort': '+ Додати місце/активність',
'planner.resPending': 'Бронювання очікує',
'planner.resConfirmed': 'Бронювання підтверджено',
'planner.notePlaceholder': 'Нотатка…',
'planner.noteTimePlaceholder': 'Час (необов’язково)',
'planner.noteExamplePlaceholder': 'наприклад, S3 о 14:30 з вокзалу, пором з причалу 7, обідня перерва…',
'planner.totalCost': 'Загальна вартість',
'planner.searchPlaces': 'Пошук місць…',
'planner.allCategories': 'Усі категорії',
'planner.noPlacesFound': 'Місця не знайдені',
'planner.addFirstPlace': 'Додати перше місце',
'planner.noReservations': 'Немає бронювань',
'planner.addFirstReservation': 'Додати перше бронювання',
'planner.new': 'Нове',
'planner.addToDay': '+ День',
'planner.calculating': 'Розрахунок…',
'planner.route': 'Маршрут',
'planner.optimize': 'Оптимізувати',
'planner.openGoogleMaps': 'Відкрити в Google Maps',
'planner.openCoMaps': 'Відкрити в CoMaps',
'planner.selectDayHint': 'Оберіть день зі списку ліворуч для перегляду плану дня',
'planner.noPlacesForDay': 'На цей день місць поки немає',
'planner.addPlacesLink': 'Додати місця →',
'planner.minTotal': 'мін. всього',
'planner.noReservation': 'Немає бронювання',
'planner.removeFromDay': 'Прибрати з дня',
'planner.addToThisDay': 'Додати до дня',
'planner.overview': 'Огляд',
'planner.noDays': 'Днів немає',
'planner.editTripToAddDays': 'Відредагуйте поїздку, щоб додати дні',
'planner.dayCount': '{n} дня',
'planner.dayCount.one': '{n} день',
'planner.dayCount.few': '{n} дні',
'planner.dayCount.many': '{n} днів',
'planner.clickToUnlock': 'Натисніть, щоб розблокувати',
'planner.keepPosition': 'Зберегти позицію при оптимізації маршруту',
'planner.dayDetails': 'Подробиці дня',
'planner.dayN': 'День {n}',
};
export default planner;