Skip to content

Commit

Permalink
Add Arabic language (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
AYMENJD authored Apr 14, 2022
1 parent 94b3332 commit 0d1aae6
Show file tree
Hide file tree
Showing 2 changed files with 384 additions and 24 deletions.
51 changes: 27 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,31 @@ This modest package contains various common humanization utilities, like turning
a number into a fuzzy human-readable duration ("3 minutes ago") or into a
human-readable size or throughput. It is localized to:

* Bengali
* Brazilian Portuguese
* Catalan
* Danish
* Dutch
* European Portuguese
* Finnish
* French
* German
* Indonesian
* Italian
* Japanese
* Korean
* Persian
* Polish
* Russian
* Simplified Chinese
* Slovak
* Slovenian
* Spanish
* Swedish
* Turkish
* Ukrainian
* Vietnamese
- Arabic
- Bengali
- Brazilian Portuguese
- Catalan
- Danish
- Dutch
- European Portuguese
- Finnish
- French
- German
- Indonesian
- Italian
- Japanese
- Korean
- Persian
- Polish
- Russian
- Simplified Chinese
- Slovak
- Slovenian
- Spanish
- Swedish
- Turkish
- Ukrainian
- Vietnamese

## API reference

Expand Down Expand Up @@ -107,6 +108,7 @@ If seconds are too large, set `minimum_unit` to milliseconds or microseconds:
>>> humanize.naturaldelta(dt.timedelta(seconds=2))
'2 seconds'
```

```pycon
>>> delta = dt.timedelta(milliseconds=4)
>>> humanize.naturaldelta(delta)
Expand All @@ -116,6 +118,7 @@ If seconds are too large, set `minimum_unit` to milliseconds or microseconds:
>>> humanize.naturaldelta(delta, minimum_unit="microseconds")
'4 milliseconds'
```

```pycon
>>> humanize.naturaltime(delta)
'now'
Expand Down
Loading

0 comments on commit 0d1aae6

Please sign in to comment.