Safari 浏览器中文为 "zh_cn" 小写,不能自动显示中文。

This commit is contained in:
sonny 2016-08-30 15:30:44 +08:00
parent 049f4fd968
commit 7b4e5d689b

View File

@ -2041,6 +2041,9 @@ function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvide
if (!key) {
return $uses;
}
// Safari is "zh_cn"
if (key == "zh_cn") {key = "zh_CN"}
var deferred = $q.defer();