Skip to content

Unable to pass locale #32

@LeviDooley

Description

@LeviDooley

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}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions