protected function _localesPattern()
    {
        $cacheKey = '_localesPattern';
        $cache = static::cache($cacheKey);
        if ($cache) {
            return $cache;
        }

        $pattern = '(' . implode(
            '|',
            array_map(
                'preg_quote',
                array_keys(
                    quickapps('languages')
                )
            )
        ) . ')';

        return static::cache($cacheKey, $pattern);
    }
protected function _localesPattern()
    {
        $cacheKey = '_localesPattern';
        $cache = static::cache($cacheKey);
        if ($cache) {
            return $cache;
        }

        $pattern = '(' . implode(
            '|',
            array_map(
                'preg_quote',
                array_keys(
                    quickapps('languages')
                )
            )
        ) . ')';

        return static::cache($cacheKey, $pattern);
    }
protected function _localesPattern ( ) { $ cacheKey = '_localesPattern' ; $ cache = static :: cache ( $ cacheKey ) ; if ( $ cache ) { return $ cache ; } $ pattern = '(' . implode ( '|' , array_map ( 'preg_quote' , array_keys ( quickapps ( 'languages' ) ) ) ) . ')' ; return static :: cache ( $ cacheKey , $ pattern ) ; }
Returns a regular expression that is used to verify if an URL starts
or not with a language prefix.

## Example:

```
(en\-us|fr|es|it)
```

@return string
Returns a regular expression that is used to verify if an URL starts or not with a language prefix .