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