private function getLanguageFromCountryBasedLocale($locale) { $parts = explode($this->getLocaleSeparator(), $locale); return array_get($parts, 0); }