vue-calendar-heatmap icon indicating copy to clipboard operation
vue-calendar-heatmap copied to clipboard

when change lenguaje to months

Open gitcoffee opened this issue 4 years ago • 1 comments

gitcoffee avatar Jun 19 '20 16:06 gitcoffee

Declare "my_locale" object in your data() section and pass it as property to your calendar-heatmap

 <calendar-heatmap :locale="my_locale" ... />
data() {
  return {
    (...)
    my_locale = {
      months: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
      days: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
      on: 'on',
      less: 'Less',
      more: 'More'
    }
   (...)
}

BobSynfig avatar Jan 26 '21 12:01 BobSynfig