2025-09-10 23:43:41 +00:00
|
|
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
|
|
|
|
|
|
export default defineNuxtConfig({
|
|
|
|
compatibilityDate: '2025-07-15',
|
|
|
|
devtools: { enabled: true },
|
|
|
|
|
|
|
|
modules: [
|
|
|
|
'@nuxt/ui',
|
|
|
|
'@nuxt/test-utils',
|
|
|
|
'@nuxt/scripts',
|
|
|
|
'@nuxt/image',
|
|
|
|
'@nuxt/eslint',
|
|
|
|
'@nuxt/content',
|
|
|
|
'@nuxtjs/i18n',
|
|
|
|
],
|
|
|
|
i18n: {
|
2025-09-11 11:35:49 +00:00
|
|
|
langDir: 'locales',
|
2025-09-10 23:43:41 +00:00
|
|
|
locales: [
|
2025-09-11 11:35:49 +00:00
|
|
|
{
|
|
|
|
code: 'en',
|
|
|
|
iso: 'en-US',
|
|
|
|
file: 'en.json'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
code: 'zh-tw',
|
|
|
|
iso: 'zh-TW',
|
|
|
|
file: 'zh-tw.json'
|
|
|
|
}
|
2025-09-10 23:43:41 +00:00
|
|
|
],
|
2025-09-11 11:35:49 +00:00
|
|
|
defaultLocale: 'zh-tw',
|
|
|
|
strategy: 'no_prefix',
|
2025-09-10 23:43:41 +00:00
|
|
|
},
|
|
|
|
build: {
|
|
|
|
transpile: ['@nuxtjs/i18n']
|
|
|
|
}
|
|
|
|
})
|