Permalink
Browse files

Simple i18n helper

  • Loading branch information...
1 parent 9df9550 commit e28b1ba141537719f5a64763cddcbe466a9b41c3 Pedro Gracia committed Nov 23, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/template/helpers/index.js
@@ -240,3 +240,11 @@ exports.truncateHTML = {
//altName: 'truncate_HTML',
action: utils.string.truncateHTML
};
+
+// Simple implementation to use gettext into templates
+exports.t = {
+ name: 't',
+ action: function(options) {
+ return geddy.i18n.getText(options);
+ }
+}

0 comments on commit e28b1ba

Please sign in to comment.