Low commit activity in last 3 years
No release in over a year
Extend Zebra Datepicker with translations and localisation based on the excellent rails-i18n and zebra-datepicker-rails gems
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Zebra Datepicker I18n

This gem adds a new zebra-datepicker-rails initialiser that accepts the locale parameter. Using translations provided by the rails-i18n gem it will initialise a localised Zebra Datepicker.

Usage

Include zebra-datepicker-i18n in your application.js:

//= require zebra-datepicker-i18n

Don't forget to set your available_locales in application.rb:

  config.i18n.available_locales = [:en, :nl, :fr]

When 'nl' is available in your Rails I18n available_locales, you can initialise a Zebra Datepicker in Dutch using:

jQuery('[data-datepicker]').Zebra_DatePicker_I18n({ locale: 'nl' });