mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 23:16:46 +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.
107 lines
4.9 KiB
TypeScript
107 lines
4.9 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const collab: TranslationStrings = {
|
|
'collab.tabs.chat': 'Missatges',
|
|
'collab.tabs.notes': 'Notes',
|
|
'collab.tabs.polls': 'Enquestes',
|
|
'collab.tabs.links': 'Enllaços',
|
|
'collab.links.add': 'Afegeix un enllaç',
|
|
'collab.chat.imageRejected': "Només s'admeten imatges JPEG, PNG, GIF i WebP de fins a 10 MB",
|
|
'collab.links.cancel': 'Cancel·la',
|
|
'collab.links.save': "Desa l'enllaç",
|
|
'collab.links.titlePlaceholder': "Títol de l'enllaç",
|
|
'collab.links.urlPlaceholder': 'https://...',
|
|
'collab.links.empty': 'Encara no hi ha enllaços compartits',
|
|
'collab.links.pin': "Fixa l'enllaç",
|
|
'collab.links.unpin': "Desfixa l'enllaç",
|
|
'collab.links.delete': "Suprimeix l'enllaç",
|
|
'collab.links.edit': "Edita l'enllaç",
|
|
'collab.links.open': "Obre l'enllaç",
|
|
'collab.links.confirmDeleteTitle': "Suprimir l'enllaç?",
|
|
'collab.links.confirmDeleteBody': 'Aquest enllaç se suprimirà permanentment.',
|
|
'collab.whatsNext.title': 'Què ve ara',
|
|
'collab.whatsNext.today': 'Avui',
|
|
'collab.whatsNext.tomorrow': 'Demà',
|
|
'collab.whatsNext.empty': 'No hi ha activitats properes',
|
|
'collab.whatsNext.until': 'fins a',
|
|
'collab.whatsNext.emptyHint': 'Les activitats amb hora apareixeran aquí',
|
|
'collab.chat.send': 'Envia',
|
|
'collab.chat.placeholder': 'Escriu un missatge...',
|
|
'collab.chat.empty': 'Comença la conversa',
|
|
'collab.chat.emptyHint': 'Els missatges es comparteixen amb tots els membres del viatge',
|
|
'collab.chat.emptyDesc': 'Comparteix idees, plans i novetats amb el teu grup de viatge',
|
|
'collab.chat.today': 'Avui',
|
|
'collab.chat.yesterday': 'Ahir',
|
|
'collab.chat.deletedMessage': 'va eliminar un missatge',
|
|
'collab.chat.reply': 'Respon',
|
|
'collab.chat.loadMore': 'Carrega missatges anteriors',
|
|
'collab.chat.justNow': 'ara mateix',
|
|
'collab.chat.minutesAgo': 'fa {n} min',
|
|
'collab.chat.hoursAgo': 'fa {n} h',
|
|
'collab.notes.title': 'Notes',
|
|
'collab.notes.new': 'Nota nova',
|
|
'collab.notes.empty': 'Encara no hi ha notes',
|
|
'collab.notes.emptyHint': 'Comença a capturar idees i plans',
|
|
'collab.notes.all': 'Totes',
|
|
'collab.notes.titlePlaceholder': 'Títol de la nota',
|
|
'collab.notes.content': 'Contingut',
|
|
'collab.notes.removeFile': 'Elimina {name}',
|
|
'collab.notes.contentPlaceholder': 'Escriu alguna cosa...',
|
|
'collab.notes.categoryPlaceholder': 'Categoria',
|
|
'collab.notes.newCategory': 'Categoria nova...',
|
|
'collab.notes.category': 'Categoria',
|
|
'collab.notes.noCategory': 'Sense categoria',
|
|
'collab.notes.color': 'Color',
|
|
'collab.notes.save': 'Desa',
|
|
'collab.notes.cancel': 'Cancel·la',
|
|
'collab.notes.edit': 'Edita',
|
|
'collab.notes.delete': 'Elimina',
|
|
'collab.notes.confirmDeleteTitle': 'Vols eliminar la nota?',
|
|
'collab.notes.confirmDeleteBody': "Aquesta nota s'eliminarà de manera permanent.",
|
|
'collab.notes.pin': 'Fixa',
|
|
'collab.notes.unpin': 'Desfixa',
|
|
'collab.notes.daysAgo': 'fa {n} d',
|
|
'collab.notes.categorySettings': 'Gestiona les categories',
|
|
'collab.notes.create': 'Crea',
|
|
'collab.notes.website': 'Lloc web',
|
|
'collab.notes.websitePlaceholder': 'https://...',
|
|
'collab.notes.attachFiles': 'Adjunta fitxers',
|
|
'collab.notes.noCategoriesYet': 'Encara no hi ha categories',
|
|
'collab.notes.emptyDesc': 'Crea una nota per començar',
|
|
'collab.polls.title': 'Enquestes',
|
|
'collab.polls.new': 'Enquesta nova',
|
|
'collab.polls.empty': 'Encara no hi ha enquestes',
|
|
'collab.polls.emptyHint': 'Pregunta al grup i voteu plegats',
|
|
'collab.polls.question': 'Pregunta',
|
|
'collab.polls.questionPlaceholder': 'Què hauríem de fer?',
|
|
'collab.polls.markdownHint': 'Compatible amb Markdown',
|
|
'collab.polls.addOption': '+ Afegeix una opció',
|
|
'collab.polls.optionPlaceholder': 'Opció {n}',
|
|
'collab.polls.create': "Crea l'enquesta",
|
|
'collab.polls.close': 'Tanca',
|
|
'collab.polls.closed': 'Tancada',
|
|
'collab.polls.votes': '{n} vots',
|
|
'collab.polls.votes.one': '{n} vot',
|
|
'collab.polls.multipleChoice': 'Selecció múltiple',
|
|
'collab.polls.multiChoice': 'Selecció múltiple',
|
|
'collab.polls.deadline': 'Data límit',
|
|
'collab.polls.option': 'Opció',
|
|
'collab.polls.options': 'Opcions',
|
|
'collab.polls.delete': 'Elimina',
|
|
'collab.polls.closedSection': 'Tancades',
|
|
'collab.chat.readOnly': 'Accés només de lectura a aquest xat',
|
|
'collab.chat.messageOptions': 'Opcions del missatge',
|
|
'collab.polls.confirmDeleteTitle': "Vols eliminar l'enquesta?",
|
|
'collab.polls.confirmDeleteBody': 'Aquesta enquesta quedarà eliminada permanentment.',
|
|
'collab.polls.countdownDaysHours': '{d}d {h}h restants',
|
|
'collab.polls.countdownHoursMinutes': '{h}h {m}m restants',
|
|
'collab.polls.countdownMinutes': '{m}m restants',
|
|
'collab.polls.clearDeadline': 'Esborra la data límit',
|
|
'collab.chat.imageLimit': 'Pots adjuntar fins a {max} imatges per missatge',
|
|
'collab.chat.uploading': 'Pujant {percent} %',
|
|
'collab.chat.attachImages': 'Adjunta imatges',
|
|
'collab.chat.attachedImage': 'Imatge adjunta',
|
|
'collab.chat.closeImage': 'Tanca la imatge',
|
|
};
|
|
export default collab;
|