Sets the default locale.
@api
string $locale:
public function setDefaultLocale($locale) { $this->defaultLocale = $locale; if (null === $this->locale) { $this ->setPhpDefaultLocale($locale); } }