[OutSystems UI Web] DatePicker - The Today button can not be translated

Forge Component
(54)
Published on 18 May (10 days ago) by OutSystems R&D
54 votes
Published on 18 May (10 days ago) by OutSystems R&D

We found that the button is generated in the javascript and not using the json pikaday configuration

line 657

renderToday = function() {  
        return '<div class="pika-today-container pika-button"><button type="button" class="pika-go-today" align="center" style="width:100%">Today</button></div>';  
    },

True! Please make it so it appears translated in other languages. Not cool to show a calendar fully in English when the interface is, say, in Spanish or Portuguese.

Hi , OutSystems R&D Team!

When can I use the Today button in multiple languages?

Best regards

Hello everyone,

This improvement is currently on our backlog and we hope to do it as soon as possible, but right now we don't have a date that we can commit to.

My regards

Hi Horacio Villalba,


This feature is available since OutSystems UI Web version 1.8.0.


You can translate it using the AdvancedFormat parameter, with something like this (example for portuguese):

"{
    i18n: {
        previousMonth : 'Anterior',
        nextMonth     : 'Próximo',
        months        : ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
        weekdays      : ['Domingo','Segunda','Terça','Quarta','Quinta','Sexta','Sábado'],
        weekdaysShort : ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
        todayButton   : 'Hoje'
      }
}"


Best regards,

Bernardo Cardoso

Hi,


Is a new version of OutSystems UI Web coming soon with the DatePicker translations?

I see that there is already a multilaguage for Dutch (language of the client I'm working on) but Date Picker values are not translated.

One can translate it but one would have to clone OutSystems UI and run the risk of those translations being overridden when an update to newer versions takes place so it would be great if there is going to be a new version with translations in place.


Thanks in advance.


Cheers,

João Marques