Skip to content
Open
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
10 changes: 10 additions & 0 deletions src/humanize/locale/fa_IR/LC_MESSAGES/humanize.po
Original file line number Diff line number Diff line change
Expand Up @@ -363,3 +363,13 @@ msgstr "دیروز"
#, python-format
msgid "%s and %s"
msgstr "%s و %s"

# --- filesize units (naturalsize) ---

#, python-format
msgid "%d Byte"
msgstr "%d بایت"

#, python-format
msgid "%d Bytes"
msgstr "%d بایت"
5 changes: 5 additions & 0 deletions tests/test_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ def test_intword_i18n(locale: str, number: int, expected_result: str) -> None:
[
("fr_FR", 1, "1 octet"),
("fr_FR", 42, "42 octets"),
("fa_IR", 0, "0 بایت"),
("fa_IR", 1, "1 بایت"),
("fa_IR", -1, "-1 بایت"),
("fa_IR", 42, "42 بایت"),
("fa_IR", -42, "-42 بایت"),
("si_LK", 1, "බයිට් 1"),
("si_LK", 42, "බයිට් 42"),
("fr_FR", 42_000, "42.0 Ko"),
Expand Down