/** * Check if the locale is supported. * * @param string $locale * * @return bool */ private function isSupported($locale) { return $this->supportedLocales->has($locale); }