ember-power-datepicker icon indicating copy to clipboard operation
ember-power-datepicker copied to clipboard

Unable to pass locale

Open LeviDooley opened this issue 7 years ago • 2 comments
trafficstars

Passing locale doesn't seem to do anything to the calendar. I double checked that the parent component is setting locale to 'es', but the resulting calendar stays in english.

{{#power-datepicker 
    horizontalPosition="right" 
    selected=selected 
    locale=locale 
    onSelect=(action 'onSelect') 
    as |dp|}}

    {{#dp.trigger tabindex="-1"}}
        <input type="text" class="my-input-class" readonly value={{dateText}}>
        {{fa-icon 'caret-down'}}
    {{/dp.trigger}}

    {{#dp.content class="datepicker-small datepicker-right"}}
        {{dp.nav}}

        {{dp.days maxDate=maxDate}}
    {{/dp.content}}
{{/power-datepicker}}

LeviDooley avatar Oct 01 '18 22:10 LeviDooley

I'm having the same issue. Did you manage to solve it?

raphpap avatar Feb 28 '19 17:02 raphpap

@raphpap are you on the latest version?

cibernox avatar Feb 28 '19 17:02 cibernox