arrow-py / arrow

🏹 Better dates & times for Python
https://arrow.readthedocs.io
Apache License 2.0
8.7k stars 673 forks source link

add Sinhala locale #1043

Closed yichidev closed 3 years ago

yichidev commented 3 years ago

Pull Request Checklist

Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:

If you have any questions about your code changes or any of the points above, please submit your questions along with the pull request and we will try our best to help!

Description of Changes

Add Sinhala locale. Sinhala awares time frame format and describe function, takes into account the differences between general, past, and future forms (three different suffixes). So we do not copy the original timeframes dictionary as timeframes_only_distance, we wrote a new timeframes_only_distance dictionary :)

codecov[bot] commented 3 years ago

Codecov Report

Merging #1043 (747da78) into master (9b45719) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1043   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines         2168      2208   +40     
  Branches       345       348    +3     
=========================================
+ Hits          2168      2208   +40     
Impacted Files Coverage Δ
arrow/locales.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9b45719...747da78. Read the comment docs.