mapbox / locale-utils

0 stars 2 forks source link

Support cmn-CN to zh-Hans #8

Open m-stephen opened 5 years ago

m-stephen commented 5 years ago

Closes: #7

And a question to discuss: Is it necessary for input the Chinese macrolanguage: zh-Hans, return a JSON like:

{
     locale: 'zh',
     language: 'cmn',
     script: Hans,
     region: 'CN'
 }

We should make the language code standard more clearly.