component-sanzhizhou 1.0.12 → 1.0.14

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.
Files changed (46) hide show
  1. package/README.md +9 -0
  2. package/dist/AuthClient/login.js +3 -3
  3. package/dist/AuthClient/reg.js +5 -5
  4. package/dist/Buy/qr.js +5 -4
  5. package/dist/UI/LoadError.js +2 -1
  6. package/dist/UI/Money/index.css.d.ts +1 -1
  7. package/dist/UI/Money/index.css.js +2 -2
  8. package/dist/UI/Money/index.d.ts +1 -0
  9. package/dist/UI/Money/index.js +2 -0
  10. package/dist/lib/formatMessage.js +4 -1
  11. package/dist/locales/ar-EG.json +33 -527
  12. package/dist/locales/de-DE.json +32 -516
  13. package/dist/locales/en-US.json +26 -7
  14. package/dist/locales/es-ES.json +35 -518
  15. package/dist/locales/fr-FR.json +34 -528
  16. package/dist/locales/it-IT.json +34 -528
  17. package/dist/locales/ja-JP.json +32 -556
  18. package/dist/locales/ko-KR.json +35 -529
  19. package/dist/locales/pt-PT.json +34 -528
  20. package/dist/locales/ru-RU.json +34 -528
  21. package/dist/locales/th-TH.json +33 -557
  22. package/dist/locales/vi-VN.json +33 -517
  23. package/dist/locales/zh-CN.json +22 -3
  24. package/dist/locales/zh-HK.json +31 -514
  25. package/dist/locales/zh-TW.json +32 -515
  26. package/dist/pay/qr-wechat.js +3 -2
  27. package/dist/pay/qr.js +38 -29
  28. package/dist/pay/recharge-moneyAmount-alt.d.ts +8 -0
  29. package/dist/pay/recharge-moneyAmount-alt.js +56 -0
  30. package/dist/pay/recharge-moneyAmount-alt.less +27 -0
  31. package/dist/pay/recharge-rule.d.ts +10 -0
  32. package/dist/pay/recharge-rule.js +87 -0
  33. package/dist/pay/recharge-rule.less +59 -0
  34. package/dist/pay/recharge.css.js +1 -1
  35. package/dist/pay/recharge.d.ts +1 -0
  36. package/dist/pay/recharge.js +54 -29
  37. package/dist/service/api/RechargeRuleController.d.ts +3 -0
  38. package/dist/service/api/RechargeRuleController.js +27 -0
  39. package/dist/service/api/WechatMinAppController.d.ts +5 -0
  40. package/dist/service/api/WechatMinAppController.js +27 -0
  41. package/dist/types/Pay.d.ts +1 -1
  42. package/dist/types/RechargeRule.d.ts +9 -0
  43. package/dist/types/RechargeRule.js +0 -0
  44. package/dist/types/WechatMinApp.d.ts +5 -0
  45. package/dist/types/WechatMinApp.js +0 -0
  46. package/package.json +1 -1
package/README.md CHANGED
@@ -5,3 +5,12 @@
5
5
 
6
6
 
7
7
 
8
+ ## 翻译提示词
9
+ ```
10
+ 你是一个专业的 跨境 erp 翻译专家,帮我把下面erp 的 文案翻译,注意专业一点,可以使用常用的 缩写,有些有歧义的翻译,可以参考一下中文,翻译不要太长,毕竟是软件,app 使用的术语;
11
+ 翻译为下面这些语种: 英语, 香港繁体, 台湾繁体, 西班牙语, 日本語, 泰语,越南语,德语, 法语 , 阿拉伯语, 俄语 , 葡萄牙语, 韩语, 意大利语;
12
+ 注意:每一种语言,单独输出 独立的 JSON,并且 格式 按照 提供的中文 json 格式;
13
+ 另外 特别注意,不要改变 key,只需要翻译 value,不要缺少 key,不要丢失数据;
14
+ ```
15
+
16
+
@@ -16,7 +16,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
16
16
  import { jsxs as _jsxs } from "react/jsx-runtime";
17
17
  var formItemLayout = {
18
18
  labelCol: {
19
- span: 7
19
+ span: 8
20
20
  }
21
21
  };
22
22
  var tailFormItemLayout = {
@@ -146,12 +146,12 @@ var AuthReg = function AuthReg(_ref) {
146
146
  message: formatMessage('请输入')
147
147
  }, {
148
148
  min: 6,
149
- message: formatMessage('最少#{maxCount}个字符', {
149
+ message: formatMessage('最少{maxCount}个字符', {
150
150
  maxCount: 6
151
151
  })
152
152
  }, {
153
153
  max: 60,
154
- message: formatMessage('最多#{maxCount}个字符', {
154
+ message: formatMessage('最多{maxCount}个字符', {
155
155
  maxCount: 60
156
156
  })
157
157
  }],
@@ -13,7 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
14
  var formItemLayout = {
15
15
  labelCol: {
16
- span: 7
16
+ span: 8
17
17
  }
18
18
  };
19
19
  var tailFormItemLayout = {
@@ -113,12 +113,12 @@ var Reg = function Reg(_ref) {
113
113
  message: formatMessage('请输入')
114
114
  }, {
115
115
  min: 6,
116
- message: formatMessage('最少#{maxCount}个字符', {
116
+ message: formatMessage('最少{maxCount}个字符', {
117
117
  maxCount: 6
118
118
  })
119
119
  }, {
120
120
  max: 60,
121
- message: formatMessage('最多#{maxCount}个字符', {
121
+ message: formatMessage('最多{maxCount}个字符', {
122
122
  maxCount: 60
123
123
  })
124
124
  }],
@@ -140,12 +140,12 @@ var Reg = function Reg(_ref) {
140
140
  message: formatMessage('请输入')
141
141
  }, {
142
142
  min: 6,
143
- message: formatMessage('最少#{maxCount}个字符', {
143
+ message: formatMessage('最少{maxCount}个字符', {
144
144
  maxCount: 6
145
145
  })
146
146
  }, {
147
147
  max: 60,
148
- message: formatMessage('最多#{maxCount}个字符', {
148
+ message: formatMessage('最多{maxCount}个字符', {
149
149
  maxCount: 60
150
150
  })
151
151
  }],
package/dist/Buy/qr.js CHANGED
@@ -10,6 +10,7 @@ import Tool from "../lib/Tool";
10
10
  import PageContentWarp from "../UI/PageContentWarp";
11
11
  import styles from "./qr.css";
12
12
  import Platform from "../lib/platform";
13
+ import formatMessage from "../lib/formatMessage";
13
14
  import { jsx as _jsx } from "react/jsx-runtime";
14
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
16
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -157,7 +158,7 @@ var VipQr = function VipQr(_ref) {
157
158
  subTitle: payInfo.wepay.message,
158
159
  children: /*#__PURE__*/_jsx(Button, {
159
160
  type: "primary",
160
- children: "\u91CD\u8BD5"
161
+ children: formatMessage('重试')
161
162
  })
162
163
  }) : /*#__PURE__*/_jsxs(_Fragment, {
163
164
  children: [/*#__PURE__*/_jsx("div", {
@@ -181,7 +182,7 @@ var VipQr = function VipQr(_ref) {
181
182
  className: "alt",
182
183
  children: ["\u8BF7\u7528 ", /*#__PURE__*/_jsx(WechatOutlined, {
183
184
  className: "wechatIcon"
184
- }), " \u5FAE\u4FE1 \u626B\u7801\u652F\u4ED8 ", /*#__PURE__*/_jsx(Divider, {
185
+ }), " ", formatMessage('微信'), " ", formatMessage('扫码支付'), " ", /*#__PURE__*/_jsx(Divider, {
185
186
  type: "vertical"
186
187
  }), " \u4E5F\u53EF\u4EE5\u8BA9\u670B\u53CB\u626B\u7801\u4EE3\u4ED8"]
187
188
  })
@@ -200,7 +201,7 @@ var VipQr = function VipQr(_ref) {
200
201
  subTitle: payInfo.alipay.message,
201
202
  children: /*#__PURE__*/_jsx(Button, {
202
203
  type: "primary",
203
- children: "\u91CD\u8BD5"
204
+ children: formatMessage('重试')
204
205
  })
205
206
  }) : /*#__PURE__*/_jsxs(_Fragment, {
206
207
  children: [/*#__PURE__*/_jsx("div", {
@@ -224,7 +225,7 @@ var VipQr = function VipQr(_ref) {
224
225
  className: "alt",
225
226
  children: ["\u8BF7\u7528 ", /*#__PURE__*/_jsx(AlipayCircleOutlined, {
226
227
  className: "alipayIcon"
227
- }), " \u652F\u4ED8\u5B9D \u626B\u7801\u652F\u4ED8 ", /*#__PURE__*/_jsx(Divider, {
228
+ }), " ", formatMessage('支付宝'), " ", formatMessage('扫码支付'), " ", /*#__PURE__*/_jsx(Divider, {
228
229
  type: "vertical"
229
230
  }), " \u4E5F\u53EF\u4EE5\u8BA9\u670B\u53CB\u626B\u7801\u4EE3\u4ED8"]
230
231
  })
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { Button, Result } from 'antd';
3
3
  import styles from "./LoadError.css";
4
4
  import { MehOutlined } from '@ant-design/icons';
5
+ import formatMessage from "../lib/formatMessage";
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
7
  var LoadError = function LoadError(_ref) {
7
8
  var _ref$title = _ref.title,
@@ -28,7 +29,7 @@ var LoadError = function LoadError(_ref) {
28
29
  onClick: function onClick(e) {
29
30
  return onReload();
30
31
  },
31
- children: "\u91CD\u8BD5"
32
+ children: formatMessage('重试')
32
33
  }) : ''
33
34
  })
34
35
  });
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- money: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ money: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
4
4
  };
5
5
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
  export default {
3
- money: styled.div.withConfig({
3
+ money: styled.span.withConfig({
4
4
  displayName: "money",
5
5
  componentId: "component-sanzhizhou__sc-7ey2c6-0"
6
- })(["position:relative;.yen{font-size:smaller;opacity:0.8;font-weight:300;}.value{padding-left:2px;padding-right:1px;&.zero{font-weight:300;color:#AAA;}}"])
6
+ })(["position:relative;display:inline-block;.yen{font-size:smaller;opacity:0.6;font-weight:300;}.value{padding-left:2px;padding-right:1px;&.zero{font-weight:300;color:#AAA;}}"])
7
7
  };
@@ -5,6 +5,7 @@ interface Props {
5
5
  end?: React.ReactNode;
6
6
  precision?: number;
7
7
  color?: string;
8
+ className?: string;
8
9
  disabledMoneySimple?: boolean;
9
10
  }
10
11
  declare const Money: React.FC<Props>;
@@ -16,6 +16,7 @@ var Money = function Money(_ref) {
16
16
  _ref$precision = _ref.precision,
17
17
  precision = _ref$precision === void 0 ? 2 : _ref$precision,
18
18
  color = _ref.color,
19
+ className = _ref.className,
19
20
  _ref$disabledMoneySim = _ref.disabledMoneySimple,
20
21
  disabledMoneySimple = _ref$disabledMoneySim === void 0 ? false : _ref$disabledMoneySim;
21
22
  return /*#__PURE__*/_jsx(Tooltip, {
@@ -24,6 +25,7 @@ var Money = function Money(_ref) {
24
25
  style: {
25
26
  color: color
26
27
  },
28
+ className: className,
27
29
  children: [/*#__PURE__*/_jsx("span", {
28
30
  className: "yen",
29
31
  children: pre
@@ -37,6 +37,9 @@ var formatMessage = function formatMessage(id) {
37
37
  if (!id) {
38
38
  return '';
39
39
  }
40
+ if (typeof id !== "string") {
41
+ return id;
42
+ }
40
43
  var language = getLanguage();
41
44
  var messages = resources[language.language] || resources['zh-CN'];
42
45
  // const msg = intl.formatMessage({
@@ -49,7 +52,7 @@ var formatMessage = function formatMessage(id) {
49
52
  var text = messages[id] || id || '';
50
53
  for (var dataKey in data) {
51
54
  var value = data[dataKey];
52
- text = text.replaceAll("#{".concat(dataKey, "}"), value);
55
+ text = text.replaceAll("{".concat(dataKey, "}"), value);
53
56
  }
54
57
  if (!text) {
55
58
  console.warn('翻译缺失:', id);