summaryrefslogtreecommitdiff
path: root/web-ui/app/js/views
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-04-09 12:50:17 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-04-09 12:50:17 -0300
commit1e66153834b8d172195af80866694a84cc03aeea (patch)
treec26d54f5ebe05c2f267c801c4645ae53f8412ed2 /web-ui/app/js/views
parentbd78f1ff44061b17b80fef270c814a6e353179ad (diff)
parentd3c86f867d29b79eec1d280389975c920a7ec196 (diff)
Merge pull request #370 from bltavares/preprend-messages-with-response-information
Prepend mail quoting with the sender information #66 Removes argument fixing of the i18n library #66
Diffstat (limited to 'web-ui/app/js/views')
-rw-r--r--web-ui/app/js/views/i18n.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/web-ui/app/js/views/i18n.js b/web-ui/app/js/views/i18n.js
index b09490f5..568e7635 100644
--- a/web-ui/app/js/views/i18n.js
+++ b/web-ui/app/js/views/i18n.js
@@ -17,15 +17,11 @@
define(['i18next'], function(i18n) {
'use strict';
- var self = function(str) {
- return i18n.t(str);
- };
-
- self.get = self;
+ var self = i18n.t;
self.init = function(path) {
i18n.init({detectLngQS: 'lang', fallbackLng: 'en', lowerCaseLng: true, getAsync: false, resGetPath: path + 'locales/__lng__/__ns__.json'});
- Handlebars.registerHelper('t', self.get.bind(self));
+ Handlebars.registerHelper('t', self.bind(self));
};
return self;