@dcloudio/uni-i18n
Advanced tools
Comparing version 3.0.0-4010520240507001 to 3.0.0-4020320240708001
@@ -256,6 +256,13 @@ 'use strict'; | ||
if (typeof locale !== 'string') { | ||
[locale, messages] = [ | ||
// ;[locale, messages] = [ | ||
// messages as unknown as string, | ||
// locale as unknown as LocaleMessages, | ||
// ] | ||
// 暂不使用数组解构,uts编译器暂未支持。 | ||
const options = [ | ||
messages, | ||
locale, | ||
]; | ||
locale = options[0]; | ||
messages = options[1]; | ||
} | ||
@@ -262,0 +269,0 @@ if (typeof locale !== 'string') { |
@@ -254,6 +254,13 @@ const isObject = (val) => val !== null && typeof val === 'object'; | ||
if (typeof locale !== 'string') { | ||
[locale, messages] = [ | ||
// ;[locale, messages] = [ | ||
// messages as unknown as string, | ||
// locale as unknown as LocaleMessages, | ||
// ] | ||
// 暂不使用数组解构,uts编译器暂未支持。 | ||
const options = [ | ||
messages, | ||
locale, | ||
]; | ||
locale = options[0]; | ||
messages = options[1]; | ||
} | ||
@@ -260,0 +267,0 @@ if (typeof locale !== 'string') { |
{ | ||
"name": "@dcloudio/uni-i18n", | ||
"version": "3.0.0-4010520240507001", | ||
"version": "3.0.0-4020320240708001", | ||
"description": "@dcloudio/uni-i18n", | ||
@@ -5,0 +5,0 @@ "main": "./dist/uni-i18n.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44931
1008