From 67687436df71f405294af8057b87fa815f6fe2d7 Mon Sep 17 00:00:00 2001 From: Mike McNeil Date: Tue, 20 Mar 2018 21:38:28 -0500 Subject: [PATCH] Tweak warning message. --- lib/hooks/i18n/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {