diff --git a/src/localize/languages/de.json b/src/localize/languages/de.json index 7e7b50c..4187e22 100644 --- a/src/localize/languages/de.json +++ b/src/localize/languages/de.json @@ -1,27 +1,25 @@ { - "common": { - "version": "Version", - "invalid_configuration": "Ungültige Konfiguration", - "show_warning": "Warnung anzeigen", - "show_error": "Fehler anzeigen", - "pm_index": "PM-Index", - "pm_risk_level": "Risikostufe", - "pm_risk": "Risiko" - }, - "pm_levels": { - "low": "Niedrig", - "moderate": "Mäßig", - "high": "Hoch", - "very_high": "Sehr hoch", - "extreme": "Extrem" - }, - "pm_risk": { - "low": "Kein Risiko", - "moderate": "Mäßig für Atemproblem", - "high": "Hoch für Atemprobleme", - "very_high": "Hoch für Lunge und Kopf", - "extreme": "Extrem für Lunge und Kopf" - } + "common": { + "version": "Version", + "invalid_configuration": "Ungültige Konfiguration", + "show_warning": "Warnung anzeigen", + "show_error": "Fehler anzeigen", + "pm_index": "PM-Index", + "pm_risk_level": "Risikostufe", + "pm_risk": "Risiko" + }, + "pm_levels": { + "low": "Niedrig", + "moderate": "Mäßig", + "high": "Hoch", + "very_high": "Sehr hoch", + "extreme": "Extrem" + }, + "pm_risk": { + "low": "Kein Risiko", + "moderate": "Mäßig für Atemproblem", + "high": "Hoch für Atemprobleme", + "very_high": "Hoch für Lunge und Kopf", + "extreme": "Extrem für Lunge und Kopf" } - - +} diff --git a/src/localize/languages/en.json b/src/localize/languages/en.json index 2b6c83b..4d37c06 100644 --- a/src/localize/languages/en.json +++ b/src/localize/languages/en.json @@ -22,4 +22,4 @@ "very_high": "High for lungs and head", "extreme": "Extreme for lungs and head" } -} \ No newline at end of file +} diff --git a/src/pm-index-card.ts b/src/pm-index-card.ts index 5355217..194da0c 100644 --- a/src/pm-index-card.ts +++ b/src/pm-index-card.ts @@ -95,7 +95,7 @@ export class PMIndexCard extends LitElement { // const showRecommendation = this.config.show_recommendation; let colorTriangleValue = 1; - let pmRiskStr = 'pm_levels.low' + let pmRiskLevel = 'pm_levels.low' let pmRisk = 'pm_risk.low' if (this.config.pm_10) { @@ -107,7 +107,7 @@ export class PMIndexCard extends LitElement { } if (stateValue >= 12 && stateValue < 35) { - pmRiskStr = 'pm_levels.moderate' + pmRiskLevel = 'pm_levels.moderate' pmRisk = 'pm_risk.moderate' colorTriangleValue = 3; @@ -122,7 +122,7 @@ export class PMIndexCard extends LitElement { } if (stateValue >= 35 && stateValue < 55) { - pmRiskStr = 'pm_levels.high' + pmRiskLevel = 'pm_levels.high' pmRisk = 'pm_risk.high' colorTriangleValue = 6; @@ -133,7 +133,7 @@ export class PMIndexCard extends LitElement { } if (stateValue >= 55 && stateValue < 150) { - pmRiskStr = 'pm_levels.very_high' + pmRiskLevel = 'pm_levels.very_high' pmRisk = 'pm_risk.very_high' colorTriangleValue = 8; @@ -148,7 +148,7 @@ export class PMIndexCard extends LitElement { } if (stateValue >= 150) { - pmRiskStr = 'pm_levels.extreme' + pmRiskLevel = 'pm_levels.extreme' pmRisk = 'pm_risk.extreme' colorTriangleValue = 11; @@ -207,7 +207,7 @@ export class PMIndexCard extends LitElement {
${localize('common.pm_risk_level', '', '', this.config.language)}
- ${localize(pmRiskStr, '', '', this.config.language)}
+ ${localize(pmRiskLevel, '', '', this.config.language)}