opentable/accept-language-parser

Cannot cope with multi-part region codes

Closed this issue · 0 comments

As the README says,

Cannot cope with multi-part region codes, i.e. 'az-AZ-Cyrl' will be treated as 'az-AZ'

Example:

require('accept-language-parser').parse('zh-Hans-CN')[0].region // 'Hans'