What did you do?
activate these locale,
import datetime
import humanize
humanize.i18n.activate("zh_CN")
now = datetime.datetime.now()
humanize.naturaltime(now - datetime.timedelta(days=365+10))
What did you expect to happen?
1年 10天之前
What actually happened?
10年之前
What versions are you using?
- OS: 6.6.44-1-MANJARO
- Python: 3.11.9
- Humanize: 4.10.0
Please include code that reproduces the issue.
The best reproductions
are
self-contained scripts
with minimal dependencies.