Magic Mirror Module - A module for Magic Mirror that overrides the relative time for moment.js-usage in all other modules
- Clone repository into
../modules/
inside your MagicMirror folder. - Add the module to the Magic Mirror config.
{
module: "MMM-RelativeTime",
config: {
en-gb: {
yy: "%d earth spins"
}
}
},
- Done! (this would cause any module that would display 4 years as "4 earth spins")
{locale}
: The root-object in the config should be a valid locale name, which should contain an object with the following optional parameters:future
: text for future time, %s will be replaced with the timepast
: text for past time, %s will be replaced with the times
: text for 'a few seconds'ss
: text for seconds, %d will be replaced with the amount of secondsm
: text for one minutemm
: text for minutes, %d will be replaced with the amount of minutesh
: text for one hourhh
: text for hours, %d will be replaced with the amount of hoursd
: text for one daydd
: text for days, %d will be replaced with the amount of daysM
: text for one monthMM
: text for months, %d will be replaced with the amount of monthsy
: text for one yearyy
: text for years, %d will be replaced with the amount of years