I would like to change the short weekdays for the dutch locale (nl). To do that I would need to use updateLocale, as described here: https://day.js.org/docs/en/customization/weekday-abbreviations. This is what I currently have in nuxt.config.js:
modules: [
'@nuxtjs/dayjs',
],
dayjs: {
locales: ['en', 'nl'],
defaultLocale: 'nl',
plugins: [
'updateLocale',
'relativeTime'
],
updateLocale: ('nl', {
weekdaysShort: ['Su', 'Mo', 'Tu', 'WAHH', 'Th', 'Fr', 'Sa']
})
}
Never mind the 'WAHH' part, that's just for testing. But obviously this isn't working. What's the correct way of handling this?
Using this: https://www.npmjs.com/package/@nuxtjs/dayjs