Move translator file into helpers folder

This commit is contained in:
Blade Barringer
2015-09-17 07:47:23 -05:00
parent a1d7ad70af
commit eaaac546b9
5 changed files with 5 additions and 6 deletions

View File

@@ -1,21 +0,0 @@
'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;