forked from Tokyo-Metro-Gov/covid19
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt-i18n.config.ts
61 lines (61 loc) · 1.15 KB
/
nuxt-i18n.config.ts
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
export default {
strategy: 'prefix_except_default',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected'
},
defaultLocale: 'ja',
vueI18n: {
fallbackLocale: 'ja',
formatFallbackMessages: true
},
// vueI18nLoader: true,
lazy: true,
langDir: 'assets/locales/',
locales: [
{
code: 'ja',
name: '日本語',
iso: 'ja-JP',
file: 'ja.json'
},
{
code: 'en',
name: 'English',
iso: 'en-US',
file: 'en.json'
},
{
code: 'zh-cn',
name: '简体中文',
iso: 'zh-CN',
file: 'zh_CN.json'
},
{
code: 'zh-tw',
name: '繁體中文',
iso: 'zh-TW',
file: 'zh_TW.json'
},
{
code: 'ko',
name: '한국어',
iso: 'ko-KR',
file: 'ko.json'
},
// #1126, #872 (comment)
// ポルトガル語は訳が揃っていないため非表示
// {
// code: 'pt-BR',
// name: 'Portuguese',
// iso: 'pt-BR',
// file: 'pt_BR.json'
// },
{
code: 'ja-basic',
name: 'やさしい にほんご',
iso: 'ja-JP',
file: 'ja-Hira.json'
}
]
}