Skip to content
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
2 changes: 1 addition & 1 deletion src/humanize/locale/tr_TR/LC_MESSAGES/humanize.po
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ msgstr[1] "%d yıl"
#: src/humanize/time.py:256
#, python-format
msgid "%s from now"
msgstr "şu andan itibaren %s"
msgstr "%s sonra"

#: src/humanize/time.py:256
#, python-format
Expand Down
5 changes: 5 additions & 0 deletions tests/test_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ def test_i18n() -> None:
assert humanize.naturaltime(three_seconds) == "3 সেকেন্ড সময় আগে"
assert humanize.precisedelta(one_min_three_seconds) == "1 মিনিট আর 7 সেকেন্ড"

humanize.i18n.activate("tr_TR")
assert humanize.naturaltime(three_seconds) == "3 saniye önce"
in_three_days = NOW + dt.timedelta(days=3)
assert humanize.naturaltime(in_three_days, when=NOW) == "3 gün sonra"

except FileNotFoundError:
pytest.skip("Generate .mo with scripts/generate-translation-binaries.sh")

Expand Down
Loading