Skip to content
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -719,11 +719,12 @@ This card supports translations. Please, help to add more translations and impro
- French
- German
- Hebrew
- Korean
- Nederlands (Dutch)
- Polish (polski)
- Portuguese
- Russian
- Korean
- Spanish
- [_Your language?_][add-translation]

## Credits
Expand Down
62 changes: 62 additions & 0 deletions src/localize/languages/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"common": {
"version": "v",
"invalid_configuration": "Configuración Inválida",
"show_warning": "Mostrar Aviso",
"show_error": "Mostrar Error"
},
"tabs": {
"general": {
"title": "General",
"entity": "Entidad (Requerida)",
"name": "Nombre (Opcional)",
"show_name": "¿Mostrar nombre?",
"show_state": "¿Mostrar estado?",
"compact": "¿Compacto?"
},
"icon": {
"title": "Icono",
"icon": "Icono (Opcional)",
"show_icon": "¿Mostrar icono?",
"use_state_color": "¿Usar color del estado?",
"tap_action": "Acción al pulsar"
},
"slider": {
"title": "Control deslizante",
"direction": "Dirección",
"background": "Fondo",
"use_brightness": "¿Usar brillo?",
"show_track": "¿Mostrar senda?",
"toggle_on_click": "Comportamiento como interruptor (Deshabilitar deslizamiento)",
"force_square": "¿Forzar cuadrado?"
},
"action_button": {
"title": "Acción del botón",
"mode": "Modo",
"icon": "Icono",
"show_button": "¿Mostrar botón?",
"show_spinner": "¿Mostrar transición?",
"tap_action": "Acción al pulsar"
}
},
"state": {
"off": "Apagado",
"on": "Encendido"
},
"direction": {
"left-right": "De izquierda a derecha",
"top-bottom": "De arriba abajo",
"bottom-top": "De abajo arriba"
},
"background": {
"striped": "Líneas",
"gradient": "Degradado",
"solid": "Sólido",
"triangle": "Triángulo",
"custom": "Personalizado"
},
"mode": {
"toggle": "Conmutar",
"custom": "Personalizado"
}
}
2 changes: 2 additions & 0 deletions src/localize/localize.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as en from './languages/en.json';
import * as es from './languages/es.json';
import * as de from './languages/de.json';
import * as fr from './languages/fr.json';
import * as he from './languages/he.json';
Expand All @@ -13,6 +14,7 @@ import * as ko from './languages/ko.json';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const languages: any = {
en: en,
es: es,
de: de,
fr: fr,
he: he,
Expand Down