README.md in bootstrap4-datetime-picker-rails-0.2.0 vs README.md in bootstrap4-datetime-picker-rails-0.3.0

- old
+ new

@@ -10,15 +10,45 @@ Add the following to `application.js` ``` //= require moment -//= require tempusdominus-bootstrap-4.js +// If you require timezone data (see moment-timezone-rails for additional file options) +//= require moment-timezone-with-data +//= require tempusdominus-bootstrap-4 ``` Add the following to `application.scss` `@import "tempusdominus-bootstrap-4.css";` + + +If you are not using Sass, add the following to your `application.css` + +``` +/* +... +*= require tempusdominus-bootstrap-4 +... +*/ +``` + +## Localizations + +The Tempus Dominus datepicker exposes Moment.js localizations. A list of available Moment localizations are found [here](https://github.com/moment/moment/tree/master/locale). + +Select which JavaScript file you want to use and then add the following line in `application.js` + +``` +//= require moment/<locale>.js +``` + +Then, where your datepicker is configured (such as a `.coffee` file), add the following configuration option: + +```coffeescript +$(#datetimepicker).datetimepicker + locale: 'de' +``` ## Update Instructions Change the `checkout_branch` variable in `Rakefile` to the version. Change the versions in `lib/bootstrap4_datetime_picker_rails/version.rb`