Resolves #175 again -- intelligently select chinese locales

This commit is contained in:
Peter Cottle 2014-05-27 20:48:55 -07:00
parent fa0faecff0
commit 148ab9cc08
2 changed files with 13 additions and 1 deletions

View file

@ -9,6 +9,11 @@ var getDefaultLocale = exports.getDefaultLocale = function() {
return 'en_US';
};
var headerLocaleMap = exports.headerLocaleMap = {
'zh-CN': 'zh_CN',
'zh-TW': 'zh_TW',
};
// resolve the messy mapping between browser language
// and our supported locales
var langLocaleMap = exports.langLocaleMap = {