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