EvanHahn / HumanizeDuration.js

361000 becomes "6 minutes, 1 second"
https://evanhahn.github.io/HumanizeDuration.js/
The Unlicense
1.64k stars 175 forks source link

Silly question. #89

Closed vdrasutis closed 8 years ago

vdrasutis commented 8 years ago

Hello. I want to add new language. I see that there is test and generated SCV files. So. How to generate this CSV file for new language?

And I added reference to my web page with new language support. And it throws: humanize-duration.js:479Uncaught TypeError: Cannot set property 'humanizeDuration' of undefined

And this 479 line is : this.humanizeDuration = humanizeDuration from

if (typeof define === 'function' && define.amd) {
    define(function () {
      return humanizeDuration
    })
  } else if (typeof module !== 'undefined' && module.exports) {
    module.exports = humanizeDuration
  } else {
    this.humanizeDuration = humanizeDuration
  }

So what is the problem?

vdrasutis commented 8 years ago

Fount how to. Eh... need to read "CONTRIBUTING.md"