arrow-py / arrow-py/arrow

i18n issue with noun suffixes for .humanize(only_distance=True)

Open
#438 2 comments 0 reactions 0 assignees View on GitHub
bug localization
Dominant language
Python
Stars
9.1k
Forks
784
PR merge metrics
No merged PRs in 30d

Description

The current i18n implementation doesn't allow enough granularity for languages with noun suffixes like Hungarian. In Hungarian, "17 years" would be translated as "17 év". However, "17 years ago" is translated as "17 év**vel ezelőtt**", and calling `.humanize()` with `only_distance=True` returns a construct that makes no sense by itself:

```
>>> arrow.get('2000-01-01').humanize(locale='hu_HU', only_distance=True)
'17 évvel'
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the shown arrow.get(...).humanize(locale='hu_HU', only_distance=True) example, then trace the .humanize() i18n implementation and Hungarian locale data. Done means only_distance=True produces a standalone, grammatically valid Hungarian distance while preserving the full “years ago” wording.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.