Created
August 5, 2016 18:36
-
-
Save YurePereira/2307e4c4f229da23437ef3aa218f8eb8 to your computer and use it in GitHub Desktop.
Internationalization Datepicker Pikaday to Brazil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var i18nBr = { | |
| //previousMonth : 'Previous Month', | |
| previousMonth : 'Mês anterior', | |
| //nextMonth : 'Next Month', | |
| nextMonth : 'Próximo mês', | |
| //months : ['January','February','March','April','May','June','July','August','September','October','November','December'], | |
| months : ['Janeiro','Maio', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'], | |
| //weekdays : ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'], | |
| weekdays : ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sábado'], | |
| //weekdaysShort : ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] | |
| weekdaysShort : ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'] | |
| } | |
| new Pikaday({ | |
| field: document.getElementById('id_field'), | |
| format: 'DD/MM/YYYY', | |
| i18n: i18nBr,//Internationalization | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment