@opentiny/vue-locale
Advanced tools
Comparing version 3.20.0 to 3.21.0
@@ -5,4 +5,3 @@ function _extends() { | ||
var t2 = arguments[e]; | ||
for (var r in t2) | ||
({}).hasOwnProperty.call(t2, r) && (n[r] = t2[r]); | ||
for (var r in t2) ({}).hasOwnProperty.call(t2, r) && (n[r] = t2[r]); | ||
} | ||
@@ -1049,3 +1048,3 @@ return n; | ||
second: "second", | ||
to: "", | ||
to: "-", | ||
yearMonth: "{month} {year}", | ||
@@ -1742,4 +1741,3 @@ yearMonthDay: "{month} {day}, {year}" | ||
} | ||
if (i18nHandler) | ||
return i18nHandler.apply(this, arguments); | ||
if (i18nHandler) return i18nHandler.apply(this, arguments); | ||
var array = path.split("."); | ||
@@ -1751,6 +1749,4 @@ var value = null; | ||
value = current[property] || ""; | ||
if (i === j - 1) | ||
return format(value, options); | ||
if (!value) | ||
return ""; | ||
if (i === j - 1) return format(value, options); | ||
if (!value) return ""; | ||
current = value; | ||
@@ -1786,2 +1782,3 @@ } | ||
var vueI18n = createI18n({ | ||
legacy: i18n2.legacy, | ||
locale: i18n2.locale || "zhCN", | ||
@@ -1964,3 +1961,3 @@ messages: merge({ | ||
} | ||
var version = "3.20.0"; | ||
var version = "3.21.0"; | ||
var use = vue.use, t = vue.t, i18n = vue.i18n, initI18n = vue.initI18n, extend = vue.extend, zhCN = vue.zhCN, enUS = vue.enUS, language = vue.language; | ||
@@ -1967,0 +1964,0 @@ var globalization = /* @__PURE__ */ glob(t); |
{ | ||
"name": "@opentiny/vue-locale", | ||
"version": "3.20.0", | ||
"version": "3.21.0", | ||
"description": "", | ||
@@ -10,5 +10,5 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.20.0", | ||
"@opentiny/vue-theme": "~3.20.0", | ||
"@opentiny/vue-theme-mobile": "~3.20.0" | ||
"@opentiny/vue-renderless": "~3.21.0", | ||
"@opentiny/vue-theme": "~3.21.0", | ||
"@opentiny/vue-theme-mobile": "~3.21.0" | ||
}, | ||
@@ -15,0 +15,0 @@ "module": "./lib/index.js", |
@@ -13,2 +13,3 @@ import zhCN from '../lang/zh-CN'; | ||
i18n?: { | ||
legacy: boolean; | ||
locale: string; | ||
@@ -15,0 +16,0 @@ }; |
69788
2228
+ Added@opentiny/utils@1.0.0(transitive)
+ Added@opentiny/vue-renderless@3.21.1(transitive)
+ Added@opentiny/vue-theme@3.21.2(transitive)
+ Added@opentiny/vue-theme-mobile@3.21.0(transitive)
+ Addedxss@1.0.14(transitive)
- Removed@opentiny/vue-renderless@3.20.3(transitive)
- Removed@opentiny/vue-theme@3.20.2(transitive)
- Removed@opentiny/vue-theme-mobile@3.20.0(transitive)
- Removedxss@1.0.11(transitive)
Updated@opentiny/vue-theme@~3.21.0