Read the statement by Michael Teeuw here.
MMM-Humanize-Duration
-
Description
I just had a baby, and I wanted a geeky way to keep track of his exact age, so…
You can also use it to track any other past (or future) events!
Underneath, it’s just a simple wrapper around HumanizeDuration.jsScreenshots:
Download:
[card:ryck/MMM-Humanize-Duration]
-
@ryck Not ‘geeky’ at all…pretty cool!
-
Indeed, very cool. I really like it.
What is needed to add localisation to your module? My wife don’t like to ready the age of our daughter in englisch… :-) -
@andurii Thanks!
Using another language is really easy (thanks to HumanizeDuration.js): Just pass language as an option, like:
options: { units: ["y", "mo", "w", "d", "h"], round: true, language: 'de', conjunction: ' and ', serialComma: false, },
-
@ryck thank you for pointing me to this. Maybe you could also mention this in the readme or even use the specified standard language of the mirror as value here.
-
@andurii That’s a great idea, I’ll do that!
-
Congratulations upon reproducing!