bootstrap datepicker support i18n;duplicate code refactor