src/Common/Service/Locale.php
public function getUrlSegment(\Nails\Common\Factory\Locale $oLocale): string
    {
        if ($oLocale == $this->getDefautLocale()) {
            return '';
        } else {
            return getFromArray((string) $oLocale, static::URL_VANITY_MAP, (string) $oLocale);
        }
    }
public function getUrlSegment(\Nails\Common\Factory\Locale $oLocale): string
    {
        if ($oLocale == $this->getDefautLocale()) {
            return '';
        } else {
            return getFromArray((string) $oLocale, static::URL_VANITY_MAP, (string) $oLocale);
        }
    }
public function getUrlSegment ( \ Nails \ Common \ Factory \ Locale $ oLocale ) : string { if ( $ oLocale == $ this -> getDefautLocale ( ) ) { return '' ; } else { return getFromArray ( ( string ) $ oLocale , static :: URL_VANITY_MAP , ( string ) $ oLocale ) ; } }
Returns the URL prefix for a given locale, considering any vanity preferences

@param \Nails\Common\Factory\Locale $oLocale The locale to query

@return string
@throws \Nails\Common\Exception\FactoryException
Returns the URL prefix for a given locale considering any vanity preferences