forked from softwarerero/meteor-accounts-t9n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
33 lines (28 loc) · 1.09 KB
/
package.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
Package.describe({
summary: "Almost i18n, with standard translations for basic meteor packages.",
version: "1.1.4",
name: "softwarerero:accounts-t9n",
git: "https://github.com/softwarerero/meteor-accounts-t9n.git",
});
DEFAULT_LANGUAGES = ['ar', 'zh_cn', 'ca', 'cs', 'da', 'de', 'el', 'en', 'es',
'es_ES', 'fa', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'kh', 'ko', 'pl', 'pt', 'pt_PT', 'ro',
'ru', 'sl', 'sv', 'tr', 'uk', 'vi', 'no_NB', 'nl', 'zh_tw', 'zh_hk'];
LANGUAGES = DEFAULT_LANGUAGES;
if(process.env.T9N_LANGUAGES) {
LANGUAGES = process.env.T9N_LANGUAGES.split(',');
}
FILES = ['t9n.coffee'];
for (var i = 0; i < LANGUAGES.length; i++) {
FILES.push('t9n/' + LANGUAGES[i] + '.coffee');
}
Package.on_use(function (api, where) {
if (api.versionsFrom)
api.versionsFrom("[email protected]");
api.add_files(FILES, ['client', 'server']);
api.use(['coffeescript', 'deps'], ['client', 'server']);
api.export('T9n', ['client', 'server']);
});
Package.on_test(function (api) {
api.add_files(FILES, ['client', 'server']);
api.use(['coffeescript', 'deps'], ['client', 'server']);
});