Correct lodash syntax

This commit is contained in:
Blade Barringer
2015-11-16 08:07:20 -06:00
parent 4ab2fafc5e
commit f20336861a

View File

@@ -37,7 +37,7 @@ function t (stringName) {
if (string) { if (string) {
try { try {
return _.template(string, clonedVars); return _.template(string)(clonedVars);
} catch (_error) { } catch (_error) {
return 'Error processing the string. Please see Help > Report a Bug.'; return 'Error processing the string. Please see Help > Report a Bug.';
} }
@@ -51,7 +51,7 @@ function t (stringName) {
} }
try { try {
return _.template(stringNotFound, { return _.template(stringNotFound)({
string: stringName, string: stringName,
}); });
} catch (_error) { } catch (_error) {