jackducasse / caleandar

A lightweight, library independent JavaScript calendar
MIT License
80 stars 41 forks source link

Is localization supported? #4

Open bl8m opened 7 years ago

bl8m commented 7 years ago

Hi! Is it possibile to localize the date strings?

n3rvio commented 6 years ago

You can edit the uncompressed version of calendar.js For example, for a translation into Spanish, you should change the following lines:

56:  var months = ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];
158: var labelsList = ["Lun", "Mar", "Mie", "Jue", "Vie", "Sab", "Dom"];

It is possible that you should change the first day of the week, for this I suggest you read here