Files
habitica/common/script/src/content/helpers/translator.js
Blade Barringer 301ce56a5b Use import syntax
2015-09-19 19:45:53 -05:00

20 lines
365 B
JavaScript

require('coffee-script');
import i18n from '../../../../script/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;
};
export default t;