UNPKG

granula

Version:

i18n tool for angular.js applications

34 lines (30 loc) 735 B
(function() { var stringInterpolator; stringInterpolator = function() { return { begin: function(context) {}, string: function(context, str) { return str; }, argument: function(context, _arg) { var argName, val; argName = _arg.argName; val = context.attrs[argName]; if (typeof val === 'function') { return val(); } else { return val; } }, pluralExpression: function(context, _arg, argument) { var fn; fn = _arg.fn; return fn(argument.apply(context)); }, end: function(context) {} }; }; module.exports = { stringInterpolator: stringInterpolator }; }).call(this);