Closed 6km closed 5 months ago
@6km I am considering a PR or friendly fork that provides the time unit names as abbreviations, so "3h 2m", instead of "3 hours, 2 minutes". Is it possible to provide abbreviations in Arabic, if the digit itself is not included? /cc @tomasz1986
@rasa I think it's really good to support time abbreviations in Arabic! Here's a list of them:
->
ع stands for "عام" or س stands for "سنة"->
ش stands for "شهر"->
أ stands for "أسبوع"->
ي stands for "يوم"->
س stands for "ساعة"->
د stands for "دقيقة"->
ث stands for "ثانية"Using abbreviations for time units in Arabic is not as common as it is in English; however, it's possible to use them in contexts where the space is limited.
@6km Thank you for the help! I included your feedback in my fork here. It seems the values I had for Arabic were correct, but it's always helpful to have someone review it.
@rasa Thanks for including my feedback! I'm so glad to hear that!
This was fixed in humanize-duration@3.32.1
.
In Arabic, dual names like two weeks, two days, etc., are written without the amount of the unit. Arabic is unique among languages for having this grammatical dual form.
For example, two weeks is translated as أسبوعين, not 2 أسبوعين.
I can work on a fix for this.
\ Thanks for your efforts in humanize-duration!