EvanHahn / HumanizeDuration.js

361000 becomes "6 minutes, 1 second"

Home Page:https://evanhahn.github.io/HumanizeDuration.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bulgarian Support

canerelci opened this issue · comments

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: ','
},

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

@canerelci Any updates?

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.

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

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