diff --git a/app/assets/javascripts/discourse/components/date-picker.js.es6 b/app/assets/javascripts/discourse/components/date-picker.js.es6 index d1c8e4fcefd..621b0d1fd81 100644 --- a/app/assets/javascripts/discourse/components/date-picker.js.es6 +++ b/app/assets/javascripts/discourse/components/date-picker.js.es6 @@ -17,6 +17,14 @@ export default Em.Component.extend({ format: "YYYY-MM-DD", defaultDate: moment().add(1, "day").toDate(), minDate: new Date(), + firstDay: moment.localeData().firstDayOfWeek(), + i18n: { + previousMonth: I18n.t('dates.previous_month'), + nextMonth: I18n.t('dates.next_month'), + months: moment.months(), + weekdays: moment.weekdays(), + weekdaysShort: moment.weekdaysShort() + }, onSelect: date => this.set("value", moment(date).format("YYYY-MM-DD")) }; diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index d98e1eb65ef..73541fbbc73 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -109,6 +109,8 @@ en: x_years: one: "1 year later" other: "%{count} years later" + previous_month: 'Previous Month' + next_month: 'Next Month' share: topic: 'share a link to this topic' post: 'post #%{postNumber}'