Permalink
Browse files

Use both short- and long-form getText

  • Loading branch information...
1 parent c292904 commit afae87ab3f681ee08ba4cb5244fe3993bd1ac1c8 mde committed Oct 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/i18n.js
View
@@ -50,9 +50,10 @@ i18n = new (function () {
})();
i18n.I18n = function (locale) {
- this.t = function (key, opts) {
+ this.getText = function (key, opts) {
return i18n.getText(key, opts || {}, locale);
};
+ this.t = this.getText;
};
module.exports = i18n;

0 comments on commit afae87a

Please sign in to comment.