Add coffeescript back in

This commit is contained in:
Blade Barringer
2015-10-03 06:39:10 -05:00
parent 655d8de7c8
commit 928e8478f7
6 changed files with 2443 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
'use strict';
require('coffee-script');
var i18n = require('../i18n.coffee');
var t = function(string, vars) {
var func = function(lang) {
if (vars == null) {
vars = {
a: 'a'
};
}
return i18n.t(string, vars, lang);
};
func.i18nLangFunc = true; // Trick to recognize this type of function
return func;
};
module.exports = t;