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

Added language files

parent 9f8629e0
No related branches found
No related tags found
No related merge requests found
{
"Channel_doesnt_exist" : "The channel `#%s` does not exist."
}
\ No newline at end of file
{
"Channel_doesnt_exist" : "O canal `#%s` não existe."
}
\ No newline at end of file
......@@ -27,7 +27,7 @@ else
_id: Random.id()
rid: item.rid
ts: new Date
msg: "The channel `\##{channel}` does not exist."#TODO: Make this a language setting
msg: TAPi18n.__('Channel_doesnt_exist', { postProcess: 'sprintf', sprintf: [ channel ] }, user.language);
}
return
......
......@@ -6,15 +6,31 @@ Package.describe({
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
var client = 'client';
var both = ['client', 'server'];
api.versionsFrom('1.0');
api.use([
'coffeescript',
'check',
'rocketchat:lib@0.0.1'
]);
], both);
api.addFiles('join.coffee', both);
api.addFiles('join.coffee');
// TAPi18n
api.use('templating', client);
var _ = Npm.require('underscore');
var fs = Npm.require('fs');
tapi18nFiles = _.compact(_.map(fs.readdirSync('packages/rocketchat-slashcommands-join/i18n'), function(filename) {
if (fs.statSync('packages/rocketchat-slashcommands-join/i18n/' + filename).size > 16) {
return 'i18n/' + filename;
}
}));
api.use('tap:i18n@1.6.1', both);
api.imply('tap:i18n');
api.addFiles(tapi18nFiles, both);
});
Package.onTest(function(api) {
......
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