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.
- package/README.md +9 -0
- package/dist/AuthClient/login.js +3 -3
- package/dist/AuthClient/reg.js +5 -5
- package/dist/Buy/qr.js +5 -4
- package/dist/UI/LoadError.js +2 -1
- package/dist/UI/Money/index.css.d.ts +1 -1
- package/dist/UI/Money/index.css.js +2 -2
- package/dist/UI/Money/index.d.ts +1 -0
- package/dist/UI/Money/index.js +2 -0
- package/dist/lib/formatMessage.js +4 -1
- package/dist/locales/ar-EG.json +33 -527
- package/dist/locales/de-DE.json +32 -516
- package/dist/locales/en-US.json +26 -7
- package/dist/locales/es-ES.json +35 -518
- package/dist/locales/fr-FR.json +34 -528
- package/dist/locales/it-IT.json +34 -528
- package/dist/locales/ja-JP.json +32 -556
- package/dist/locales/ko-KR.json +35 -529
- package/dist/locales/pt-PT.json +34 -528
- package/dist/locales/ru-RU.json +34 -528
- package/dist/locales/th-TH.json +33 -557
- package/dist/locales/vi-VN.json +33 -517
- package/dist/locales/zh-CN.json +22 -3
- package/dist/locales/zh-HK.json +31 -514
- package/dist/locales/zh-TW.json +32 -515
- package/dist/pay/qr-wechat.js +3 -2
- package/dist/pay/qr.js +38 -29
- package/dist/pay/recharge-moneyAmount-alt.d.ts +8 -0
- package/dist/pay/recharge-moneyAmount-alt.js +56 -0
- package/dist/pay/recharge-moneyAmount-alt.less +27 -0
- package/dist/pay/recharge-rule.d.ts +10 -0
- package/dist/pay/recharge-rule.js +87 -0
- package/dist/pay/recharge-rule.less +59 -0
- package/dist/pay/recharge.css.js +1 -1
- package/dist/pay/recharge.d.ts +1 -0
- package/dist/pay/recharge.js +54 -29
- package/dist/service/api/RechargeRuleController.d.ts +3 -0
- package/dist/service/api/RechargeRuleController.js +27 -0
- package/dist/service/api/WechatMinAppController.d.ts +5 -0
- package/dist/service/api/WechatMinAppController.js +27 -0
- package/dist/types/Pay.d.ts +1 -1
- package/dist/types/RechargeRule.d.ts +9 -0
- package/dist/types/RechargeRule.js +0 -0
- package/dist/types/WechatMinApp.d.ts +5 -0
- package/dist/types/WechatMinApp.js +0 -0
- 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
|
+
|
package/dist/AuthClient/login.js
CHANGED
|
@@ -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:
|
|
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('
|
|
149
|
+
message: formatMessage('最少{maxCount}个字符', {
|
|
150
150
|
maxCount: 6
|
|
151
151
|
})
|
|
152
152
|
}, {
|
|
153
153
|
max: 60,
|
|
154
|
-
message: formatMessage('
|
|
154
|
+
message: formatMessage('最多{maxCount}个字符', {
|
|
155
155
|
maxCount: 60
|
|
156
156
|
})
|
|
157
157
|
}],
|
package/dist/AuthClient/reg.js
CHANGED
|
@@ -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:
|
|
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('
|
|
116
|
+
message: formatMessage('最少{maxCount}个字符', {
|
|
117
117
|
maxCount: 6
|
|
118
118
|
})
|
|
119
119
|
}, {
|
|
120
120
|
max: 60,
|
|
121
|
-
message: formatMessage('
|
|
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('
|
|
143
|
+
message: formatMessage('最少{maxCount}个字符', {
|
|
144
144
|
maxCount: 6
|
|
145
145
|
})
|
|
146
146
|
}, {
|
|
147
147
|
max: 60,
|
|
148
|
-
message: formatMessage('
|
|
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:
|
|
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
|
-
}), "
|
|
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:
|
|
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
|
-
}), "
|
|
228
|
+
}), " ", formatMessage('支付宝'), " ", formatMessage('扫码支付'), " ", /*#__PURE__*/_jsx(Divider, {
|
|
228
229
|
type: "vertical"
|
|
229
230
|
}), " \u4E5F\u53EF\u4EE5\u8BA9\u670B\u53CB\u626B\u7801\u4EE3\u4ED8"]
|
|
230
231
|
})
|
package/dist/UI/LoadError.js
CHANGED
|
@@ -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:
|
|
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<
|
|
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.
|
|
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.
|
|
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
|
};
|
package/dist/UI/Money/index.d.ts
CHANGED
package/dist/UI/Money/index.js
CHANGED
|
@@ -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("
|
|
55
|
+
text = text.replaceAll("{".concat(dataKey, "}"), value);
|
|
53
56
|
}
|
|
54
57
|
if (!text) {
|
|
55
58
|
console.warn('翻译缺失:', id);
|