forked from Stremio/stremio-translations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
58 lines (55 loc) · 860 Bytes
/
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
// 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`\",\n"; done
var languages = [
"ar-AR",
"bg-BG",
"ca-CA",
"cs-CZ",
"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",
"id-ID",
"it-IT",
"ja-JP",
"ko-KR",
"mk-MK",
"my-BM",
"nb-NO",
"ne-NP",
"nl-NL",
"nn-NO",
"pl-PL",
"pt-BR",
"pt-PT",
"ro-RO",
"ru-RU",
"sl-SL",
"sr-RS",
"sv-SE",
"te-IN",
"tr-TR",
"uk-UA",
"vi-VN",
"zh-CN",
"zh-HK",
"zh-TW"
];
module.exports = function () {
var jsonExports = {};
languages.forEach(function (language) {
jsonExports[language] = require("./".concat(language, ".json"));
});
return jsonExports;
};
module.exports.all = languages;