-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
57 lines (47 loc) · 1.27 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// Package metadata for Meteor.js web platform (https://www.meteor.com/)
// This file is defined within the Meteor documentation at
//
// http://docs.meteor.com/#/full/packagejs
//
// and it is needed to define a Meteor package
'use strict';
var Both = ['client', 'server'];
var languages = ['de', 'en', 'fr', 'it', 'ja', 'ko', 'sv'];
var modules = ['oauth', 'title'];
var i18nFiles = [];
modules.map(function getModulePath(module) {
var modulePath = 'i18n/' + module + '/';
languages.map(function getFilePath(language) {
var filePath = modulePath + language + '.i18n.json';
i18nFiles.push(filePath);
});
});
Package.describe({
name: 'useraccounts:i18n',
summary: 'UserAccounts i18n package.',
version: '2.0.0',
git: 'https://github.com/meteor-useraccounts/i18n.git',
});
Package.onUse(function pkgOnUse(api) {
api.versionsFrom('1.0');
// Logger
api.use([
'jag:[email protected]',
'tap:[email protected]',
'underscore',
'useraccounts:[email protected]',
], Both);
api.imply([
'useraccounts:core',
], Both);
// Plugin files
api.addFiles([
'src/_globals.js',
'src/logger.js',
'src/plugins/i18n_plugin.js',
'src/main.js',
], Both);
// i18n files
api.addFiles('useraccounts-tap.i18n', Both);
api.addFiles(i18nFiles, Both);
});