Files
TREK/shared/src/i18n/br/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

71 lines
3.2 KiB
TypeScript

import type { TranslationStrings } from '../types';
const planner: TranslationStrings = {
'planner.places': 'Lugares',
'planner.bookings': 'Reservas',
'planner.packingList': 'Lista de mala',
'planner.documents': 'Documentos',
'planner.dayPlan': 'Plano do dia',
'planner.reservations': 'Reservas',
'planner.minTwoPlaces': 'São necessários pelo menos 2 lugares com coordenadas',
'planner.noGeoPlaces': 'Nenhum lugar com coordenadas disponível',
'planner.routeCalculated': 'Rota calculada',
'planner.routeCalcFailed': 'Não foi possível calcular a rota',
'planner.routeError': 'Erro ao calcular a rota',
'planner.icsExportFailed': 'Falha ao exportar ICS',
'planner.routeOptimized': 'Rota otimizada',
'planner.reservationUpdated': 'Reserva atualizada',
'planner.reservationAdded': 'Reserva adicionada',
'planner.confirmDeleteReservation': 'Excluir reserva?',
'planner.reservationDeleted': 'Reserva excluída',
'planner.days': 'Dias',
'planner.allPlaces': 'Todos os lugares',
'planner.totalPlaces': '{n} lugares no total',
'planner.totalPlaces.one': '{n} lugar no total',
'planner.noDaysPlanned': 'Nenhum dia planejado ainda',
'planner.editTrip': 'Editar viagem →',
'planner.placeOne': '1 lugar',
'planner.placeN': '{n} lugares',
'planner.placeN.one': '{n} lugar',
'planner.addNote': 'Adicionar nota',
'planner.noEntries': 'Nenhuma entrada neste dia',
'planner.addPlace': 'Adicionar lugar/atividade',
'planner.addPlaceShort': '+ Adicionar lugar/atividade',
'planner.resPending': 'Reserva pendente',
'planner.resConfirmed': 'Reserva confirmada',
'planner.notePlaceholder': 'Nota…',
'planner.noteTimePlaceholder': 'Horário (opcional)',
'planner.noteExamplePlaceholder': 'ex.: metrô às 14:30 da estação central, barco do cais 7, pausa para almoço…',
'planner.totalCost': 'Custo total',
'planner.searchPlaces': 'Buscar lugares…',
'planner.allCategories': 'Todas as categorias',
'planner.noPlacesFound': 'Nenhum lugar encontrado',
'planner.addFirstPlace': 'Adicionar primeiro lugar',
'planner.noReservations': 'Nenhuma reserva',
'planner.addFirstReservation': 'Adicionar primeira reserva',
'planner.new': 'Novo',
'planner.addToDay': '+ Dia',
'planner.calculating': 'Calculando…',
'planner.route': 'Rota',
'planner.optimize': 'Otimizar',
'planner.openGoogleMaps': 'Abrir no Google Maps',
'planner.openCoMaps': 'Abrir no CoMaps',
'planner.selectDayHint': 'Selecione um dia na lista à esquerda para ver o plano do dia',
'planner.noPlacesForDay': 'Nenhum lugar neste dia ainda',
'planner.addPlacesLink': 'Adicionar lugares →',
'planner.minTotal': 'mín. total',
'planner.noReservation': 'Sem reserva',
'planner.removeFromDay': 'Remover do dia',
'planner.addToThisDay': 'Adicionar ao dia',
'planner.overview': 'Visão geral',
'planner.noDays': 'Nenhum dia ainda',
'planner.editTripToAddDays': 'Edite a viagem para adicionar dias',
'planner.dayCount': '{n} dias',
'planner.dayCount.one': '{n} dia',
'planner.clickToUnlock': 'Clique para desbloquear',
'planner.keepPosition': 'Manter posição durante a otimização da rota',
'planner.dayDetails': 'Detalhes do dia',
'planner.dayN': 'Dia {n}',
};
export default planner;