Skip to content

Commit b306038

Browse files
Merge pull request #45 from JonasDoebertin/spain-localization
Add Spanish localization
2 parents 8a452bb + 1ca6847 commit b306038

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

src/localization/lang/es.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"noEvents": {
3+
"title": "No hay eventos para hoy",
4+
"subtitle": "Haz algo agradable"
5+
},
6+
"event": {
7+
"schedule": {
8+
"from": "Desde",
9+
"until": "Hasta"
10+
}
11+
},
12+
"config": {
13+
"stub": {
14+
"title": "Calendario para hoy"
15+
},
16+
"label": {
17+
"advance": "Avanzar",
18+
"clear": "Limpiar",
19+
"color": "Color",
20+
"content": "Contenido",
21+
"entities": "Entidades",
22+
"fallback_color": "Color de respaldo",
23+
"interactions": "Interacciones",
24+
"show_all_day_events": "Mostrar eventos de todo el día",
25+
"show_past_events": "Mostrar eventos pasados",
26+
"tap_action": "Comportamiento al pulsar",
27+
"time_format": "Formato de hora",
28+
"title": "Título"
29+
}
30+
}
31+
}

src/localization/localize.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import * as de from "./lang/de.json";
22
import * as en from "./lang/en.json";
3+
import * as es from "./lang/es.json";
34
import {getHass} from "../globals";
45

56
const TRANSLATIONS: Record<string, unknown> = {
67
de,
78
en,
89
"en-GB": en,
10+
es,
911
};
1012

1113
const DEFAULT_LANG: string = "en";

0 commit comments

Comments
 (0)