sorry for bad English :(
in file arch.sh
langs="$(echo "$conf_wiki_lang" | "$conf_awk" -F ' ' '{
for (i = 1; i <= NF; i++) {
lang = $i;
gsub(/[_-].*$/,"",lang);
lang = tolower(lang);
loc = $i;
locale = gsub(/^.*[_-]/,"",loc);
loc = toupper(loc);
if (locale)
printf("%s-%s%s", lang, loc, (i == NF) ? "" : "|");
else {
printf("%s|", lang);
printf("%s*%s", lang, (i == NF) ? "" : "|");
}
}
}')"
this part will process string like zh-hans to zh-HANS
while Arch wiki for zh-hans is available but Arch Wiki for zh-HANS does not exist

sorry for bad English :(in file
arch.shthis part will process string like
zh-hanstozh-HANSwhile Arch wiki for
zh-hansis available but Arch Wiki forzh-HANSdoes not exist