Merge pull request #247 from xfdev/master

Safari 浏览器中文为 "zh_cn" 小写,不能自动显示中文。
This commit is contained in:
hamza zia 2016-09-01 22:37:19 +08:00 committed by GitHub
commit 64f71e37ff

View File

@ -2042,6 +2042,9 @@ function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvide
return $uses;
}
// Safari is "zh_cn"
if (key == "zh_cn") {key = "zh_CN"}
var deferred = $q.defer();
$rootScope.$emit('$translateChangeStart', {language: key});