Skip to content

Commit

Permalink
Tweak warning message.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikermcneil committed Mar 21, 2018
1 parent ce95c84 commit 6768743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hooks/i18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6768743

Please sign in to comment.