@zfqh/uniapp 0.3.20 → 0.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/lib/utils/locale.d.ts +1 -1
- package/lib/utils/locale.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.3.21](http://10.10.10.16/caoben/front-end-tools/compare/@zfqh/uniapp@0.3.20...@zfqh/uniapp@0.3.21) (2026-11-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zfqh/uniapp
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.3.20](http://10.10.10.16/caoben/front-end-tools/compare/@zfqh/uniapp@0.3.19...@zfqh/uniapp@0.3.20) (2026-11-09)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @zfqh/uniapp
|
package/lib/utils/locale.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I18nOptions } from 'vue-i18n';
|
|
2
2
|
export declare const defaultLocale: any;
|
|
3
|
-
export declare const fallbackLocale = "zh-
|
|
3
|
+
export declare const fallbackLocale = "zh-CN";
|
|
4
4
|
export declare function createI18n(opts: I18nOptions): import("vue-i18n").I18n<import("vue-i18n").LocaleMessages<import("vue-i18n").VueMessageType>, import("vue-i18n").IntlDateTimeFormats, import("vue-i18n").IntlNumberFormats, boolean>;
|
|
5
5
|
export declare function getLocaleMessage(key: string, values?: Record<string, string>): string;
|
package/lib/utils/locale.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createI18n as _createI18n } from 'vue-i18n';
|
|
2
2
|
import query from './query';
|
|
3
|
-
export const defaultLocale = query.locale || uni.getLocale();
|
|
4
|
-
export const fallbackLocale = 'zh-
|
|
3
|
+
export const defaultLocale = query.locale || query.xLanguage || uni.getLocale();
|
|
4
|
+
export const fallbackLocale = 'zh-CN';
|
|
5
5
|
// #ifdef APP
|
|
6
6
|
// APP下不支持动态变量,需要重写
|
|
7
7
|
function replacePlaceholders(str, values) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zfqh/uniapp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
4
4
|
"description": "uniapp公共模块",
|
|
5
5
|
"author": "yinjiazeng@163.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@types/qs": "^6.9.16",
|
|
46
46
|
"@types/url-parse": "^1.4.11"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "cc5d98c2352fc99519a4660779a24cf992faad32"
|
|
49
49
|
}
|