EvanHahn / HumanizeDuration.js

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

Bulgarian Support #118

Closed canerelci closed 7 years ago

canerelci commented 7 years ago

I tried to create a pull request for Bulgarian support but failed with some reason. Anyway, it's not a big thing, you might add these into languages object:

bg: {
  y: function (c) { return ['години', 'година', 'години'][getSlavicForm(c)] },
  mo: function (c) { return ['месеца', 'месец', 'месеца'][getSlavicForm(c)] },
  w: function (c) { return ['седмици', 'седмица', 'седмици'][getSlavicForm(c)] },
  d: function (c) { return ['дни', 'ден', 'дни'][getSlavicForm(c)] },
  h: function (c) { return ['часа', 'час', 'часа'][getSlavicForm(c)] },
  m: function (c) { return ['минути', 'минута', 'минути'][getSlavicForm(c)] },
  s: function (c) { return ['секунди', 'секунда', 'секунди'][getSlavicForm(c)] },
  ms: function (c) { return ['милисекунди', 'милисекунда', 'милисекунди'][getSlavicForm(c)] },
  decimal: ','
},
EvanHahn commented 7 years ago

This looks good! Would you be able to add tests? You can see an example English file here.

EvanHahn commented 7 years ago

@canerelci Any updates?

EvanHahn commented 7 years ago

There hasn't been movement on this for about 6 months, so I'm going to close this issue. Feel free to comment if you wish to pick this back up.

canerelci commented 7 years ago

Sorry, I totally forgot about this. Let me check what can I do. Would you like me to send a PR?

EvanHahn commented 7 years ago

Thanks for your PR! We'll keep talking on #126.