Hi there,
I’m running waste collection schedule and it’s working great. However, when I integrate it into my Dashboard I want it to display “tomorrow” (“morgen”) or “today” (“heute”) instead of (for example) “in one day”.
So I’m doing this in markdown with replace functions. All goes well, except: When the number of days is >= 10 it shows it as (for example) “1(tomorrow)” (see German language screenshot below).
It seems the markdown generates the “tomorrow” or “today” from the “1” or “0” that comes second in the “10”, “11”, “12”, …
I think it’s because “in 1 Tag(e)” is supposed to turn into “morgen” (tomorrow), whereas “in 11 Tag(e)” should be translated to “in 11 Tagen”).
Anybody know how this can be fixed?
Thanks!
Frontend (Dashboard):
YAML code for the Dashboard portion above:
Config.YAML entry for waste collection schedule (there’s a second entry for organic waste below the “Restmuell” entry, it’s formated/written identically to the “Restmuell” entry):