How about making a json file from the excel, and writing a function for “um_submit_form_errors_hook_” that will read the json and check if the user submission is in the data?
I tried the “um_before_new_user_register” hook, but like many things in your documentation, it does seems to work or the example are clear only to the people who wrote them.
Done it with jQuery, add anther li with flag to the ul of the language switcher
if (! $(“#top-header > div > div.topbar-right > ul li”).is(‘li.lang-item-zh’) ){
var zhFlag = ‘<li class=”lang-item lang-item-25 lang-item-zh”>‘;
$(“#top-header > div > div.topbar-right > ul”).append(zhFlag);
}
}