twinssbc / Ionic-Calendar

A calendar directive for Ionic framework
http://twinssbc.github.io/Ionic-Calendar/demo
MIT License
159 stars 73 forks source link

Translate the calendar and display month and year #167

Closed romulus001 closed 7 years ago

romulus001 commented 7 years ago

Hello, I have 2 issues I'm trying to fix : 1- How to change the title of the days? I need to replace "Mon" by "L", "Tue" by "M", "Wed" by M", "Thu" by "J", "Fri" by "V", "Sat" by "S" and "Sun" by "D" 2- How to display and translate the month and year currently displayed in the calendar? I already translated the months in the app.module.ts file

Here you have a screenshot of my page with the calendarionic-calendar

The link to my html page https://github.com/romulus001/MSS/blob/master/voir-calendrier.html and the link to its ts file https://github.com/romulus001/MSS/blob/master/voir-calendrier.ts Thanks by advance.

twinssbc commented 7 years ago

@romulus001 I think you are using Ionic2-Calendar, right? I guess you created the issue under wrong repository. Since your translation is not supported by the default DatePipe, you could use a custom dateFormatter. You could find more details in README. I'm going to close it. If you need more help, you could create the issue under https://github.com/twinssbc/Ionic2-Calendar/issues