Skip to content
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

ZWNJ Replacement #122

Merged
merged 2 commits into from
Feb 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jdatetime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ class date:
]
j_weekdays_fa = [
'شنبه',
'یکشنبه',
'یک‌شنبه',
'دوشنبه',
'سه شنبه',
'سهشنبه',
'چهارشنبه',
'پنجشنبه',
'پنج‌شنبه',
'جمعه',
]
j_ampm_fa = {'PM': 'بعد از ظهر', 'AM': 'قبل از ظهر'}
Expand Down
4 changes: 2 additions & 2 deletions tests/test_jdatetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def record_locale_formatted_date(record, locale):
fa_th.start()
fa_th.join()

self.assertEqual(['یکشنبه', 'خرداد'], fa_record)
self.assertEqual(['یک‌شنبه', 'خرداد'], fa_record)

@skipUnless(greenlet_installed, 'greenlets ident is used when greenlet module is installed')
def test_set_locale_sets_default_locale_for_date_objects_with_greenlets(self):
Expand All @@ -813,4 +813,4 @@ def record_locale_formatted_date(record, locale):
fa_greenlet = greenlet.greenlet(record_locale_formatted_date)
fa_greenlet.switch(fa_record, jdatetime.FA_LOCALE)

self.assertEqual(['یکشنبه', 'خرداد'], fa_record)
self.assertEqual(['یک‌شنبه', 'خرداد'], fa_record)