forked from localsend/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi18n.config.ts
118 lines (115 loc) · 2.58 KB
/
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
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
import ar from './lang/ar.json'
import cs from './lang/cs.json'
import de from './lang/de.json'
import el from './lang/el.json'
import en from './lang/en.json'
import es from './lang/es.json'
import fa from './lang/fa.json'
import fil from './lang/fil.json'
import fr from './lang/fr.json'
import he from './lang/he.json'
import hi from './lang/hi.json'
import id from './lang/id.json'
import it from './lang/it.json'
import ja from './lang/ja.json'
import ka from './lang/ka.json'
import km from './lang/km.json'
import ko from './lang/ko.json'
import mal from './lang/mal-IN.json'
import mr from './lang/mr.json'
import nl from './lang/nl.json'
import pl from './lang/pl.json'
import ptBr from './lang/pt-BR.json'
import ptPT from './lang/pt-PT.json'
import ru from './lang/ru.json'
import sr from './lang/sr.json'
import sk from './lang/sk.json'
import th from './lang/th.json'
import ta from './lang/ta.json'
import te from './lang/te.json'
import tr from './lang/tr.json'
import uk from './lang/uk.json'
import vi from './lang/vi.json'
import zhCn from './lang/zh-CN.json'
import zhHk from './lang/zh-HK.json'
import zhTw from './lang/zh-TW.json'
import bn from './lang/bn.json'
export const localeMap: { [k: string]: string } = {
'ar': 'العربية',
'bn': 'বাংলা',
'cs': 'Čeština',
'de': 'Deutsch',
'el': 'Ελληνικά',
'en': 'English',
'es': 'Español',
'fil': 'Filipino',
'fr': 'Français',
'id': 'Bahasa Indonesia',
'it': 'Italiano',
'he': 'עברית',
'hi': 'हिन्दी',
'ja': '日本語',
'ka': 'ಕನ್ನಡ',
'km': 'ភាសាខ្មែរ',
'ko': '한국어',
'mal-IN' : 'മലയാളം',
'mr': 'मराठी',
'nl': 'Nederlands',
'ru': 'Русский',
'sr': 'Srpski',
'sk': 'Slovenčina',
'pl': 'Polski',
'pt-BR': 'Português - Brasil',
'pt-PT': 'Português - Portugal',
'th': 'ภาษาไทย',
'ta': 'தமிழ்',
'te': 'తెలుగు',
'tr': 'Türkçe',
'uk': 'Українська',
'vi': 'Tiếng Việt',
'zh-CN': '简体中文',
'zh-TW': '繁體中文 – 台灣',
'zh-HK': '繁體中文 – 香港',
};
export default defineI18nConfig(() => ({
legacy: false,
locale: 'en',
fallbackLocale: 'en',
messages: {
ar,
bn,
cs,
de,
el,
en,
es,
'fil': fil,
fr,
he,
hi,
id,
it,
ja,
ka,
km,
ko,
'mal-IN' : mal,
mr,
nl,
pl,
'pt-BR': ptBr,
'pt-PT': ptPT,
ru,
sr,
sk,
th,
ta,
te,
tr,
uk,
vi,
'zh-CN': zhCn,
'zh-HK': zhHk,
'zh-TW': zhTw,
}
}))