forked from tim-kilian/nuxt-storybook-i18n-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.js
41 lines (41 loc) · 819 Bytes
/
nuxt.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export default {
target: 'static',
head: {
title: 'nuxt-storybook-i18n-bug',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
],
},
css: [],
plugins: [],
components: true,
buildModules: [],
modules: [
'nuxt-i18n',
],
build: {},
storybook: {},
i18n: {
locales: [ 'en', 'fr', 'es' ],
defaultLocale: 'en',
vueI18n: {
fallbackLocale: 'en',
messages: {
en: {
welcome: 'Welcome',
},
fr: {
welcome: 'Bienvenue',
},
es: {
welcome: 'Bienvenido',
},
},
},
},
};