tinganho / node-accept-language

BCP47 language negotiation
MIT License
85 stars 15 forks source link

parse for script #15

Closed srl295 closed 8 years ago

srl295 commented 8 years ago
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.

tinganho commented 8 years ago

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.