MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Humanize-Duration

    Scheduled Pinned Locked Moved Utilities
    7 Posts 4 Posters 2.9k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cowboysdudeC Offline
      cowboysdude Module Developer @ryck
      last edited by

      @ryck Not ‘geeky’ at all…pretty cool!

      1 Reply Last reply Reply Quote 0
      • A Offline
        AnduriI
        last edited by

        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… :-)

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          ryck Module Developer @AnduriI
          last edited by ryck

          @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,
          		},
          
          A 1 Reply Last reply Reply Quote 0
          • A Offline
            AnduriI @ryck
            last edited by

            @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.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              ryck Module Developer @AnduriI
              last edited by

              @andurii That’s a great idea, I’ll do that!

              1 Reply Last reply Reply Quote 0
              • bheplerB Offline
                bhepler Module Developer
                last edited by

                Congratulations upon reproducing!

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy