@ray-js/api 1.3.1-beta.7 → 1.3.1

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/@types/index.d.ts CHANGED
@@ -7,3 +7,11 @@ interface I18nInfo {
7
7
  langKey: string
8
8
  langContent: Record<string, any>
9
9
  }
10
+
11
+ /**
12
+ * I18n 智能小程序中用来获取多语言的对象
13
+ * 文档: https://developer.tuya.com/cn/miniapp/framework/app/i18n
14
+ */
15
+ declare class I18n {
16
+ static t: (key: string) => string
17
+ }
@@ -16,10 +16,6 @@ import "core-js/modules/es.array.concat.js";
16
16
  import "core-js/modules/es.parse-float.js";
17
17
  import { requestCloud, getSystemInfoSync, THING } from '../..';
18
18
  import { getBitValue } from '../utils';
19
- /**
20
- * I18n 智能小程序中用来获取多语言的对象
21
- * 文档: https://developer.tuya.com/cn/miniapp/framework/app/i18n
22
- */
23
19
 
24
20
  var I18N = /*#__PURE__*/function () {
25
21
  function I18N(props) {
@@ -15,14 +15,7 @@ import "core-js/modules/es.regexp.to-string.js";
15
15
  import "core-js/modules/es.array.concat.js";
16
16
  import "core-js/modules/es.parse-float.js";
17
17
  import { requestCloud, getSystemInfoSync, THING } from '../..';
18
- import { getBitValue } from '../utils'; // /**
19
- // * I18n 智能小程序中用来获取多语言的对象
20
- // * 文档: https://developer.tuya.com/cn/miniapp/framework/app/i18n
21
- // */
22
- // declare class I18n {
23
- // static t: (key: string) => string;
24
- // }
25
- // 微信小程序暂时只支持本地多语言
18
+ import { getBitValue } from '../utils'; // 微信小程序暂时只支持本地多语言
26
19
 
27
20
  var I18n = {
28
21
  t: function t(key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/api",
3
- "version": "1.3.1-beta.7",
3
+ "version": "1.3.1",
4
4
  "description": "Ray universal api",
5
5
  "keywords": [
6
6
  "ray"
@@ -26,13 +26,13 @@
26
26
  "build:kit:api": "node scripts/api-creator.mjs"
27
27
  },
28
28
  "dependencies": {
29
- "@ray-js/framework": "^1.3.1-beta.7",
30
- "@ray-js/router": "^1.3.1-beta.7",
29
+ "@ray-js/framework": "^1.3.1",
30
+ "@ray-js/router": "^1.3.1",
31
31
  "@ray-js/wechat": "^0.0.16",
32
32
  "base64-browser": "^1.0.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@ray-js/cli": "^1.3.1-beta.7",
35
+ "@ray-js/cli": "^1.3.1",
36
36
  "art-template": "^4.13.2",
37
37
  "fs-extra": "^10.1.0",
38
38
  "miniprogram-api-typings": "^3.4.3",
@@ -44,6 +44,6 @@
44
44
  "email": "tuyafe@tuya.com"
45
45
  }
46
46
  ],
47
- "gitHead": "3d68284d96ae18ddf2eaffa46f5d3607a51d60f8",
47
+ "gitHead": "4844c0f03bb434999b2e93196dba1cd53b9b6c56",
48
48
  "repository": {}
49
49
  }