samanzamani / PersianDate

Persian date for android
BSD 3-Clause "New" or "Revised" License
330 stars 40 forks source link

monthName() method to display name in different dialects #38

Closed XiXiongMaoXiong closed 2 years ago

XiXiongMaoXiong commented 4 years ago

Salaam! For the next release please add an optional parameter to monthName() method to return back names in different Persian dialects (Kurdi, Afghani, Irani).

What I am trying to achieve is: return PersianDate(TimeUtils.getNowMills()).monthName()

But for now it just returns it in Iranian name (e.g. Aazar).

Thanks a world!

samanzamani commented 4 years ago

Hi Thank you for your contribution. I will review and add this feature in the new version.

samanzamani commented 3 years ago

Add this feature in v1.0

pooryadb commented 3 years ago

hi please make Dialect-enum public , currently it is package-private! and "public String monthName(int month, Dialect dialect)" isn't practical

https://github.com/samanzamani/PersianDate/blob/ab8394f503b0c40532b3b29b237737ae1a568510/persiandate/src/main/java/saman/zamani/persiandate/PersianDate.java#L49

https://github.com/samanzamani/PersianDate/blob/ab8394f503b0c40532b3b29b237737ae1a568510/persiandate/src/main/java/saman/zamani/persiandate/PersianDate.java#L499

https://github.com/samanzamani/PersianDate/blob/ab8394f503b0c40532b3b29b237737ae1a568510/persiandate/src/main/java/saman/zamani/persiandate/PersianDate.java#L490

@samanzamani thanks

samanzamani commented 3 years ago

Hi @pooryadb Thank you for your report. I will fix this in the next version.

pooryadb commented 2 years ago

@samanzamani make new release, please

samanzamani commented 2 years ago

v1.3.3 released

momeni1367 commented 2 years ago

سلام Failed to resolve: com.github.samanzamani:PersianDate:1.3.4 این خطا میده

ولی وقتی releaseImplementation 'com.github.samanzamani:PersianDate:1.3.4' میزارم رفع میشه خطا ولی val persianDate = PersianDate(date) خطا میده تو Jetpack

PersianDate نمیشناسه

samanzamani commented 2 years ago

سلام @momeni1367 لطفا یک موضوع جدید برای این مسئله باز کنید تا بهم ریختگی ایجاد نشه. ممنون