Polyglot\Services\Lang::getShortInternalLocale PHP Метод

getShortInternalLocale() публичный Метод

Get the short version of the internal locale
public getShortInternalLocale ( ) : string
Результат string
    public function getShortInternalLocale()
    {
        $locale = $this->getInternalLocale();
        $locale = preg_replace('/.*([a-z]{2}_[A-Z]{2}).*/', '$1', $locale);
        return $locale;
    }