-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use versioned CLDR data #825
Conversation
Codecov Report
@@ Coverage Diff @@
## master #825 +/- ##
=======================================
Coverage 98.30% 98.30%
=======================================
Files 231 231
Lines 2590 2590
=======================================
Hits 2546 2546
Misses 44 44
Continue to review full report at Codecov.
|
22de797
to
b176f48
Compare
BTW, I removed the |
related to this: #487 |
I created this ticket with the step by step guide to update the CLDR in the future once we merge this: #826 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! 🚀
We have been using an old version of CLDR data. It has been tried to update the data from CLDR in the past but it's something really hard to do.
I changed the
dateparser_scripts.utils.get_raw_data
function to point to a specific version and updated the files accordingly.That version was released in April 2017 and it is the most similar I found to the current data (I would say "exactly the same version"). Most of the changes you will see are related to the order, as it's important to keep all ordered to update the data easily in the future.
Once I fixed that I downloaded that version data (JSON files, script:
python dateparser_scripts/get_cldr_data.py
), I updated the resources (py files, script:dateparser_scripts/write_complete_data.py
) and I run the tests and all is working as expected, so I think this is a good starting point. Once we merge this we can gradually update the CLDR versions to get the most recent version.(you can review this easier by going commit by commit)
closes: #824