src/Engine/CrudeSetupTrait/InterfaceTrans.php
public function getInterfaceTrans()
    {
        $locale = config('app.locale');
        $file = config('crude.defaultInterfaceTrans');

        if ($file == 'CrudeCRUD::crude') {
            $available = ['en', 'pl'];
            $locale = in_array($locale, $available) ? $locale : 'en';
        }

        $this->interfaceTrans = array_merge(
            \Lang::get($file, [], $locale),
            $this->interfaceTrans
        );

        return $this->interfaceTrans;
    }
public function getInterfaceTrans()
    {
        $locale = config('app.locale');
        $file = config('crude.defaultInterfaceTrans');

        if ($file == 'CrudeCRUD::crude') {
            $available = ['en', 'pl'];
            $locale = in_array($locale, $available) ? $locale : 'en';
        }

        $this->interfaceTrans = array_merge(
            \Lang::get($file, [], $locale),
            $this->interfaceTrans
        );

        return $this->interfaceTrans;
    }
public function getInterfaceTrans ( ) { $ locale = config ( 'app.locale' ) ; $ file = config ( 'crude.defaultInterfaceTrans' ) ; if ( $ file == 'CrudeCRUD::crude' ) { $ available = [ 'en' , 'pl' ] ; $ locale = in_array ( $ locale , $ available ) ? $ locale : 'en' ; } $ this -> interfaceTrans = array_merge ( \ Lang :: get ( $ file , [ ] , $ locale ) , $ this -> interfaceTrans ) ; return $ this -> interfaceTrans ; }
Gets the interface and api labels and messages.

@return array
Gets the interface and api labels and messages .