Skip to content
Snippets Groups Projects
Commit 192fa3c5 authored by Marcelo Schmidt's avatar Marcelo Schmidt
Browse files

Fixed translations for rocketchat-hubot

parent 46138c21
No related merge requests found
......@@ -14,8 +14,13 @@ Package.onUse(function(api) {
'rocketchat:lib@0.0.1'
]);
api.addFiles([
'hubot.coffee',
'settings.coffee',
], ['server']);
// TAPi18n
api.use('templating', 'client');
api.use('templating', client);
var _ = Npm.require('underscore');
var fs = Npm.require('fs');
tapi18nFiles = _.compact(_.map(fs.readdirSync('packages/rocketchat-hubot/i18n'), function(filename) {
......@@ -23,17 +28,9 @@ Package.onUse(function(api) {
return 'i18n/' + filename;
}
}));
api.use(["tap:i18n@1.5.1"], ["client", "server"]);
api.use('tap:i18n@1.6.1', ['client', 'server']);
api.imply('tap:i18n');
api.addFiles("package-tap.i18n", ["client", "server"]);
api.addFiles([
'hubot.coffee',
'settings.coffee',
], ['server']);
// TAPi18n -- needs to be added last
api.addFiles(tapi18nFiles, ["client", "server"]);
api.addFiles(tapi18nFiles, ['client', 'server']);
api.export('Hubot', ['server']);
api.export('HubotScripts', ['server']);
......
RocketChat.settings.addGroup 'RocketBot'
RocketChat.settings.add 'RocketBot_Enabled', true, { type: 'boolean', group: 'RocketBot', i18nLabel: 'rocketchat-hubot:RocketBot_Enabled' }
RocketChat.settings.add 'RocketBot_Name', 'Rocket.Cat', { type: 'string', group: 'RocketBot', i18nLabel: 'rocketchat-hubot:RocketBot_Name', i18nDescription: 'rocketchat-hubot:RocketBot_Name_Description' }
RocketChat.settings.add 'RocketBot_Enabled', true, { type: 'boolean', group: 'RocketBot' }
RocketChat.settings.add 'RocketBot_Name', 'Rocket.Cat', { type: 'string', group: 'RocketBot', i18nDescription: 'RocketBot_Name_Description' }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment