From 7b4e5d689bdbc2285bd58c4e71b017d38e3370c3 Mon Sep 17 00:00:00 2001 From: sonny Date: Tue, 30 Aug 2016 15:30:44 +0800 Subject: [PATCH] =?UTF-8?q?Safari=20=E6=B5=8F=E8=A7=88=E5=99=A8=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E4=B8=BA=20"zh=5Fcn"=20=E5=B0=8F=E5=86=99=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E8=87=AA=E5=8A=A8=E6=98=BE=E7=A4=BA=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/libs/angular-translate.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/libs/angular-translate.js b/js/libs/angular-translate.js index 5c2271b..d71ddcd 100644 --- a/js/libs/angular-translate.js +++ b/js/libs/angular-translate.js @@ -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();