Is your feature request related to a problem? Please describe
based on #715 i try to provide jalali adapter but i dont know how to change month and week days name , after you override the adapter the date converted to gregorian date.
if you want to i'm add this feature to this library please don't close it with post just a simple answer.
Describe the solution you'd like
Describe your use case for implementing this feature
Additional context
If you provide a custom date formatter as well you can control how everything is formatted. I put together an example that shows how to do that for you here. There's probably some bugs with it as I don't speak farsi, but I think you should be able to at least use this as a starting point. Let me know if that works for you! 馃槃
thanks for your sample , i fix month and day names in week view and day view and push it into this repo . i think it's works with without any problem. if i can , i would like to add this to this awesome project
Yes please, that would be awesome! You can make a PR to add it as a demo. Let me know if you need any more help 馃槃
Or you could even publish jalali-date-formatter.provider.ts and jalali-date-adapter.provider.ts to their own npm package to make the code more reusable. You can use the angular cli to do this.
is there any way to use 0.26 on angular 5 project ? i cant migrate to angular 6 with easily.
You might be able to by installing the rxjs-compat package and updating to rxjs 6, that's where most of the breaking changes were between v5 and v6
hi
in this sample when use JalaliAdapter in module like this : useFactory() {
return new JalaliAdapter();
} then weekStartsOn: number = DAYS_OF_WEEK.SATURDAY; not working!
is any way to resolve this problem?
hi
in this sample when use JalaliAdapter in module like this :useFactory() { return new JalaliAdapter(); }thenweekStartsOn: number = DAYS_OF_WEEK.SATURDAY;not working!
is any way to resolve this problem?
It's because moment doesn't support passing the day of the week to each function call, you have to configure it globally like this:
moment.updateLocale('fa', {
week: {
dow: DAYS_OF_WEEK.SATURDAY,
doy: 0,
},
});
Hope that helps! 馃槃
hi
how can I fix events (drag and drop) in jalali calendar ?
The event was deleted when I try to drag and drop other days !!
how can I fix this problem .
and I think the problem is in the module ...
Please tell me how I can solve this problem
Thanks .
Most helpful comment
If you provide a custom date formatter as well you can control how everything is formatted. I put together an example that shows how to do that for you here. There's probably some bugs with it as I don't speak farsi, but I think you should be able to at least use this as a starting point. Let me know if that works for you! 馃槃