code: protected function updateLocale(SaleInterface $sale)
      {
          if (null !== $sale->getLocale()) {
              return false;
          }
  
          $sale->setLocale($this->localeProvider->getCurrentLocale());
  
          return true;
      }
docs: Sets the sale's locale.
  
  @param SaleInterface $sale
  
  @return bool