Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate: add spanish language #556

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 144 additions & 0 deletions projects/rero/ng-core/src/lib/translate/primeng/es.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
5 changes: 4 additions & 1 deletion projects/rero/ng-core/src/lib/translate/translate-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,21 @@
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';
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';

Expand All @@ -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 }
};
Expand Down