Get browser/nodejs language that matches the given language tags
The first language tag that matches the browser/nodejs language, or null
if no match
detectLang(["en", "zh-CN"]) || "zh-TW"
The language tags to match (BCP 47 tags and sub-tags are supported)
Get browser/nodejs language
Returns
BCP 47 tags of the browser/nodejs language