Browse Source

feat: Monday as first day of week in calendar popup

Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: frankmagoba <franklinmagoba4@gmail.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
pull/6887/head
gitstart 1 year ago
parent
commit
0c6cf726c8
  1. 6
      packages/nc-gui/components/cell/DatePicker.vue

6
packages/nc-gui/components/cell/DatePicker.vue

@ -1,5 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import dayjs from 'dayjs' import dayjs from 'dayjs'
import updateLocale from 'dayjs/plugin/updateLocale'
import { import {
ActiveCellInj, ActiveCellInj,
CellClickHookInj, CellClickHookInj,
@ -22,8 +23,11 @@ interface Props {
} }
const { modelValue, isPk } = defineProps<Props>() const { modelValue, isPk } = defineProps<Props>()
const emit = defineEmits(['update:modelValue']) const emit = defineEmits(['update:modelValue'])
dayjs.extend(updateLocale)
dayjs.updateLocale('en', {
weekStart: 1,
})
const { t } = useI18n() const { t } = useI18n()

Loading…
Cancel
Save