feat: use module
This commit is contained in:
parent
654010b3aa
commit
c2f3526e88
7 changed files with 251 additions and 57 deletions
|
@ -8,6 +8,7 @@ export default defineNuxtConfig({
|
|||
'@unocss/nuxt',
|
||||
'@pinia/nuxt',
|
||||
'@vue-macros/nuxt',
|
||||
'@nuxtjs/i18n',
|
||||
'~/modules/purge-comments',
|
||||
'~/modules/setup-components',
|
||||
],
|
||||
|
@ -64,4 +65,22 @@ export default defineNuxtConfig({
|
|||
app: {
|
||||
keepalive: true,
|
||||
},
|
||||
i18n: {
|
||||
locales: [
|
||||
{
|
||||
code: 'en-US',
|
||||
file: 'en-US.json',
|
||||
name: 'English',
|
||||
},
|
||||
{
|
||||
code: 'zh-CN',
|
||||
file: 'zh-CN.json',
|
||||
name: '简体中文',
|
||||
},
|
||||
],
|
||||
// TODO:
|
||||
// lazy: true,
|
||||
langDir: 'locales',
|
||||
defaultLocale: 'en-US',
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue