timeago

Fast, multilingual, and lightweight datetime package that converts given datetime into "n time ago" format

MIT License

Stars
19
timeago - v1.1.7

Published by SerhiiCho almost 3 years ago

v1.1.7 (2022-01-16)

  • Added caching the parsed results into memory to speed up the program. After this change, it will only parse json files once.
timeago - v1.1.6

Published by SerhiiCho almost 3 years ago

Release Notes

v1.1.6 (2021-12-30)

  • Changed type for the special rule in rules.go file.
  • Improved docs by adding more information about how to contribute a language support.
timeago - v1.1.5

Published by SerhiiCho almost 3 years ago

  • Added support for Ukrainian language
  • Improved documentation
  • Made easy to contribute another language
timeago - v1.1.4

Published by SerhiiCho almost 3 years ago

v1.1.4 (2021-12-05)

  • Fixed mistake with failing test
timeago - v1.1.3

Published by SerhiiCho almost 3 years ago

v1.1.3 (2021-12-04)

  • Added ability to add rules to a language. We need it to make the ability to easily add a new translation for the package. Each language will have it's own set of rules.
timeago - v1.1.2

Published by SerhiiCho almost 3 years ago

  • Fixed bug with wrong path for plugin root
timeago -

Published by SerhiiCho almost 3 years ago

  • Fixed bug with can't find /langs/*.json files
timeago - v1.1.0

Published by SerhiiCho almost 3 years ago

  • Refactored adding translation to a library
timeago - v1.0.3

Published by SerhiiCho over 3 years ago

  • Fixed bug with February month. Program was assuming that February also has 30-31 days
timeago - v1.0.2

Published by SerhiiCho over 4 years ago

  • Fixed "0 months ago" result by adding if statement
timeago - v1.0.1

Published by SerhiiCho about 5 years ago

  • Fixed tests for English translations with number 1 at the end
  • Cleaned code
timeago - v1.0.0

Published by SerhiiCho about 5 years ago

First release of the package