-
-
Notifications
You must be signed in to change notification settings - Fork 682
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
added week and quarter to persian/farsi #1190
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1190 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 10
Lines 2324 2324
Branches 357 357
=========================================
Hits 2324 2324 ☔ View full report in Codecov by Sentry. |
Thanks @Crimson-Amir for the contribution. Mind adding some unit tests? |
@Crimson-Amir would it be possible to add some unit tests? Then we can merge this in. |
Sure |
Hey @Crimson-Amir thanks for adding tests. Mind running |
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.
quarter tests are missing, but LGTM otherwise
assert self.locale._format_timeframe("hours", 2) == "2 ساعت" | ||
assert self.locale._format_timeframe("days", 2) == "2 روز" | ||
assert self.locale._format_timeframe("weeks", 2) == "2 هفته" | ||
assert self.locale._format_timeframe("months", 2) == "2 ماه" |
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.
missing tests for quarters, otherwise 👍
There was no equivalent of week and quarter in Persian language.
I use this library and I had to use try-except to handle the week and this made me do this contribute.