public function setDefaultLocale($defaultLocale = null)
{
if (is_null($defaultLocale)) {
$defaultLocale = $this->app->getLocale();
}
$this->isDefaultLocaleSupported($defaultLocale);
$this->defaultLocale = $defaultLocale;
// TODO: Refresh locales & supportedLocales collection [Locale entity => default property]
return $this;
}