Open seebaer1976 opened 1 year ago
would it be possible to output these sections in several languages?
<div class="temperature-container" @click=${() => this._moreinfo(this.config.temperature)}> <div style="grid-column: 1 / 2;" class="grid-item-text-box " >COLD</div> <div style="grid-column: 2 / 3; border-top: 1px solid var(--primary-text-color); margin-top: 10px" class="grid-item-text-box "></div> <div style="grid-column: 3 / 4;" class="grid-item-text-box ">TEMPERATURE</div> <div style="grid-column: 4 / 5; border-top: 1px solid var(--primary-text-color); margin-top: 10px" class="grid-item-text-box "></div> <div style="grid-column: 5 / 6;" class="grid-item-text-box" ">HOT</div> if (stateObj_state < 4) {ph_state = "Very Acid"} else if ( stateObj_state >= 4 && stateObj_state < 5 ) {ph_state = "Acid"} else if ( stateObj_state >= 5 && stateObj_state < 7 ) {ph_state = "Acidic-ish"} else if ( stateObj_state >= 7 && stateObj_state < 8 ) {ph_state = "Neutral"} else if ( stateObj_state >= 8 && stateObj_state < 10 ) {ph_state = "Alkaline-ish"} else if ( stateObj_state >= 10 && stateObj_state < 11 ) {ph_state = "Alkaline"} else if ( stateObj_state >= 11 ) {ph_state = "Very Alkaline"}; <div class="ph-state-text"> <div style="grid-column: 1 / 2;" class="grid-item-text-box ">ACIDIC</div> <div style="grid-column: 2 / 3; border-top: 1px solid var(--primary-text-color); margin-top: 10px" class="grid-item-text-box "></div> <div style="grid-column: 3 / 4;" class="grid-item-text-box ">NEUTRAL</div> <div style="grid-column: 4 / 5; border-top: 1px solid var(--primary-text-color); margin-top: 10px" class="grid-item-text-box "></div> <div style="grid-column: 5 / 6;" class="grid-item-text-box" ">ALKALINE</div> </div>
<div class="temperature-container" @click=${() => this._moreinfo(this.config.temperature)}> <div style="grid-column: 1 / 2;" class="grid-item-text-box " >COLD</div> <div style="grid-column: 2 / 3; border-top: 1px solid var(--primary-text-color); margin-top: 10px" class="grid-item-text-box "></div> <div style="grid-column: 3 / 4;" class="grid-item-text-box ">TEMPERATURE</div> <div style="grid-column: 4 / 5; border-top: 1px solid var(--primary-text-color); margin-top: 10px" class="grid-item-text-box "></div> <div style="grid-column: 5 / 6;" class="grid-item-text-box" ">HOT</div>
if (stateObj_state < 4) {ph_state = "Very Acid"} else if ( stateObj_state >= 4 && stateObj_state < 5 ) {ph_state = "Acid"} else if ( stateObj_state >= 5 && stateObj_state < 7 ) {ph_state = "Acidic-ish"} else if ( stateObj_state >= 7 && stateObj_state < 8 ) {ph_state = "Neutral"} else if ( stateObj_state >= 8 && stateObj_state < 10 ) {ph_state = "Alkaline-ish"} else if ( stateObj_state >= 10 && stateObj_state < 11 ) {ph_state = "Alkaline"} else if ( stateObj_state >= 11 ) {ph_state = "Very Alkaline"};
<div class="ph-state-text"> <div style="grid-column: 1 / 2;" class="grid-item-text-box ">ACIDIC</div> <div style="grid-column: 2 / 3; border-top: 1px solid var(--primary-text-color); margin-top: 10px" class="grid-item-text-box "></div> <div style="grid-column: 3 / 4;" class="grid-item-text-box ">NEUTRAL</div> <div style="grid-column: 4 / 5; border-top: 1px solid var(--primary-text-color); margin-top: 10px" class="grid-item-text-box "></div> <div style="grid-column: 5 / 6;" class="grid-item-text-box" ">ALKALINE</div> </div>
or simply asked if it would not be possible to make the whole plugin multilingual?
mfg markus
would it be possible to output these sections in several languages?
or simply asked if it would not be possible to make the whole plugin multilingual?
mfg markus