code: function getLocaleFrom(req, locales) {
        if (!req || !req.cookies || !req.cookies[options.cookieLocaleName]) return false;
  
        var localeCookie = req.cookies[options.cookieLocaleName];
        var locale = false;
        try {
          locale = JSON.parse(localeCookie);
        } catch (e) {
          console.error('i18n cookie getLocaleFrom Error:' + e);
        }
        return locale;
      }
docs: gets the locale from the given strategy
  
  @param {Object} req              connect / express request object
  @param {Array} locales           locale definition Array.
  @return {Object|String|false}    Object: if it was previously stored, String: if the locale was found with the given Strategy, Boolean:false otherwise.