code: function getLocaleFrom(req, locales) {
        if (!req || !req.session || !req.session.locale) return false;
  
        var localeObject = {};
        var properties = ['locales', 'locale', 'requestedLocale', 'isPreferredLocale', 'isSubLocale', 'isAcceptLocale', 'isDefaultLocale'];
  
        properties.forEach(function(property) {
  
          localeObject[property] = req.session[property]
        });
  
        return localeObject;
      }
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.