babel.py
def get_languages_from_dir(directory):
"""Return a list of directory names in the given directory."""
PATH = os.path.dirname(os.path.realpath(__file__)).replace(os.sep, "/").replace("freegpt-webui-v2/server", "freegpt-webui-v2")
directory = f"{PATH}/{directory}"
return [name for name in os.listdir(directory)
if os.path.isdir(os.path.join(directory, name))]
run.py PATH = os.path.dirname(os.path.realpath(file)).replace(os.sep, "/") config = load(open(f'{PATH}/config.json', 'r'))
babel.py def get_languages_from_dir(directory): """Return a list of directory names in the given directory."""
BABEL_DEFAULT_LOCALE = 'ko_KR' BABEL_LANGUAGES = [BABEL_DEFAULT_LOCALE]
good