341
Views
5
Comments
[OutSystems UI Web] DatePicker - The Today button can not be translated
outsystems-ui-web
Web icon
Forge asset by OutSystems

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>';  
    },

2019-10-27 01-32-56
Caio Santana Magalhães
 
MVP

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.

2021-08-06 01-58-46
Yuji Takeuchi

Hi , OutSystems R&D Team!

When can I use the Today button in multiple languages?

Best regards

2021-02-26 15-02-11
Dinis Carvalho
Staff

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

2022-01-13 11-39-41
Bernardo Cardoso
Staff

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

2018-10-29 08-31-03
João Marques
 
MVP

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.