code: private function getLocaleForCacheKey(string $locale = null): string
      {
          if ($locale) {
              return $locale;
          }
  
          return $this->getEnvironment()->getDefaultLocale()->getCode();
      }
docs: Returns the locale to be used in a cache key.
  
  @param string|null $locale
  
  @return string