def METHOD_NAME():
    nonlocal lang, searcher, retriever
    new_lang = request.args.get('new_lang', '', type=str)
    if not new_lang or new_lang not in LANGUAGES:
        return
    lang = new_lang
    searcher, retriever = load_searcher_fn(lang)
    return jsonify(lang=lang)