diff --git a/.gitignore b/.gitignore
index 637d92c..dd8b429 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
.idea/
-node_modules/
\ No newline at end of file
+node_modules/
+package-lock.json
diff --git a/README.md b/README.md
index 4c2a46d..2f015a6 100644
--- a/README.md
+++ b/README.md
@@ -30,7 +30,12 @@ defaultConfig = {
clockBackground: "#CFD8DC",
clockItemColor: "#212121",
clockItemInnerColor: "#212121",
- handColor: "#1976D2"
+ handColor: "#1976D2",
+ meridiem: false,
+ labels: {
+ cancel:"Cancel",
+ ok:"Ok",
+ }
};
````
@@ -89,3 +94,18 @@ import Timepicker from "path/to/grudus-timepicker/dist/grudus-timepicker.js";
````
You can set initial time by passing `time` field in argument. `time` may be a `Date` object, an object `{hours: 12, minutes: 44}` or a string in format `HH:mm`. If you want to learn more, visit [customization section](https://grudus.github.io/Timepicker/#customization)
+
+## Additional options
+
+You can use `24h/12h` mode using the `meridiem` config. Set to true to use AM/PM or leave it as false to use 24hrs.
+
+You can override buttons text using `label` config. As example I want labels on spanish so I can set:
+
+```
+{
+ labels: {
+ cancel:"Cancelar",
+ ok:"Aceptar",
+ }
+}
+```
\ No newline at end of file
diff --git a/dist/grudus-timepicker.es5.js b/dist/grudus-timepicker.es5.js
index ed9ae8e..6abd5d7 100644
--- a/dist/grudus-timepicker.es5.js
+++ b/dist/grudus-timepicker.es5.js
@@ -1,4 +1,4 @@
-/*! grudus-timepicker | (c) 2017-2017
+/*! grudus-timepicker | (c) 2017-2019
grudus | Apache-2.0 license (see LICENSE) */
-!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Timepicker=t()}(this,function(){"use strict";function e(e){if(e){if(e instanceof Date)return i(e);if(r.test(e.hours)&&u.test(e.minutes))return{hours:parseInt(e.hours),minutes:parseInt(e.minutes)};if(a.test(e))return t(e);throw new TypeError("INVALID FORMAT: {"+JSON.stringify(e)+"}.\n Time must be a Date or 'hh:MM' string or object with 'hours' and 'minutes' fields")}return i(new Date)}function t(e){var t=a.exec(e);return{hours:parseInt(t[1]),minutes:parseInt(t[2])}}function i(e){return{hours:e.getHours(),minutes:e.getMinutes()}}function n(e){return new Promise(function(t){setTimeout(t,e)})}function o(e){document.getElementById(f.headerId).style.background=e.headerBackground,document.getElementById(f.headerId).style.color=e.headerColor,document.getElementById(f.wrapperId).style.background=e.wrapperBackground,document.getElementById(f.clockId).style.background=e.clockBackground,document.getElementById(f.handId).style.background=e.handColor,document.getElementById(f.dotId).style.background=e.handColor,document.getElementById(f.buttonsId).style.background=e.footerBackground,document.getElementById(f.submitId).style.color=e.submitColor,document.getElementById(f.cancelId).style.color=e.cancelColor,s(m.clockItem,e.clockItemColor),s(m.inner,e.clockItemInnerColor),s(m.outer,e.handColor,"borderColor")}function s(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"color",n=Array.from(document.getElementsByClassName(e)),o=!0,s=!1,c=void 0;try{for(var l,r=n[Symbol.iterator]();!(o=(l=r.next()).done);o=!0)l.value.style[i]=t}catch(e){s=!0,c=e}finally{try{!o&&r.return&&r.return()}finally{if(s)throw c}}}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l();var i=Object.assign({},k.clockConfig,t),n=e(i.time),s=new b(i,n);o(i),s.onStart()}function l(){if(document.getElementById(k.clockId))throw Error("There is already one running grudus-timepicker instance!");var e=document.createElement("div");e.id=k.clockId,e.innerHTML=h,document.body.appendChild(e)}var r=/^([0-1]?[0-9]|2[0-3])$/,u=/^([0-5]?[0-9])$/,a=/^([0-1]?[0-9]|2[0-3]):([0-5][0-9])$/,d=function(t){var i=e(t);return(i.hours<10?"0"+i.hours:i.hours)+":"+(i.minutes<10?"0"+i.minutes:i.minutes)},h="\n \n \n 21\n :\n 37\n \n \n\n\n \n