jsonforms icon indicating copy to clipboard operation
jsonforms copied to clipboard

Jalali Datepicker

Open vahidid opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe.

Date and DateTime picker in jsonforms have a static LocazitationProvider with dayjs adapter. I want to use Jalali (persian) date picker.

Describe the solution you'd like

It can be dynamic and pass through props to the main component.

Describe alternatives you've considered

I don't know any alternative.

Framework

React

RendererSet

Material

Additional context

Sorry for my bad English.

vahidid avatar Sep 24 '22 10:09 vahidid

Hi @vahidid, does dayjs-jalali cover your needs?

sdirix avatar Oct 04 '22 08:10 sdirix

Hi @vahidid, does dayjs-jalali cover your needs?

Hi again, No it doesn't. LocazitationProvider in date picker renderer has a static adapter and i can't change it with any options.

vahidid avatar Oct 05 '22 08:10 vahidid

When using dayjs-jalali can't you switch the global dayjs locale via dayjs.locale('fa')? That is the only way it works for other locales at the moment too.

sdirix avatar Nov 08 '22 20:11 sdirix