purifier-card 2.4.4 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purifier-card",
3
- "version": "2.4.4",
3
+ "version": "2.5.1",
4
4
  "description": "Air Purifier card for Home Assistant Lovelace UI",
5
5
  "main": "dist/purifier-card.js",
6
6
  "scripts": {
package/src/config.ts CHANGED
@@ -13,6 +13,7 @@ export default function buildConfig(
13
13
  }
14
14
 
15
15
  return {
16
+ ...config, // pass all unlisted properties
16
17
  entity: config.entity,
17
18
  show_name: config.show_name ?? true,
18
19
  show_state: config.show_state ?? true,
package/src/localize.ts CHANGED
@@ -16,6 +16,7 @@ import * as ru from './translations/ru.json';
16
16
  import * as it from './translations/it.json';
17
17
  import * as cs from './translations/cs.json';
18
18
  import * as nl from './translations/nl.json';
19
+ import * as es from './translations/es.json';
19
20
 
20
21
  type Translations = {
21
22
  [key: string]: {
@@ -39,6 +40,7 @@ const languages: Record<string, Translations> = {
39
40
  it,
40
41
  cs,
41
42
  nl,
43
+ es,
42
44
  };
43
45
 
44
46
  const DEFAULT_LANG = 'en';
@@ -0,0 +1,37 @@
1
+ {
2
+ "common": {
3
+ "name": "Tarjeta Purificadora",
4
+ "description": "La tarjeta purificadora te permite controlar tu purificador inteligente.",
5
+ "not_available": "La entidad no está disponible",
6
+ "toggle_power": "Encender/Apagar"
7
+ },
8
+ "state": {
9
+ "on": "Encendido",
10
+ "off": "Apagado"
11
+ },
12
+ "preset_mode": {
13
+ "auto": "Automático",
14
+ "silent": "Nocturno",
15
+ "favorite": "Manual",
16
+ "fan": "Ventilador"
17
+ },
18
+ "error": {
19
+ "missing_entity": "¡Se requiere especificar la entidad!"
20
+ },
21
+ "editor": {
22
+ "entity": "Entidad (Requerido)",
23
+ "compact_view": "Vista Compacta",
24
+ "compact_view_aria_label_on": "Activar vista compacta",
25
+ "compact_view_aria_label_off": "Desactivar vista compacta",
26
+ "show_name": "Mostrar Nombre",
27
+ "show_name_aria_label_on": "Activar mostrar nombre",
28
+ "show_name_aria_label_off": "Desactivar mostrar nombre",
29
+ "show_state": "Mostrar Estado",
30
+ "show_state_aria_label_on": "Activar mostrar estado",
31
+ "show_state_aria_label_off": "Desactivar mostrar estado",
32
+ "show_toolbar": "Mostrar Barra de Herramientas",
33
+ "show_toolbar_aria_label_on": "Activar mostrar barra de herramientas",
34
+ "show_toolbar_aria_label_off": "Desactivar mostrar barra de herramientas",
35
+ "code_only_note": "Nota: La configuración de acciones y opciones de estadísticas solo está disponible mediante el Editor de Código."
36
+ }
37
+ }