Skip to content

Commit 35dc529

Browse files
authored
Merge pull request #584 from dbarzin/dev
fix monday local
2 parents 369b18d + 83dc3c7 commit 35dc529

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

resources/views/layout.blade.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
}
2020
</style>
2121
@endif
22+
{{-- Metro UI Calendar: start week on Monday for European --}}
23+
<script>
24+
(function() {
25+
const weekStart = {{ in_array(app()->getLocale(), ['fr', 'de']) ? 1 : 0 }};
26+
window.metroCalendarPickerSetup = { weekStart: weekStart };
27+
window.metroCalendarSetup = { weekStart: weekStart };
28+
})();
29+
</script>
30+
2231
</head>
2332
<body class="cloak">
2433
@if (!app()->environment('production'))

0 commit comments

Comments
 (0)