mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-23 15:36:33 +00:00
33fcbba414
- Replace fixed-order date parser with locale-aware implementation using Intl.DateTimeFormat.formatToParts to detect field order; adds swap fallback for unambiguous inputs (day > 12) to handle locale mismatches gracefully - Pre-fill keyboard input with locale-formatted numeric date (e.g. 14.06.2026) instead of raw ISO value - Replace all hardcoded English aria-labels and titles with t() calls; add new keys under common.datepicker.* namespace across all locale files - Update FE-COMP-DATEPICKER-013 to use unambiguous day value (> 12) to avoid locale-dependent test failures
67 lines
2.4 KiB
TypeScript
67 lines
2.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.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.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.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.daysAgo': '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
|
|
};
|
|
export default common;
|