Skip to content

Commit

Permalink
🚧 accomodate array
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Oct 17, 2023
1 parent 49b2d59 commit 17c070a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ${defaultTimezone ? `dayjs.tz.setDefault('${defaultTimezone}')` : ''}
${defaultLocale ? `
dayjs.updateLocale(${JSON.stringify(defaultLocale).replace(/^\[|\]$/g, '')})
dayjs.locale('${defaultLocale[0]}')
dayjs.locale('${defaultLocale[0] || defaultLocale}')
` : ""}
export default dayjs
Expand Down

0 comments on commit 17c070a

Please sign in to comment.