質問編集履歴
1
イメージ追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -23,3 +23,65 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
[https://www.npmjs.com/package/nuxt-i18n](https://www.npmjs.com/package/nuxt-i18n)
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
こんな使い方を想定していました
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
//nuxt.config.js
|
42
|
+
|
43
|
+
modules: [
|
44
|
+
|
45
|
+
[
|
46
|
+
|
47
|
+
'nuxt-i18n',
|
48
|
+
|
49
|
+
{
|
50
|
+
|
51
|
+
locales: [
|
52
|
+
|
53
|
+
{
|
54
|
+
|
55
|
+
code: 'en',
|
56
|
+
|
57
|
+
iso: 'en',
|
58
|
+
|
59
|
+
file: 'en.json'
|
60
|
+
|
61
|
+
},
|
62
|
+
|
63
|
+
{
|
64
|
+
|
65
|
+
code: 'ja',
|
66
|
+
|
67
|
+
iso: 'ja',
|
68
|
+
|
69
|
+
file: 'ja.json'
|
70
|
+
|
71
|
+
}
|
72
|
+
|
73
|
+
],
|
74
|
+
|
75
|
+
defaultLocale: 'ja', //例えばここにauto的な指定ができないのか?
|
76
|
+
|
77
|
+
lazy: true,
|
78
|
+
|
79
|
+
langDir: 'lang/'
|
80
|
+
|
81
|
+
}
|
82
|
+
|
83
|
+
]
|
84
|
+
|
85
|
+
]
|
86
|
+
|
87
|
+
```
|