diff --git a/dist/power-flux-card.js b/dist/power-flux-card.js index 200e84a..301a47a 100644 --- a/dist/power-flux-card.js +++ b/dist/power-flux-card.js @@ -21,6 +21,21 @@ const lang_de = { "editor.entity": "Entität (Watt)", "editor.label": "Beschriftung", "editor.icon": "Icon", + "editor.back": "Zurück", + "editor.battery_soc_label": "Ladestand (%)", + "editor.house_total_title": "🏠 Gesamtverbrauch (optional)", + "editor.house_sensor_label": "Sensor für Hausverbrauch (optional)", + "editor.house_sensor_hint": "Wird benötigt, damit das Haus-Icon anklickbar ist.", + "editor.consumer_1_title": "🚗 Links (Lila)", + "editor.consumer_2_title": "♨️ Mitte (Orange)", + "editor.consumer_3_title": "🏊 Rechts (Türkis)", + "editor.zoom_label": "🔍 Zoom (Standard View)", + "editor.neon_glow": "Neon Glow", + "editor.donut_chart": "Donut Chart (Grid/Haus)", + "editor.comet_tail": "Comet Tail Effect", + "editor.dashed_line": "Dashed Line Effect", + "editor.colored_values": "Farbige Textwerte", + "editor.hide_consumer_icons": "Icons unten ausblenden", }, card: { "card.label_solar": "Solar", @@ -50,6 +65,21 @@ const lang_en = { "editor.entity": "Entity (Watt)", "editor.label": "Label", "editor.icon": "Icon", + "editor.back": "Back", + "editor.battery_soc_label": "State of Charge (%)", + "editor.house_total_title": "🏠 Total Consumption (optional)", + "editor.house_sensor_label": "Sensor for House Consumption (optional)", + "editor.house_sensor_hint": "Required to make the house icon clickable.", + "editor.consumer_1_title": "🚗 Left (Purple)", + "editor.consumer_2_title": "♨️ Center (Orange)", + "editor.consumer_3_title": "🏊 Right (Cyan)", + "editor.zoom_label": "🔍 Zoom (Standard View)", + "editor.neon_glow": "Neon Glow", + "editor.donut_chart": "Donut Chart (Grid/House)", + "editor.comet_tail": "Comet Tail Effect", + "editor.dashed_line": "Dashed Line Effect", + "editor.colored_values": "Colored Text Values", + "editor.hide_consumer_icons": "Hide Consumer Icons", }, card: { "card.label_solar": "Solar", @@ -79,10 +109,6 @@ const editorTranslations = { "de": lang_de.editor }; -const cardTranslations = { - "en": lang_en.card, - "de": lang_de.card -}; const fireEvent = (node, type, detail, options) => { options = options || {}; @@ -265,7 +291,7 @@ class PowerFluxCardEditor extends LitElement { return html`
- Zurück + ${this._localize('editor.back')}

${this._localize('editor.solar_section')}

@@ -303,7 +329,7 @@ class PowerFluxCardEditor extends LitElement {
@@ -325,7 +351,7 @@ class PowerFluxCardEditor extends LitElement { return html`
- Zurück + ${this._localize('editor.back')}

${this._localize('editor.grid_section')}

@@ -372,7 +398,7 @@ class PowerFluxCardEditor extends LitElement {
@@ -394,7 +420,7 @@ class PowerFluxCardEditor extends LitElement { return html`
- Zurück + ${this._localize('editor.back')}

${this._localize('editor.battery_section')}

@@ -413,7 +439,7 @@ class PowerFluxCardEditor extends LitElement { .selector=${entitySelectorSchema} .value=${entities.battery_soc} .configValue=${'battery_soc'} - .label=${"Ladestand (%)"} + .label=${this._localize('editor.battery_soc_label')} @value-changed=${this._valueChanged} > @@ -441,7 +467,7 @@ class PowerFluxCardEditor extends LitElement {
@@ -472,28 +498,28 @@ class PowerFluxCardEditor extends LitElement { return html`
- Zurück + ${this._localize('editor.back')}

${this._localize('editor.consumers_section')}

-
🏠 Gesamthausverbrauch (Optional)
+
${this._localize('editor.house_total_title')}
- Wird benötigt, damit das Haus-Icon anklickbar ist. + ${this._localize('editor.house_sensor_hint')}
-
🚗 Links (Lila)
+
${this._localize('editor.consumer_1_title')}
-
♨️ Mitte (Orange)
+
${this._localize('editor.consumer_2_title')}
-
🏊 Rechts (Türkis)
+
${this._localize('editor.consumer_3_title')}
@@ -647,7 +673,7 @@ class PowerFluxCardEditor extends LitElement { .configValue=${'show_neon_glow'} @change=${this._valueChanged} > -
Neon Glow
+
${this._localize('editor.neon_glow')}
@@ -656,7 +682,7 @@ class PowerFluxCardEditor extends LitElement { .configValue=${'show_donut_border'} @change=${this._valueChanged} > -
Donut Chart (Grid/Haus)
+
${this._localize('editor.donut_chart')}
@@ -665,7 +691,7 @@ class PowerFluxCardEditor extends LitElement { .configValue=${'show_comet_tail'} @change=${this._valueChanged} > -
Comet Tail Effect
+
${this._localize('editor.comet_tail')}
@@ -674,7 +700,7 @@ class PowerFluxCardEditor extends LitElement { .configValue=${'show_dashed_line'} @change=${this._valueChanged} > -
Dashed Line Animation
+
${this._localize('editor.dashed_line')}
@@ -683,7 +709,7 @@ class PowerFluxCardEditor extends LitElement { .configValue=${'use_colored_values'} @change=${this._valueChanged} > -
Farbige Textwerte
+
${this._localize('editor.colored_values')}
@@ -692,7 +718,7 @@ class PowerFluxCardEditor extends LitElement { .configValue=${'hide_consumer_icons'} @change=${this._valueChanged} > -
Icons unten ausblenden
+
${this._localize('editor.hide_consumer_icons')}
@@ -730,7 +756,7 @@ console.log( "background: #d19525ff; color: #000; padding: 2px 6px; border-radius: 4px; font-weight: bold;" ); -(function () { +(function (lang_en, lang_de) { const cardTranslations = { "en": lang_en.card, "de": lang_de.card @@ -1739,7 +1765,7 @@ console.log( } customElements.define("power-flux-card", PowerFluxCard); -})(); +})(lang_en, lang_de); window.customCards = window.customCards || []; window.customCards.push({