Skip to content

Commit

Permalink
Fix datepicker locale for en #454
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jul 8, 2024
1 parent b5f38dc commit 2c9c912
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/locales/en/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ const format = 'YYYY-MM-DD';

// 2A. Either re-use settings and phrases from vue2-datepicker (and customize them)...
const locale = import('vue2-datepicker/locale/en');
locale.formatLocale.firstDayOfWeek = 1;

// Usually not needed, but we customize the first day of the week for "international" users.
(await locale).default.formatLocale.firstDayOfWeek = 1;

// 2B. ... or define your own based on https://github.com/mengxiong10/vue2-datepicker
/*
Expand Down

0 comments on commit 2c9c912

Please sign in to comment.