This topic contains 6 replies, has 3 voices, and was last updated by Sean Sean 2 months, 4 weeks ago.

Datepicker language settings


  • vasilii
    Participant

    Posts: 5
    Member Reply #17044

    I’am using a date-picker in my form and I tried to localize it but it doesn’t work. This is what I have now (attachment).

    • This topic was modified 3 months, 3 weeks ago by  vasilii.

    vasilii
    Participant

    Posts: 5
    Member Reply #17046

    Add picture with code

    Attachments:
    You must be logged in to view attached files.
    Sean
    Sean
    Keymaster

    Posts: 4522
    Support Staff Reply #17075

    Hi,

    Metronic uses the datepicker plugin as it is, without any core changes.

    Please try to check the plugin’s official documentation here:
    https://bootstrap-datepicker.readthedocs.io/en/latest/i18n.html

    Thanks.


    freezben
    Participant

    Posts: 4
    Member Reply #17650

    Hi,

    Please can you explain the process to configure a different language ?

     

    Best regards,

    Ben

    • This reply was modified 3 months ago by  freezben.

    vasilii
    Participant

    Posts: 5
    Member Reply #17652

    I just added (data-date-language = “ru”) to the div of the datepicker and added the link to my language (bootstrap-datepicker.ru.min.js) just right after the link to datepicker js file (bootstrap-datepicker.min.js).


    freezben
    Participant

    Posts: 4
    Member Reply #17673

    Hi Vasilii,

    Really appreciated your quick answer. I have a little question regarding your answer.

    Did you add the bootstrap-datepicker.ru.min.js script in  tools\conf\default.json file ?

    Thanks in advance for you help 🙂

    Best regards,

    Ben

    Sean
    Sean
    Keymaster

    Posts: 4522
    Support Staff Reply #17678

    Hi,

    Yes, bootstrap-datepicker.ru.min.js has be to be added to the bundle in “tools\conf\default.json

    Thanks.

You must be logged in to reply to this topic.