locale = (req) => {
  //console.log(req && req.getLocale ? req.getLocale() : undefined);
  return req?.getLocale?.() || getState().getConfig("default_locale", "en");
}
@param {object} req
@returns {string|undefined}