Permalink
Browse files

Merge branch 'master' of github.com:shaunlee/node-jst

  • Loading branch information...
2 parents ad15b52 + 25200d2 commit 13ff391edf8069cd6fdaef170db1317bef8e3eb6 @shaunlee committed May 5, 2011
Showing with 12 additions and 2 deletions.
  1. +12 −2 lib/jst.js
View
@@ -5,9 +5,19 @@
*/
var fs = require('fs'),
- locales = require('locales'),
filters = require('./filters'),
- hash = require('./hash');
+ hash = require('./hash'),
+ locales;
+
+try {
+ locales = requires('locales');
+} catch(e) {
+ locales = {
+ configure: function(){},
+ gettext : function(s) { return s },
+ ngettext : function(s) { return s}
+ }
+}
exports.version = '0.0.11';

0 comments on commit 13ff391

Please sign in to comment.