hustcc / timeago

:hourglass: Simple library used to format datetime with `*** time ago` statement. eg: "3 hours ago".
http://timeago.org
MIT License
223 stars 37 forks source link

Importation of the locales from the JS Repo #20

Closed lolobosse closed 6 years ago

lolobosse commented 6 years ago

Refers to #19


I created a script which:

  1. Copies the git repo of timeago.js
  2. Detects which languages are "easy to parse"
  3. Runs a node script which transforms the modules into JSON (very fast done...).
  4. Extract the values from the newly created JSON
  5. Writes them to file (if they were not in the repo before)
  6. Cleans the mess it created

TODO:

  1. Write the according tests
  2. Clean the file that might be incorrect
  3. Adapt the Readme
  4. Release on Pypi

But I hope it will give a kick to this cool project! 💪

hustcc commented 6 years ago

The test cases can be divided into different files.

lolobosse commented 6 years ago

I fucked up with git, I need to recreate one, sorry