Skip to content

Commit 346b464

Browse files
committed
@nuxtjs/dayjsをセットアップ
1 parent f2f74d6 commit 346b464

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

nuxt.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,14 @@ export default {
122122
'nuxt-svg-loader',
123123
['nuxt-i18n', i18nConfig],
124124
['@nuxtjs/google-analytics', { id: process.env.GAID }],
125+
'@nuxtjs/dayjs',
125126
],
127+
dayjs: {
128+
locales: ['ja', 'en', 'zh-tw'],
129+
defaultLocale: 'ja',
130+
defaultTimeZone: 'Asia/Tokyo',
131+
plugins: ['utc', 'timezone', 'minMax'],
132+
},
126133
/*
127134
** Axios module configuration
128135
** See https://axios.nuxtjs.org/options

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"types": [
2020
"@types/node",
2121
"@nuxt/types",
22+
"@nuxtjs/dayjs",
2223
"@types/jest",
2324
"vuetify",
2425
"nuxt-i18n"

0 commit comments

Comments
 (0)