public function getAvailableLangs(): array
    {
        $langs = ['en'];
        $scan = Directory::scan(root . '/I18n/' . env_name . '/', GLOB_ONLYDIR, true);
        foreach ($scan as $row) {
            $langs[] = trim($row, '/');
        }
        return $langs;
    }
public function getAvailableLangs(): array
    {
        $langs = ['en'];
        $scan = Directory::scan(root . '/I18n/' . env_name . '/', GLOB_ONLYDIR, true);
        foreach ($scan as $row) {
            $langs[] = trim($row, '/');
        }
        return $langs;
    }
public function getAvailableLangs ( ) : array { $ langs = [ 'en' ] ; $ scan = Directory :: scan ( root . '/I18n/' . env_name . '/' , GLOB_ONLYDIR , true ) ; foreach ( $ scan as $ row ) { $ langs [ ] = trim ( $ row , '/' ) ; } return $ langs ; }
Get available languages in the filesystem
@return array
Get available languages in the filesystem