Skip to content

Change datepicker I18n

Fabien MICHEL edited this page Feb 4, 2016 · 5 revisions

Source : https://github.com/joliss/jquery-ui-rails#i18n

To change the translation of the datepicker, just add this require in active_admin.js.coffee :

#= require jquery-ui/datepicker-pt-BR

List of available translations : https://github.com/joliss/jquery-ui-rails/tree/master/app/assets/javascripts/jquery-ui

Custom input field supporting custom date format for the datepicker but returning an ISO date format when submitting :

https://gist.github.com/fabien-michel/bdf427d4f9e6259d3dc2#file-datepicker_input-rb

Clone this wiki locally