fetrarij / ngx-daterangepicker-material

Pure Angular 2+ date range picker with material design theme, a demo here:
https://fetrarij.github.io/ngx-daterangepicker-material/
MIT License
249 stars 252 forks source link

localization issue , format date MMM doesn't translate #462

Open haykoaghababyan opened 2 years ago

haykoaghababyan commented 2 years ago

Hello, I use your date-picker. The problem is that in my project I use 4 languages, and for that I have created its own local configs for each language, but in that config I use the following format 23 June 1994 and every time I change the language I pass the appropriate language config to your component but the format doesn't translate it shows the same again 23 June 1994: I looked at your code and saw that you are using the dayjs library and using its default locale of English en. I tried to solve that problem and solved it by adding an additional option locale, I checked it works fine, now I want to open a pull request, but I don't have permission. Thank you.

fetrarij commented 2 years ago

Hello @HaykAghababyan could you open a pull request?

  1. fork the repo
  2. commit to your forked repo with your change
  3. open the PR from your forked to the main branch Thanks