Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
]).then(function (values) {
if (values[0].settings[0] === 'en_US' &&
_.isEmpty(options.hash) &&
values[1].settings[0] !== 'true') {
output = defaultString;
} else {
output = polyglot.t(key, options.hash);
}
return output;
});
};