提交 307d05f7 编写于 作者: Q qiang

chore: build

上级 e3344689
...@@ -13392,7 +13392,7 @@ const getDeviceInfo = defineSyncApi('getDeviceInfo', () => { ...@@ -13392,7 +13392,7 @@ const getDeviceInfo = defineSyncApi('getDeviceInfo', () => {
}); });
const getAppBaseInfo = defineSyncApi('getAppBaseInfo', () => { const getAppBaseInfo = defineSyncApi('getAppBaseInfo', () => {
weexGetSystemInfoSync(); weexGetSystemInfoSync();
const { hostPackageName, hostName, hostVersion, hostLanguage, hostTheme, appId, appName, appVersion, appVersionCode, } = systemInfo; const { hostPackageName, hostName, hostVersion, hostLanguage, osLanguage, hostTheme, appId, appName, appVersion, appVersionCode, } = systemInfo;
return { return {
SDKVersion: '', SDKVersion: '',
hostSDKVersion: '', hostSDKVersion: '',
...@@ -13401,9 +13401,9 @@ const getAppBaseInfo = defineSyncApi('getAppBaseInfo', () => { ...@@ -13401,9 +13401,9 @@ const getAppBaseInfo = defineSyncApi('getAppBaseInfo', () => {
appName, appName,
appVersion, appVersion,
appVersionCode, appVersionCode,
appLanguage: uni.getLocale(), appLanguage: getLocale ? getLocale() : osLanguage,
version: plus.runtime.innerVersion, version: plus.runtime.innerVersion,
language: hostLanguage, language: osLanguage,
theme: '', theme: '',
hostPackageName, hostPackageName,
hostName, hostName,
......
...@@ -1333,6 +1333,14 @@ validator.concat({ ...@@ -1333,6 +1333,14 @@ validator.concat({
type: Object type: Object
}); });
const API_ON_TAB_BAR_MID_BUTTON_TAP = "onTabBarMidButtonTap"; const API_ON_TAB_BAR_MID_BUTTON_TAP = "onTabBarMidButtonTap";
const API_GET_LOCALE = "getLocale";
const getLocale = /* @__PURE__ */ defineSyncApi(API_GET_LOCALE, () => {
const app = getApp({ allowDefault: true });
if (app && app.$vm) {
return app.$vm.$locale;
}
return useI18n().getLocale();
});
const API_GET_STORAGE = "getStorage"; const API_GET_STORAGE = "getStorage";
const GetStorageProtocol = { const GetStorageProtocol = {
key: { key: {
...@@ -9622,10 +9630,10 @@ function usePickerMethods(props2, state, trigger, rootRef, pickerRef, selectRef, ...@@ -9622,10 +9630,10 @@ function usePickerMethods(props2, state, trigger, rootRef, pickerRef, selectRef,
} }
function _l10nColumn(array, normalize) { function _l10nColumn(array, normalize) {
const { const {
getLocale getLocale: getLocale2
} = useI18n(); } = useI18n();
if (props2.mode === mode.DATE) { if (props2.mode === mode.DATE) {
const locale = getLocale(); const locale = getLocale2();
if (!locale.startsWith("zh")) { if (!locale.startsWith("zh")) {
switch (props2.fields) { switch (props2.fields) {
case fields.YEAR: case fields.YEAR:
...@@ -9647,10 +9655,10 @@ function usePickerMethods(props2, state, trigger, rootRef, pickerRef, selectRef, ...@@ -9647,10 +9655,10 @@ function usePickerMethods(props2, state, trigger, rootRef, pickerRef, selectRef,
} }
function _l10nItem(item, index2) { function _l10nItem(item, index2) {
const { const {
getLocale getLocale: getLocale2
} = useI18n(); } = useI18n();
if (props2.mode === mode.DATE) { if (props2.mode === mode.DATE) {
const locale = getLocale(); const locale = getLocale2();
if (locale.startsWith("zh")) { if (locale.startsWith("zh")) {
const array = ["\u5E74", "\u6708", "\u65E5"]; const array = ["\u5E74", "\u6708", "\u65E5"];
return item + array[index2]; return item + array[index2];
...@@ -10071,7 +10079,7 @@ const getAppBaseInfo = /* @__PURE__ */ defineSyncApi("getAppBaseInfo", () => { ...@@ -10071,7 +10079,7 @@ const getAppBaseInfo = /* @__PURE__ */ defineSyncApi("getAppBaseInfo", () => {
appName: __uniConfig.appName, appName: __uniConfig.appName,
appVersion: __uniConfig.appVersion, appVersion: __uniConfig.appVersion,
appVersionCode: __uniConfig.appVersionCode, appVersionCode: __uniConfig.appVersionCode,
appLanguage: uni.getLocale(), appLanguage: getLocale ? getLocale() : language,
version: __uniConfig.appVersion version: __uniConfig.appVersion
}; };
}); });
......
...@@ -16574,7 +16574,7 @@ const getAppBaseInfo = /* @__PURE__ */ defineSyncApi("getAppBaseInfo", () => { ...@@ -16574,7 +16574,7 @@ const getAppBaseInfo = /* @__PURE__ */ defineSyncApi("getAppBaseInfo", () => {
appName: __uniConfig.appName, appName: __uniConfig.appName,
appVersion: __uniConfig.appVersion, appVersion: __uniConfig.appVersion,
appVersionCode: __uniConfig.appVersionCode, appVersionCode: __uniConfig.appVersionCode,
appLanguage: uni.getLocale(), appLanguage: getLocale ? getLocale() : language,
version: __uniConfig.appVersion version: __uniConfig.appVersion
}; };
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册