tinganho/node-accept-language

parse for script

Closed this issue · 1 comments

var acceptLanguage = require('accept-language');
acceptLanguage.parse('zh-Hant-TW');

this correctly gets TW as the region, but does not parse out the script Hant into the result.

I think I'm leaning towards to remove region and just return the define set of languages as an array of strings and as oppose to an array of structures.