public function getAvailable(): array
    {
        $result = [];

        $dbLanguages = $this->find('list', ['keyField' => 'code', 'valueField' => 'name'])
                            ->where(['trashed IS' => null])
                            ->toArray();
        $supportedLanguages = $this->getSupported();
        $result = array_diff_assoc($supportedLanguages, $dbLanguages);

        return $result;
    }
public function getAvailable(): array
    {
        $result = [];

        $dbLanguages = $this->find('list', ['keyField' => 'code', 'valueField' => 'name'])
                            ->where(['trashed IS' => null])
                            ->toArray();
        $supportedLanguages = $this->getSupported();
        $result = array_diff_assoc($supportedLanguages, $dbLanguages);

        return $result;
    }
public function getAvailable ( ) : array { $ result = [ ] ; $ dbLanguages = $ this -> find ( 'list' , [ 'keyField' => 'code' , 'valueField' => 'name' ] ) -> where ( [ 'trashed IS' => null ] ) -> toArray ( ) ; $ supportedLanguages = $ this -> getSupported ( ) ; $ result = array_diff_assoc ( $ supportedLanguages , $ dbLanguages ) ; return $ result ; }
Get a list of all available languages

Available languages are those that are in
configuration, but haven't yet been used for
an active language.

@return mixed[]
Get a list of all available languages