Merge pull request #247 from xfdev/master
Safari 浏览器中文为 "zh_cn" 小写,不能自动显示中文。
This commit is contained in:
commit
64f71e37ff
3
js/libs/angular-translate.js
vendored
3
js/libs/angular-translate.js
vendored
|
@ -2041,6 +2041,9 @@ function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvide
|
||||||
if (!key) {
|
if (!key) {
|
||||||
return $uses;
|
return $uses;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Safari is "zh_cn"
|
||||||
|
if (key == "zh_cn") {key = "zh_CN"}
|
||||||
|
|
||||||
var deferred = $q.defer();
|
var deferred = $q.defer();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user