forked from Stremio/stremio-translations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
85 lines (84 loc) · 2.03 KB
/
index.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
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
// No automatic generation: we don't want to depend on fs, as we want to keep this universal
// ls *-*.json | while read line; do printf "\"`printf $line | cut -d '.' -f1`\": require(\"./$line\"),\n"; done
module.exports = function() {
return {
"ar-AR": require("./ar-AR.json"),
"id-ID": require("./id-ID.json"),
"bg-BG": require("./bg-BG.json"),
"ca-CA": require("./ca-CA.json"),
"da-DK": require("./da-DK.json"),
"de-DE": require("./de-DE.json"),
"el-GR": require("./el-GR.json"),
"en-US": require("./en-US.json"),
"eo-EO": require("./eo-EO.json"),
"es-ES": require("./es-ES.json"),
"eu-ES": require("./eu-ES.json"),
"fa-IR": require("./fa-IR.json"),
"fr-FR": require("./fr-FR.json"),
"he-IL": require("./he-IL.json"),
"hi-IN": require("./hi-IN.json"),
"hr-HR": require("./hr-HR.json"),
"hu-HU": require("./hu-HU.json"),
"it-IT": require("./it-IT.json"),
"mk-MK": require("./mk-MK.json"),
"my-BM": require("./my-BM.json"),
"nb-NO": require("./nb-NO.json"),
"nl-NL": require("./nl-NL.json"),
"nn-NO": require("./nn-NO.json"),
"pl-PL": require("./pl-PL.json"),
"pt-BR": require("./pt-BR.json"),
"pt-PT": require("./pt-PT.json"),
"ru-RU": require("./ru-RU.json"),
"sv-SE": require("./sv-SE.json"),
"sr-RS": require("./sr-RS.json"),
"tr-TR": require("./tr-TR.json"),
"zh-CN": require("./zh-CN.json"),
"zh-HK": require("./zh-HK.json"),
"sl-SL": require("./sl-SL.json"),
"cs-CZ": require("./cs-CZ.json"),
"te-IN": require("./te-IN.json"),
"zh-TW": require("./zh-TW.json"),
"ro-RO": require("./ro-RO.json"),
}
};
// ls *-*.json | while read line; do printf "\"`printf $line | cut -d '.' -f1`\",\n"; done
module.exports.all = [
"ar-AR",
"id-ID",
"bg-BG",
"ca-CA",
"da-DK",
"de-DE",
"el-GR",
"en-US",
"eo-EO",
"es-ES",
"eu-ES",
"fa-IR",
"fi-FI",
"fr-FR",
"he-IL",
"hi-IN",
"hr-HR",
"hu-HU",
"it-IT",
"mk-MK",
"my-BM",
"nb-NO",
"nl-NL",
"nn-NO",
"pl-PL",
"pt-BR",
"pt-PT",
"ru-RU",
"sv-SE",
"sr-RS",
"tr-TR",
"zh-CN",
"zh-HK",
"sl-SL",
"cs-CZ",
"te-IN",
"zh-TW",
"ro-RO",
];