concrete/src/Multilingual/Service/Detector.php
public static function isEnabled()
    {
        $app = Facade::getFacadeApplication();
        $cache = $app->make('cache/request');
        $item = $cache->getItem('multilingual/enabled');
        if (!$item->isMiss()) {
            return $item->get();
        }

        $item->lock();
        $result = false;
        if ($app->isInstalled()) {
            $site = $app->make('site')->getSite();
            if (count($site->getLocales()) > 1) {
                $result = true;
            }
        }

        $cache->save($item->set($result));

        return $result;
    }
public static function isEnabled()
    {
        $app = Facade::getFacadeApplication();
        $cache = $app->make('cache/request');
        $item = $cache->getItem('multilingual/enabled');
        if (!$item->isMiss()) {
            return $item->get();
        }

        $item->lock();
        $result = false;
        if ($app->isInstalled()) {
            $site = $app->make('site')->getSite();
            if (count($site->getLocales()) > 1) {
                $result = true;
            }
        }

        $cache->save($item->set($result));

        return $result;
    }
public static function isEnabled ( ) { $ app = Facade :: getFacadeApplication ( ) ; $ cache = $ app -> make ( 'cache/request' ) ; $ item = $ cache -> getItem ( 'multilingual/enabled' ) ; if ( ! $ item -> isMiss ( ) ) { return $ item -> get ( ) ; } $ item -> lock ( ) ; $ result = false ; if ( $ app -> isInstalled ( ) ) { $ site = $ app -> make ( 'site' ) -> getSite ( ) ; if ( count ( $ site -> getLocales ( ) ) > 1 ) { $ result = true ; } } $ cache -> save ( $ item -> set ( $ result ) ) ; return $ result ; }
Check if there's some multilingual section.

@return bool
Check if there s some multilingual section .