@tplc/wot 0.1.8 → 0.1.9

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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.8...v0.1.9) (2024-09-25)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * update version ([7197c50](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7197c509ec1c724b2741bf433a78655a38589d81))
11
+ * 支持切换语言 ([e012e82](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e012e820180f29159b23f5ce13007a78b85277d8))
12
+
5
13
  ### [0.1.8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.22...v0.1.8) (2024-09-24)
6
14
 
7
15
  ### [0.1.7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.20...v0.1.7) (2024-09-22)
package/locale/index.ts CHANGED
@@ -34,6 +34,9 @@ export const Locale = {
34
34
  add(newMessages: Messages = {}) {
35
35
  deepAssign(messages, newMessages)
36
36
  },
37
+ getLang() {
38
+ return lang.value
39
+ },
37
40
  }
38
41
 
39
42
  export const useCurrentLang = () => lang
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -4,6 +4,7 @@ export declare const Locale: {
4
4
  messages(): Message
5
5
  use(newLang: string, newMessage?: Message): void
6
6
  add(newMessages?: Messages): void
7
+ getLang(): string
7
8
  }
8
9
  export declare const useCurrentLang: () => import('vue').Ref<string>
9
10
  export default Locale