mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.15k stars 1.3k forks source link

Week days name in jalali calendar #5330

Closed saeedhemmati closed 2 years ago

saeedhemmati commented 2 years ago

Duplicates

Latest version

Current behavior 😯

Hi As you see week day name use of day number with Ø´ character which in the datepicker just display first letter of the week day name.

image

Expected behavior 🤔

I want to config the @date-io/date-fns-jalali for change default week day names to full name. for example convert:

Steps to reproduce 🕹

Steps:

1. 2. 3. 4.

Context 🔦

No response

Your environment 🌎

npx @mui/envinfo ``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```

Order ID 💳 (optional)

No response

ozgurbaserdem commented 2 years ago

Hello @saeedhemmati, see this issue and specifically the comment from 18th May which explains why this happens and I think also provides a possible solution to the issue that has to be adressed by the team. I believe this isn't only a jalali calendar issue but the same in all languages.

alexfauquette commented 2 years ago

Thanks, @ozgurbaserdem for the explanation. This is a duplicate of #4605 because as long as day.charAt(0).toUpperCase() is here, their is no workaround

saeedhemmati commented 2 years ago

@ozgurbaserdem Thanks for the guide