EvanHahn / HumanizeDuration.js

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

Lao Language support #132

Closed sam-lex closed 6 years ago

sam-lex commented 6 years ago

Hello, thanks for this awesome lib.
Would you be interested in adding support for Lao language? (p.s.: "milliseconds" seems to be non-existent in Laotian)

var languages = {
  lo: {
    y: 'ປີ',
    mo: 'ເດືອນ',
    w: 'ອາທິດ',
    d: 'ມື້',
    h: 'ຊົ່ວໂມງ',
    m: 'ນາທີ',
    s: 'ວິນາທີ',
    ms: function (c) { return 'millisecond' + (c === 1 ? '' : 's') },
    decimal: ','
  }
}

Translation credits to: Malikoun

Right now I'm just using a custom humanizer with it defined, and works great. I can provide a PR next week or so if you want.

EvanHahn commented 6 years ago

A PR would be great!