diff --git a/lib/hooks/i18n/index.js b/lib/hooks/i18n/index.js index 1ce9b403c..a0c74edc3 100644 --- a/lib/hooks/i18n/index.js +++ b/lib/hooks/i18n/index.js @@ -72,7 +72,7 @@ module.exports = function(sails) { delete sails.hooks.i18n; // Add __ and i18n functions that just pass through the string (and return a warning). - sails.__ = sails.i18n = function(str) { sails.log.warn('i18n hook is disabled -- returning input string. Set `sails.config.i18n.locales` to activate i18n.'); return str; }; + sails.__ = sails.i18n = function(str) { sails.log.warn('i18n hook has disabled itself due to misconfiguration -- returning input string as-is. Set `sails.config.i18n.locales` to activate i18n.'); return str; }; // Add passthru __ and i18n to res.locals. sails.on('router:before', function () { sails.router.bind('all /*', function addLocalizationMethod (req, res, next) {