Base solution for your next web application
Open Closed

Localization issues with FullCalendar component (Angular2) #2705


User avatar
0
Ricavir created

Hi,

I'm currently adding the calendar component from Metronic theme. The component is FullCalendar for Angular2. The component works fine but I have some issues to add localization. I linked component "locale" property to the current abp language. This also works, no problem here.

But, only month translations are being translated. Time format and component labels are not changed (cf screenshot).

From FullCalendar documentation [https://fullcalendar.io/docs/text/locale/]), I added this line to angular-cli : "../node_modules/fullcalendar/dist/locale-all.js"

This leads to following error : Uncaught TypeError: Cannot read property 'datepickerLocale' of undefined

I also tried to add datepicker and jqui-datepicker components as mentioned in the documentation, another error is thrown : Uncaught ReferenceError: Ember is not defined

Is it the loading script order that is wrong ? (as it is suggested in fullcalendar doc)

Any hint will be welcome ;) Tks


2 Answer(s)
  • User Avatar
    0
    Ricavir created

    Is there anyone who could help me on this ?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    As I see your approach seems fine. Maybe it's better to ask it to FullCalendar first. It might be a problem with that.