Skip to content

Commit

Permalink
Change varable in events translation {0} -> {event}
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed Oct 1, 2021
1 parent c493749 commit 4f17206
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/meteoalarm-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class MeteoalarmCard extends LitElement
}
else
{
return localize(awarenessLevel.translationKey).event.replace('{0}', localize(awarenessType.translationKey));
return localize(awarenessLevel.translationKey).event.replace('{event}', localize(awarenessType.translationKey));
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
},
"messages": {
"yellow": {
"event": "{0} der Warnstufe Gelb",
"event": "{event} der Warnstufe Gelb",
"generic": null,
"color": null
},
"orange": {
"event": "{0} der Warnstufe Orange",
"event": "{event} der Warnstufe Orange",
"generic": null,
"color": null
},
"red": {
"event": "{0} der Warnstufe Rot",
"event": "{event} der Warnstufe Rot",
"generic": null,
"color": null
}
Expand Down
6 changes: 3 additions & 3 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
},
"messages": {
"yellow": {
"event": "Yellow {0} warning",
"event": "Yellow {event} warning",
"generic": "Yellow warning",
"color": "Yellow"
},
"orange": {
"event": "Orange {0} warning",
"event": "Orange {event} warning",
"generic": "Orange warning",
"color": "Orange"
},
"red": {
"event": "Red {0} warning",
"event": "Red {event} warning",
"generic": "Red warning",
"color": "Red"
}
Expand Down
6 changes: 3 additions & 3 deletions src/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
},
"messages": {
"yellow": {
"event": "Alerta amarilla por {0}",
"event": "Alerta amarilla por {event}",
"generic": null,
"color": null
},
"orange": {
"event": "Alerta naranja por {0}",
"event": "Alerta naranja por {event}",
"generic": null,
"color": null
},
"red": {
"event": "Alerta roja {0}",
"event": "Alerta roja {event}",
"generic": null,
"color": null
}
Expand Down
6 changes: 3 additions & 3 deletions src/translations/et.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
},
"messages": {
"yellow": {
"event": "Kollane hoiatus {0}",
"event": "Kollane hoiatus {event}",
"generic": null,
"color": null
},
"orange": {
"event": "Oranž hoiatus {0}",
"event": "Oranž hoiatus {event}",
"generic": null,
"color": null
},
"red": {
"event": "Punane hoiatus {0}",
"event": "Punane hoiatus {event}",
"generic": null,
"color": null
}
Expand Down
6 changes: 3 additions & 3 deletions src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
},
"messages": {
"yellow": {
"event": "Alerte jaune {0}",
"event": "Alerte jaune {event}",
"generic": null,
"color": null
},
"orange": {
"event": "Alerte orange {0}",
"event": "Alerte orange {event}",
"generic": null,
"color": null
},
"red": {
"event": "Alerte rouge {0}",
"event": "Alerte rouge {event}",
"generic": null,
"color": null
}
Expand Down
6 changes: 3 additions & 3 deletions src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
},
"messages": {
"yellow": {
"event": "Allarme Giallo {0}",
"event": "Allarme Giallo {event}",
"generic": null,
"color": null
},
"orange": {
"event": "Allarme Arancione {0}",
"event": "Allarme Arancione {event}",
"generic": null,
"color": null
},
"red": {
"event": "Allarme Rosso {0}",
"event": "Allarme Rosso {event}",
"generic": null,
"color": null
}
Expand Down
6 changes: 3 additions & 3 deletions src/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
},
"messages": {
"yellow": {
"event": "Waarschuwing geel {0}",
"event": "Waarschuwing geel {event}",
"generic": null,
"color": null
},
"orange": {
"event": "Waarschuwing oranje {0}",
"event": "Waarschuwing oranje {event}",
"generic": null,
"color": null
},
"red": {
"event": "Waarschuwing rood {0}",
"event": "Waarschuwing rood {event}",
"generic": null,
"color": null
}
Expand Down
6 changes: 3 additions & 3 deletions src/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
},
"messages": {
"yellow": {
"event": "Żółty alert na {0}",
"event": "Żółty alert na {event}",
"generic": "Żółty alert",
"color": "Żółty"
},
"orange": {
"event": "Pomarańczowy alert na {0}",
"event": "Pomarańczowy alert na {event}",
"generic": "Pomarańczowy alert",
"color": "Pomarańczowy"
},
"red": {
"event": "Czerwony alert na {0}",
"event": "Czerwony alert na {event}",
"generic": "Czerwony alert",
"color": "Czerwony"
}
Expand Down

0 comments on commit 4f17206

Please sign in to comment.