Wanderxx / vue-fullcalendar

vue calendar fullCalendar. no jquery required. Schedule events management
https://wanderxx.github.io/vue-fullcalendar/
1.51k stars 387 forks source link

Locale #55

Closed SergeyMiracle closed 7 years ago

SergeyMiracle commented 7 years ago

How to change locale? I've been trying - fr, zh, ru but all in vein... Locale always stays default - 'en'

<full-calendar :events="events"
                     locale="ru"
                     firstDay="1"
                     @eventClick="eventClick">
      </full-calendar>
freedom-zt commented 7 years ago

lang="ru"

SergeyMiracle commented 7 years ago

@freedom-zt in docs: locale : langague of things like monthNames weekNames and titleFormat. Support same locales than moment.js lang option i guess not moment.js locales

SergeyMiracle commented 7 years ago

Ok now i see, locale param only works in master branch

jemliF commented 7 years ago

I set the locale to 'fr' but still getting month and day names in english

<full-calendar :events="events" locale="fr"></full-calendar>

What's the problem?

SergeyMiracle commented 7 years ago

@jemliF locale param only works in master branch

jemliF commented 7 years ago

@SergeyMiracle What do you mean? I followed installation and usage steps, how to fix this?

SergeyMiracle commented 7 years ago

@jemliF wait till next release i guess

jemliF commented 7 years ago

@SergeyMiracle I have a look to the source code, it's already there, but don't know why it's not working !

SergeyMiracle commented 7 years ago

@jemliF It's in the source code in master branch, and if u use command npm install vue-fullcalendar@latest --save to install pkg, it gives u no MASTER branch but latest release - 1.0.9 where locale do not exists! What i did - just copied this project from master branch and made it work, now i how my custom component, based on this project. You should do the same, coz this pkg kind of broken (i mean master branch)