Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalization support for CalEnder #4

Merged
merged 2 commits into from
Jan 13, 2012
Merged

Conversation

icoloma
Copy link
Contributor

@icoloma icoloma commented Dec 20, 2011

It turns out that internationalizing CalEnder is quite easy. This change is backwards compatible and allows the user to provide three options to use a locale-aware CalEnder:

$('#i18n_date').calender({
  months: 'Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre',
  daysOfWeek: 'D L M X J V S',
  formatDate: function(year, month, day) { 
    return [ day, month, year].join('/')
  }
});

@ded ded merged commit a43e996 into ded:master Jan 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants