Files
TREK/shared/src/i18n/es/common.ts
T
Maurice bdaddc44ac fix(i18n): every count-bearing string is a plural group
The plural parity check only knows the groups en already declares, so a
"{count} ..." string added as a plain key kept one form in every
language: Polish read "Usuń 1 spakowanych", Czech "Odstranit 1
hotových" and Greek "1 λεπτά". 44 such en keys become plural groups with their
forms in all 27 locales: the collection, packing, day plan and offline
banner counts, the relative times, the audit log, the tour and transit
minutes, the share and photo hints. Labels like "Notes: {count}" get
their forms too, so a language can still inflect them later. The
dashboard's hand-rolled activeOne/activeMany pair, unused, becomes one
group, dashboard.subtitle.active.

i18n-parity now refuses an en string with {count} or {n} that is no
plural group. NOT_PLURAL lists the eleven where the number is never a
quantity (a day number, a step, a waypoint, the equator multiplier),
each with its reason, and an entry that stops matching fails as well.

Callers that worked around the engine:
- Copy to trip switched between two keys on placeIds.length > 1;
  collections.copyN now carries the one-place wording as its `one` form,
  where the language's `one` is the number 1 alone.
- The plugin dependency toasts said "addon(s)" and "plugin(s)"; they are
  groups now and the panels pass the list length as the count.
- The dismissed suggestions count went in as a string and the comp days
  as a formatted string, so no form was picked; both pass numbers.
2026-10-08 13:04:41 +02:00

84 lines
3.4 KiB
TypeScript

import type { TranslationStrings } from '../types';
const common: TranslationStrings = {
'common.save': 'Guardar',
'common.showMore': 'Ver más',
'common.showLess': 'Ver menos',
'common.cancel': 'Cancelar',
'common.clear': 'Borrar',
'common.delete': 'Eliminar',
'common.remove': 'Eliminar',
'common.preview': 'Vista previa',
'common.edit': 'Editar',
'common.add': 'Añadir',
'common.loading': 'Cargando...',
'common.import': 'Importar',
'common.select': 'Seleccionar',
'common.selectAll': 'Seleccionar todo',
'common.deselectAll': 'Deseleccionar todo',
'common.error': 'Error',
'common.success': 'Éxito',
'common.unknownError': 'Error desconocido',
'common.tooManyAttempts': 'Demasiados intentos. Inténtelo de nuevo más tarde.',
'common.back': 'Atrás',
'common.all': 'Todo',
'common.close': 'Cerrar',
'common.open': 'Abrir',
'common.upload': 'Subir',
'common.search': 'Buscar',
'common.confirm': 'Confirmar',
'common.ok': 'Aceptar',
'common.yes': 'Sí',
'common.no': 'No',
'common.or': 'o',
'common.none': 'Ninguno',
'common.date': 'Fecha',
'common.rename': 'Renombrar',
'common.discardChanges': 'Descartar cambios',
'common.discard': 'Descartar',
'common.unsavedTitle': '¿Descartar los cambios?',
'common.unsavedMessage': 'Lo que has introducido aquí aún no se ha guardado.',
'common.keepEditing': 'Seguir editando',
'common.name': 'Nombre',
'common.email': 'Correo',
'common.password': 'Contraseña',
'common.saving': 'Guardando...',
'common.saved': 'Guardado',
'common.expand': 'Expandir',
'common.collapse': 'Contraer',
'common.update': 'Actualizar',
'common.change': 'Cambiar',
'common.uploading': 'Subiendo…',
'common.backToPlanning': 'Volver a la planificación',
'common.reset': 'Restablecer',
'common.copy': 'Copiar',
'common.copied': 'Copiado',
'common.justNow': 'justo ahora',
'common.hoursAgo': 'hace {count}h',
'common.hoursAgo.one': 'hace {count}h',
'common.daysAgo': 'hace {count}d',
'common.daysAgo.one': 'hace {count}d',
'common.datepicker.prevMonth': 'Previous month', // en-fallback
'common.datepicker.nextMonth': 'Next month', // en-fallback
'common.datepicker.prevYear': 'Previous year', // en-fallback
'common.datepicker.nextYear': 'Next year', // en-fallback
'common.datepicker.prevYears': 'Previous years', // en-fallback
'common.datepicker.nextYears': 'Next years', // en-fallback
'common.datepicker.selectMonth': 'Select month', // en-fallback
'common.datepicker.selectYear': 'Select year', // en-fallback
'common.datepicker.enterManually': 'Enter date manually', // en-fallback
'common.datepicker.typeDate': 'Type a date', // en-fallback
'common.datepicker.dialog': 'Date picker', // en-fallback
'common.datepicker.clearDate': 'Clear date', // en-fallback
'common.errorTitle': 'Algo salió mal',
'common.errorBody': 'Esta parte de la aplicación dejó de funcionar. Tus datos están a salvo.',
'common.errorPanelTitle': 'No se pudo mostrar esta sección',
'common.errorPanelBody': 'El resto de la página sigue funcionando.',
'common.errorRetry': 'Reintentar',
'common.errorReload': 'Recargar la página',
'common.errorUpdateTitle': 'Hay una nueva versión disponible',
'common.errorUpdateBody': 'TREK se actualizó mientras esta pestaña estaba abierta. Recarga para obtener la nueva versión.',
'common.errorPluginTitle': 'No se pudo mostrar este plugin',
};
export default common;