You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: load.go
    path of file: ./repos/corteza/extra/server-discovery/vendor/github.com/cortezaproject/corteza/server/pkg/locale
    
    the code of the file until where you have to start completion: package locale

import (
	"bytes"
	"context"
	"encoding/json"
	"fmt"
	"io"
	"io/fs"
	"path"
	"path/filepath"
	"strings"

	"golang.org/x/
    
func loadConfigs(fsys fs.FS) (ll []*Language, err error) {
	var (
		sub     fs.FS
		lang    *Language
		configs = make([]string, 0)
	)

	configs, err = fs.Glob(fsys, "*/config.yaml")
	if err != nil {
		return nil, err
	}

	for _, config := range configs {
		if sub, err = fs.Sub(fsys, filepath.Dir(config)); err != nil {
			return nil, err
		}

		if lang, err = loadConfig(sub, filepath.Base(config)); err != nil {
			return nil, err
		}

		lang.Tag = language.Make(filepath.Base(filepath.Dir(config)))
		lang.src = filepath.Dir(config)

		ll = append(ll, lang)
	}

	return ll, nil
}