diff --git a/projects/rero/ng-core/src/lib/translate/primeng/es.json b/projects/rero/ng-core/src/lib/translate/primeng/es.json new file mode 100644 index 00000000..b8f72668 --- /dev/null +++ b/projects/rero/ng-core/src/lib/translate/primeng/es.json @@ -0,0 +1,144 @@ +{ + "startsWith": "Comience con", + "contains": "Contenga", + "notContains": "No contenga", + "endsWith": "Termine con", + "equals": "Igual a", + "notEquals": "Diferente a", + "noFilter": "Sin filtro", + "lt": "Menor que", + "lte": "Menor o igual a", + "gt": "Mayor que", + "gte": "Mayor o igual a", + "dateIs": "Fecha igual a", + "dateIsNot": "Fecha diferente a", + "dateBefore": "Fecha antes de", + "dateAfter": "Fecha después de", + "custom": "Personalizar", + "clear": "Limpiar", + "apply": "Aplicar", + "matchAll": "Coincidir todo", + "matchAny": "Coincidir con cualquiera", + "addRule": "Agregar regla", + "removeRule": "Eliminar regla", + "accept": "Sí", + "reject": "No", + "choose": "Escoger", + "upload": "Subir", + "cancel": "Cancelar", + "dayNames": [ + "Domingo", + "Lunes", + "Martes", + "Miércoles", + "Jueves", + "Viernes", + "Sábado" + ], + "dayNamesShort": [ + "Dom", + "Lun", + "Mar", + "Mié", + "Jue", + "Vie", + "Sáb" + ], + "dayNamesMin": [ + "D", + "L", + "M", + "X", + "J", + "V", + "S" + ], + "monthNames": [ + "Enero", + "Febrero", + "Marzo", + "Abril", + "Mayo", + "Junio", + "Julio", + "Agosto", + "Septiembre", + "Octubre", + "Noviembre", + "Diciembre" + ], + "monthNamesShort": [ + "Ene", + "Feb", + "Mar", + "Abr", + "May", + "Jun", + "Jul", + "Ago", + "Sep", + "Oct", + "Nov", + "Dic" + ], + "today": "Hoy", + "weekHeader": "Sem", + "firstDayOfWeek": 1, + "dateFormat": "dd/mm/yy", + "weak": "Débil", + "medium": "Medio", + "strong": "Fuerte", + "passwordPrompt": "Escriba una contraseña", + "emptyFilterMessage": "Sin opciones disponibles", + "emptyMessage": "No se han encontrado resultados", + "aria": { + "trueLabel": "Verdadero", + "falseLabel": "Falso", + "nullLabel": "No seleccionado", + "star": "1 estrella", + "stars": "{star} estrellas", + "selectAll": "Seleccionar todos", + "unselectAll": "Deseleccionar todos", + "close": "Cerrar", + "previous": "Anterior", + "next": "Siguiente", + "navigation": "Navegación", + "scrollTop": "Desplazarse arriba", + "moveTop": "Mover arriba", + "moveUp": "Subir", + "moveDown": "Bajar", + "moveBottom": "Desplazarse abajo", + "moveToTarget": "Mover al objectivo", + "moveToSource": "Mover al fuente", + "moveAllToTarget": "Mover todo al objetivo", + "moveAllToSource": "Mover todo al fuente", + "pageLabel": "{page}", + "firstPageLabel": "Primera Página", + "lastPageLabel": "Última Página", + "nextPageLabel": "Siguiente Página", + "previousPageLabel": "Página Anterior", + "rowsPerPageLabel": "Filas por página", + "jumpToPageDropdownLabel": "Ir al menú desplegable de página", + "jumpToPageInputLabel": "Ir a la entrada de página", + "selectRow": "Seleccionar fila", + "unselectRow": "Desmarcar fila", + "expandRow": "Expandir Fila", + "collapseRow": "Reducir Fila", + "showFilterMenu": "Mostrar menú del filtro", + "hideFilterMenu": "Ocultar menú del filtro", + "filterOperator": "Operador de filtro", + "filterConstraint": "Restricción de filtro", + "editRow": "Editar fila", + "saveEdit": "Guardar editado", + "cancelEdit": "Cancelar editado", + "listView": "Vista de lista", + "gridView": "Vista de cuadrícula", + "slide": "Deslizar", + "slideNumber": "{slideNumber}", + "zoomImage": "Ampliar imagen", + "zoomIn": "Ampliar", + "zoomOut": "Reducir", + "rotateRight": "Girar derecha", + "rotateLeft": "Girar izquierda" + } +} diff --git a/projects/rero/ng-core/src/lib/translate/translate-service.ts b/projects/rero/ng-core/src/lib/translate/translate-service.ts index 66b3836f..a546650d 100644 --- a/projects/rero/ng-core/src/lib/translate/translate-service.ts +++ b/projects/rero/ng-core/src/lib/translate/translate-service.ts @@ -17,6 +17,7 @@ import { registerLocaleData } from '@angular/common'; import localeDe from '@angular/common/locales/de'; import localeEnGB from '@angular/common/locales/en-GB'; +import localeEs from '@angular/common/locales/es'; import localeFr from '@angular/common/locales/fr'; import localeIt from '@angular/common/locales/it'; import { Injectable } from '@angular/core'; @@ -24,12 +25,13 @@ import { TranslateService as NgxTranslateService } from '@ngx-translate/core'; import moment from 'moment'; import { defineLocale } from 'ngx-bootstrap/chronos'; import { BsLocaleService } from 'ngx-bootstrap/datepicker'; -import { deLocale, enGbLocale, frLocale, itLocale } from 'ngx-bootstrap/locale'; +import { deLocale, enGbLocale, esLocale, frLocale, itLocale } from 'ngx-bootstrap/locale'; import { PrimeNGConfig } from 'primeng/api'; import { Observable } from 'rxjs'; import { CoreConfigService } from '../core-config.service'; import primeNgDe from './primeng/de.json'; import primeNgEn from './primeng/en.json'; +import primeNgEs from './primeng/es.json'; import primeNgFr from './primeng/fr.json'; import primeNgIt from './primeng/it.json'; @@ -40,6 +42,7 @@ export class TranslateService { languages = { de: { ngx: deLocale, angular: localeDe, primeng: primeNgDe }, en: { ngx: enGbLocale, angular: localeEnGB, primeng: primeNgEn }, + es: { ngx: esLocale, angular: localeEs, primeng: primeNgEs }, fr: { ngx: frLocale, angular: localeFr, primeng: primeNgFr }, it: { ngx: itLocale, angular: localeIt, primeng: primeNgIt } };