-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
118 lines (112 loc) · 2.47 KB
/
nuxt.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
runtimeConfig: {
public: {
api: {
kxa: 'https://kryx-app-web-api.azurewebsites.net/api/v1/stats/price/KXA',
player_online: 'https://kryx-app-auth-api.azurewebsites.net/api/v1/login/online-players',
leader_solo: 'https://kryx-app-web-api.azurewebsites.net/api/v1/leaderboards/pull/solo-versus-rank'
}
}
},
plugins: [
{ src: '~/plugins/global.client.js' }
],
typescript: {
strict: true
},
css: [
'@/assets/css/main.css'
],
modules: [
[
'@nuxtjs/i18n',
{
lazy: true,
langDir: 'locales/',
defaultLocale: 'en',
strategy: 'prefix_except_default',
seo: true,
baseUrl: 'https://kryxivia.io',
vueI18nLoader: true,
vueI18n: {
fallbackLocale: 'en'
},
locales: [
{
code: 'en',
name: 'English',
iso: 'en-US',
file: 'en.yml'
},
{
code: 'fr',
name: 'French',
iso: 'fr-FR',
file: 'fr.yml'
},
{
code: 'es',
name: 'Spanish',
iso: 'es-ES',
file: 'es.yml'
},
{
code: 'ar',
name: 'Arabic',
iso: 'ar-DZ',
file: 'ar.yml'
},
{
code: 'et',
name: 'Estonian',
iso: 'et-EE',
file: 'et.yml'
},
{
code: 'hi',
name: 'Hindi',
iso: 'hi-IN',
file: 'hi.yml'
},
{
code: 'ja',
name: 'Japanese',
iso: 'ja-JP',
file: 'ja.yml'
},
{
code: 'pt',
name: 'Portuguese',
iso: 'pt-PT',
file: 'pt.yml'
},
{
code: 'ru',
name: 'Russian',
iso: 'ru-RU',
file: 'ru.yml'
},
{
code: 'tr',
name: 'Turkish',
iso: 'tr-TR',
file: 'tr.yml'
},
{
code: 'vi',
name: 'Vietnamese',
iso: 'vi-VN',
file: 'vi.yml'
},
{
code: 'zh',
name: 'Chinese',
iso: 'zh-CN',
file: 'zh.yml'
}
]
}
]
]
})