@pisell/materials 6.11.6 → 6.11.7
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.js +22 -22
- package/build/lowcode/view.js +19 -19
- package/es/components/PisellTabbar/locales.d.ts +8 -0
- package/es/components/PisellTabbar/locales.js +8 -0
- package/es/components/PisellTabbar2/locales.d.ts +8 -0
- package/es/components/PisellTabbar2/locales.js +8 -0
- package/es/components/PisellTabbar3/locales.d.ts +8 -0
- package/es/components/PisellTabbar3/locales.js +8 -0
- package/es/components/config-provider/index.d.ts +2 -0
- package/es/components/config-provider/index.js +6 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +2 -0
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +2 -0
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.js +8 -0
- package/es/components/dataSourceComponents/fields/Translation/type.d.ts +2 -0
- package/es/components/dataSourceComponents/fields/Upload/constants.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/constants.js +1 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.js +1 -1
- package/es/components/page/index.js +11 -1
- package/es/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
- package/es/components/pisellLookup/components/LookupTrigger.js +3 -3
- package/es/components/pisellText/components/Editable/index.d.ts +3 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.d.ts +2 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +5 -1
- package/es/components/productCard/cartSkuCard/locales.d.ts +64 -0
- package/es/components/productCard/cartSkuCard/locales.js +16 -0
- package/es/components/productCard/locales.d.ts +54 -0
- package/es/components/productCard/locales.js +84 -0
- package/es/components/productCard/utils.d.ts +2 -0
- package/es/components/productCard/utils.js +8 -2
- package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/es/components/translation/index.d.ts +2 -0
- package/es/components/translation/index.js +12 -0
- package/es/components/translation/utils.d.ts +2 -0
- package/es/components/translation/utils.js +3 -1
- package/es/components/walletCard/index.d.ts +2 -0
- package/es/components/walletCard/index.js +11 -3
- package/es/locales/index.js +6 -2
- package/es/locales/ja.d.ts +337 -0
- package/es/locales/ja.js +416 -0
- package/es/locales/pt.d.ts +337 -0
- package/es/locales/pt.js +416 -0
- package/es/utils/index.d.ts +1 -1
- package/lib/components/PisellTabbar/locales.d.ts +8 -0
- package/lib/components/PisellTabbar/locales.js +8 -0
- package/lib/components/PisellTabbar2/locales.d.ts +8 -0
- package/lib/components/PisellTabbar2/locales.js +8 -0
- package/lib/components/PisellTabbar3/locales.d.ts +8 -0
- package/lib/components/PisellTabbar3/locales.js +8 -0
- package/lib/components/config-provider/index.d.ts +2 -0
- package/lib/components/config-provider/index.js +6 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +2 -2
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.d.ts +2 -0
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +2 -0
- package/lib/components/dataSourceComponents/fields/Translation/BaseTranslation.js +5 -1
- package/lib/components/dataSourceComponents/fields/Translation/type.d.ts +2 -0
- package/lib/components/dataSourceComponents/fields/Upload/constants.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/constants.js +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.js +1 -1
- package/lib/components/page/index.js +11 -1
- package/lib/components/pisellDataSourceContainer/hooks/useDataSourceKey.d.ts +2 -2
- package/lib/components/pisellLookup/components/LookupTrigger.js +2 -2
- package/lib/components/pisellText/components/Editable/index.d.ts +3 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.d.ts +2 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +5 -1
- package/lib/components/productCard/cartSkuCard/locales.d.ts +64 -0
- package/lib/components/productCard/cartSkuCard/locales.js +18 -0
- package/lib/components/productCard/locales.d.ts +54 -0
- package/lib/components/productCard/locales.js +60 -0
- package/lib/components/productCard/utils.d.ts +2 -0
- package/lib/components/productCard/utils.js +8 -2
- package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
- package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
- package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
- package/lib/components/translation/index.d.ts +2 -0
- package/lib/components/translation/index.js +14 -0
- package/lib/components/translation/utils.d.ts +2 -0
- package/lib/components/translation/utils.js +3 -1
- package/lib/components/walletCard/index.d.ts +2 -0
- package/lib/components/walletCard/index.js +11 -3
- package/lib/locales/index.js +6 -2
- package/lib/locales/ja.d.ts +337 -0
- package/lib/locales/ja.js +396 -0
- package/lib/locales/pt.d.ts +337 -0
- package/lib/locales/pt.js +396 -0
- package/lib/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -171,7 +171,7 @@ var handleMultilingualSingleFile = (value, index = 1) => ({
|
|
|
171
171
|
multilingual: createMultilingualData(value)
|
|
172
172
|
});
|
|
173
173
|
var handleMultilingualObject = (value, index = 1) => {
|
|
174
|
-
const defaultUrl = value.original || value.en || value["zh-CN"] || value["zh-HK"];
|
|
174
|
+
const defaultUrl = value.original || value.en || value["zh-CN"] || value["zh-HK"] || value["ja"] || value["pt"];
|
|
175
175
|
return {
|
|
176
176
|
uid: `-${index}`,
|
|
177
177
|
name: getFileName(defaultUrl),
|
|
@@ -42,6 +42,8 @@ var import_en_US = __toESM(require("antd/es/locale/en_US"));
|
|
|
42
42
|
var import_zh_CN = __toESM(require("antd/es/locale/zh_CN"));
|
|
43
43
|
var import_zh_TW = __toESM(require("antd/es/locale/zh_TW"));
|
|
44
44
|
var import_zh_HK = __toESM(require("antd/es/locale/zh_HK"));
|
|
45
|
+
var import_ja_JP = __toESM(require("antd/es/locale/ja_JP"));
|
|
46
|
+
var import_pt_PT = __toESM(require("antd/es/locale/pt_PT"));
|
|
45
47
|
var import_pisell_config_provider = __toESM(require("../pisell-config-provider"));
|
|
46
48
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
47
49
|
var import_tokens = require("../../theme/tokens");
|
|
@@ -50,7 +52,9 @@ var localMap = {
|
|
|
50
52
|
"zh-CN": import_zh_CN.default,
|
|
51
53
|
"zh-HK": import_zh_HK.default,
|
|
52
54
|
"en-US": import_en_US.default,
|
|
53
|
-
en: import_en_US.default
|
|
55
|
+
en: import_en_US.default,
|
|
56
|
+
"ja": import_ja_JP.default,
|
|
57
|
+
"pt": import_pt_PT.default
|
|
54
58
|
};
|
|
55
59
|
var localeDateMap = {
|
|
56
60
|
"en-US": {
|
|
@@ -67,6 +71,12 @@ var localeDateMap = {
|
|
|
67
71
|
},
|
|
68
72
|
"zh-CN": {
|
|
69
73
|
adapterLocale: "zh-cn"
|
|
74
|
+
},
|
|
75
|
+
"ja": {
|
|
76
|
+
adapterLocale: "ja"
|
|
77
|
+
},
|
|
78
|
+
"pt": {
|
|
79
|
+
adapterLocale: "pt"
|
|
70
80
|
}
|
|
71
81
|
};
|
|
72
82
|
var Page = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const useDataSourceKey: () => {
|
|
2
|
-
dataSourceKey: string |
|
|
3
|
-
dataSourceKeyRef: import("react").MutableRefObject<string |
|
|
2
|
+
dataSourceKey: string | undefined;
|
|
3
|
+
dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
|
|
4
4
|
};
|
|
5
5
|
export default useDataSourceKey;
|
|
@@ -70,7 +70,7 @@ var LookupTriggerComponent = (0, import_react.forwardRef)(
|
|
|
70
70
|
style
|
|
71
71
|
} = props;
|
|
72
72
|
const context = (0, import_useEngineContext.default)();
|
|
73
|
-
const { getApp } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
73
|
+
const { getApp } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
74
74
|
const inputRef = (0, import_react.useRef)(null);
|
|
75
75
|
(0, import_react.useImperativeHandle)(
|
|
76
76
|
ref,
|
|
@@ -111,7 +111,7 @@ var LookupTriggerComponent = (0, import_react.forwardRef)(
|
|
|
111
111
|
const scanBarcode = getAppScanBarcodePlugin();
|
|
112
112
|
scanBarcode({ hint: 17 }).then((res) => onScan == null ? void 0 : onScan(res == null ? void 0 : res.ScanResult)).catch((err) => {
|
|
113
113
|
app.logger.addLog({
|
|
114
|
-
type: "
|
|
114
|
+
type: "info",
|
|
115
115
|
title: "扫码失败",
|
|
116
116
|
metadata: { err }
|
|
117
117
|
});
|
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import 'dayjs/locale/zh-cn';
|
|
3
3
|
import 'dayjs/locale/en';
|
|
4
4
|
import 'dayjs/locale/zh-tw';
|
|
5
|
+
import 'dayjs/locale/ja';
|
|
6
|
+
import 'dayjs/locale/pt';
|
|
5
7
|
import './index.less';
|
|
6
8
|
declare const TimeRange: (props: any) => React.JSX.Element | null;
|
|
7
9
|
export default TimeRange;
|
|
@@ -40,12 +40,16 @@ var import_dayjs = __toESM(require("dayjs"));
|
|
|
40
40
|
var import_zh_cn = require("dayjs/locale/zh-cn");
|
|
41
41
|
var import_en = require("dayjs/locale/en");
|
|
42
42
|
var import_zh_tw = require("dayjs/locale/zh-tw");
|
|
43
|
+
var import_ja = require("dayjs/locale/ja");
|
|
44
|
+
var import_pt = require("dayjs/locale/pt");
|
|
43
45
|
var import_index = require("./index.less");
|
|
44
46
|
var import__ = require("../../index");
|
|
45
47
|
var localeTypes = {
|
|
46
48
|
"en-US": "en",
|
|
47
49
|
"zh-CN": "zh-cn",
|
|
48
|
-
"zh-HK": "zh-tw"
|
|
50
|
+
"zh-HK": "zh-tw",
|
|
51
|
+
"ja": "ja",
|
|
52
|
+
"pt": "pt"
|
|
49
53
|
};
|
|
50
54
|
var TimeRange = (props) => {
|
|
51
55
|
const { dataSource = {} } = props;
|
|
@@ -95,5 +95,69 @@ declare const _default: {
|
|
|
95
95
|
'pisell2.product.card.add.holder.modal.add': string;
|
|
96
96
|
'pisell2.product.card.closing-soon.warning': string;
|
|
97
97
|
};
|
|
98
|
+
ja: {
|
|
99
|
+
'pisell2.product.card.discount.reason': string;
|
|
100
|
+
'pisell2.cart.sku-card.more': string;
|
|
101
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
102
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
103
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
104
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
105
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
106
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
107
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
108
|
+
'pisell2.product.card.discount.note': string;
|
|
109
|
+
'pisell2.product.card.edit': string;
|
|
110
|
+
'pisell2.product.card.discount.add.note': string;
|
|
111
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
112
|
+
'pisell2.product.card.confirm': string;
|
|
113
|
+
'pisell2.product.card.cancel': string;
|
|
114
|
+
'pisell2.product.card.note.pla': string;
|
|
115
|
+
'pisell2.product.card.items.package': string;
|
|
116
|
+
'pisell2.product.card.view-all': string;
|
|
117
|
+
'pisell2.product.card.view-less': string;
|
|
118
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
119
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
120
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
121
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
122
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
123
|
+
'pisell2.product.card.sales': string;
|
|
124
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
125
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
126
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
127
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
128
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
129
|
+
};
|
|
130
|
+
pt: {
|
|
131
|
+
'pisell2.product.card.discount.reason': string;
|
|
132
|
+
'pisell2.cart.sku-card.more': string;
|
|
133
|
+
'pisell2.cart.sku-card.packages.title': string;
|
|
134
|
+
'pisell2.cart.sku-card.sales.title': string;
|
|
135
|
+
'pisell2.cart.sku-card.actions.delete': string;
|
|
136
|
+
'pisell2.cart.sku-card.unassigned': string;
|
|
137
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
138
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
139
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
140
|
+
'pisell2.product.card.discount.note': string;
|
|
141
|
+
'pisell2.product.card.edit': string;
|
|
142
|
+
'pisell2.product.card.discount.add.note': string;
|
|
143
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
144
|
+
'pisell2.product.card.confirm': string;
|
|
145
|
+
'pisell2.product.card.cancel': string;
|
|
146
|
+
'pisell2.product.card.note.pla': string;
|
|
147
|
+
'pisell2.product.card.items.package': string;
|
|
148
|
+
'pisell2.product.card.view-all': string;
|
|
149
|
+
'pisell2.product.card.view-less': string;
|
|
150
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
151
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
152
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
153
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
154
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
155
|
+
'pisell2.product.card.sales': string;
|
|
156
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
157
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
158
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
159
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
160
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
161
|
+
};
|
|
98
162
|
};
|
|
99
163
|
export default _default;
|
|
@@ -60,5 +60,23 @@ var locales_default = {
|
|
|
60
60
|
"pisell2.cart.sku-card.sales.title": "銷售",
|
|
61
61
|
"pisell2.cart.sku-card.actions.delete": "刪除",
|
|
62
62
|
"pisell2.cart.sku-card.unassigned": "未分配"
|
|
63
|
+
},
|
|
64
|
+
ja: {
|
|
65
|
+
...import_locales.default.ja,
|
|
66
|
+
"pisell2.product.card.discount.reason": "割引理由",
|
|
67
|
+
"pisell2.cart.sku-card.more": "もっと...",
|
|
68
|
+
"pisell2.cart.sku-card.packages.title": "パッケージ内のアイテム",
|
|
69
|
+
"pisell2.cart.sku-card.sales.title": "セール",
|
|
70
|
+
"pisell2.cart.sku-card.actions.delete": "削除",
|
|
71
|
+
"pisell2.cart.sku-card.unassigned": "未割り当て"
|
|
72
|
+
},
|
|
73
|
+
pt: {
|
|
74
|
+
...import_locales.default.pt,
|
|
75
|
+
"pisell2.product.card.discount.reason": "Motivo do desconto",
|
|
76
|
+
"pisell2.cart.sku-card.more": "mais...",
|
|
77
|
+
"pisell2.cart.sku-card.packages.title": "Itens no pacote",
|
|
78
|
+
"pisell2.cart.sku-card.sales.title": "Vendas",
|
|
79
|
+
"pisell2.cart.sku-card.actions.delete": "Excluir",
|
|
80
|
+
"pisell2.cart.sku-card.unassigned": "Não atribuído"
|
|
63
81
|
}
|
|
64
82
|
};
|
|
@@ -80,5 +80,59 @@ declare const _default: {
|
|
|
80
80
|
'pisell2.product.card.add.holder.modal.add': string;
|
|
81
81
|
'pisell2.product.card.closing-soon.warning': string;
|
|
82
82
|
};
|
|
83
|
+
ja: {
|
|
84
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
85
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
86
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
87
|
+
'pisell2.product.card.discount.reason': string;
|
|
88
|
+
'pisell2.product.card.discount.note': string;
|
|
89
|
+
'pisell2.product.card.edit': string;
|
|
90
|
+
'pisell2.product.card.discount.add.note': string;
|
|
91
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
92
|
+
'pisell2.product.card.confirm': string;
|
|
93
|
+
'pisell2.product.card.cancel': string;
|
|
94
|
+
'pisell2.product.card.note.pla': string;
|
|
95
|
+
'pisell2.product.card.items.package': string;
|
|
96
|
+
'pisell2.product.card.view-all': string;
|
|
97
|
+
'pisell2.product.card.view-less': string;
|
|
98
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
99
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
100
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
101
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
102
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
103
|
+
'pisell2.product.card.sales': string;
|
|
104
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
105
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
106
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
107
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
108
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
109
|
+
};
|
|
110
|
+
pt: {
|
|
111
|
+
'pisell2.product.card.day': (val: number) => string;
|
|
112
|
+
'pisell2.product.card.day.event': (val: number) => string;
|
|
113
|
+
'pisell2.product.card.minute': (val: number) => string;
|
|
114
|
+
'pisell2.product.card.discount.reason': string;
|
|
115
|
+
'pisell2.product.card.discount.note': string;
|
|
116
|
+
'pisell2.product.card.edit': string;
|
|
117
|
+
'pisell2.product.card.discount.add.note': string;
|
|
118
|
+
'pisell2.product.card.discount.edit.note': string;
|
|
119
|
+
'pisell2.product.card.confirm': string;
|
|
120
|
+
'pisell2.product.card.cancel': string;
|
|
121
|
+
'pisell2.product.card.note.pla': string;
|
|
122
|
+
'pisell2.product.card.items.package': string;
|
|
123
|
+
'pisell2.product.card.view-all': string;
|
|
124
|
+
'pisell2.product.card.view-less': string;
|
|
125
|
+
'pisell2.product.card.add.holder.button.text': (val: string) => string;
|
|
126
|
+
'pisell2.product.card.add.holder.placeholder': (val: string) => string;
|
|
127
|
+
'pisell2.product.card.add.holder.placeholder.multiple': (num: number, val: string) => string;
|
|
128
|
+
'pisell2.product.card.add.holder.modal.title.1': string;
|
|
129
|
+
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
130
|
+
'pisell2.product.card.sales': string;
|
|
131
|
+
'pisell2.product.card.add.holder.modal.cancel': string;
|
|
132
|
+
'pisell2.product.card.add.holder.modal.clear': string;
|
|
133
|
+
'pisell2.product.card.add.holder.modal.apply': string;
|
|
134
|
+
'pisell2.product.card.add.holder.modal.add': string;
|
|
135
|
+
'pisell2.product.card.closing-soon.warning': string;
|
|
136
|
+
};
|
|
83
137
|
};
|
|
84
138
|
export default _default;
|
|
@@ -112,5 +112,65 @@ var locales_default = {
|
|
|
112
112
|
"pisell2.product.card.add.holder.modal.apply": "應用",
|
|
113
113
|
"pisell2.product.card.add.holder.modal.add": "添加",
|
|
114
114
|
"pisell2.product.card.closing-soon.warning": "當前入場時間臨近營業結束,請確認是否仍要購買。"
|
|
115
|
+
},
|
|
116
|
+
ja: {
|
|
117
|
+
"pisell2.product.card.day": (val) => `${val > 1 ? "日" : "日"}`,
|
|
118
|
+
"pisell2.product.card.day.event": (val) => `${val > 1 ? "個のイベント" : "個のイベント"}`,
|
|
119
|
+
"pisell2.product.card.minute": (val) => `${val > 1 ? "分" : "分"}`,
|
|
120
|
+
"pisell2.product.card.discount.reason": "割引理由",
|
|
121
|
+
"pisell2.product.card.discount.note": "備考",
|
|
122
|
+
"pisell2.product.card.edit": "編集",
|
|
123
|
+
"pisell2.product.card.discount.add.note": "備考を追加",
|
|
124
|
+
"pisell2.product.card.discount.edit.note": "備考を編集",
|
|
125
|
+
"pisell2.product.card.confirm": "確認",
|
|
126
|
+
"pisell2.product.card.cancel": "キャンセル",
|
|
127
|
+
"pisell2.product.card.note.pla": "備考を入力してください",
|
|
128
|
+
"pisell2.product.card.items.package": "パッケージ内のアイテム",
|
|
129
|
+
"pisell2.product.card.view-all": "すべて表示",
|
|
130
|
+
"pisell2.product.card.view-less": "折りたたむ",
|
|
131
|
+
"pisell2.product.card.add.holder.button.text": (val) => `${val || ""}を追加`,
|
|
132
|
+
"pisell2.product.card.add.holder.placeholder": (val) => `${val || ""}を選択してください`,
|
|
133
|
+
"pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `${num}${val || ""}を選択してください`,
|
|
134
|
+
"pisell2.product.card.add.holder.modal.title.1": `選択してください`,
|
|
135
|
+
"pisell2.product.card.hour.minute": (hour, minute) => {
|
|
136
|
+
if (hour <= 0 && minute <= 0) return `${0}分`;
|
|
137
|
+
return `${hour > 0 ? `${hour}時間` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}分` : ""}`;
|
|
138
|
+
},
|
|
139
|
+
"pisell2.product.card.sales": "販売",
|
|
140
|
+
"pisell2.product.card.add.holder.modal.cancel": "キャンセル",
|
|
141
|
+
"pisell2.product.card.add.holder.modal.clear": "クリア",
|
|
142
|
+
"pisell2.product.card.add.holder.modal.apply": "適用",
|
|
143
|
+
"pisell2.product.card.add.holder.modal.add": "新規追加",
|
|
144
|
+
"pisell2.product.card.closing-soon.warning": "会場はまもなく閉場します。訪問に十分な時間があることを確認してください。"
|
|
145
|
+
},
|
|
146
|
+
pt: {
|
|
147
|
+
"pisell2.product.card.day": (val) => `${val > 1 ? " dias" : " dia"}`,
|
|
148
|
+
"pisell2.product.card.day.event": (val) => `${val > 1 ? " eventos" : " evento"}`,
|
|
149
|
+
"pisell2.product.card.minute": (val) => `${val > 1 ? " minutos" : " minuto"}`,
|
|
150
|
+
"pisell2.product.card.discount.reason": "Motivo do desconto",
|
|
151
|
+
"pisell2.product.card.discount.note": "Nota",
|
|
152
|
+
"pisell2.product.card.edit": "Editar",
|
|
153
|
+
"pisell2.product.card.discount.add.note": "Adicionar nota",
|
|
154
|
+
"pisell2.product.card.discount.edit.note": "Editar nota",
|
|
155
|
+
"pisell2.product.card.confirm": "Confirmar",
|
|
156
|
+
"pisell2.product.card.cancel": "Cancelar",
|
|
157
|
+
"pisell2.product.card.note.pla": "Por favor, insira a nota",
|
|
158
|
+
"pisell2.product.card.items.package": "Itens no pacote",
|
|
159
|
+
"pisell2.product.card.view-all": "Ver tudo",
|
|
160
|
+
"pisell2.product.card.view-less": "Ver menos",
|
|
161
|
+
"pisell2.product.card.add.holder.button.text": (val) => `Adicionar ${val || ""}`,
|
|
162
|
+
"pisell2.product.card.add.holder.placeholder": (val) => `Por favor, selecione ${val || ""}`,
|
|
163
|
+
"pisell2.product.card.add.holder.placeholder.multiple": (num, val) => `Por favor, selecione ${num} ${val || ""}`,
|
|
164
|
+
"pisell2.product.card.add.holder.modal.title.1": `Por favor, selecione`,
|
|
165
|
+
"pisell2.product.card.hour.minute": (hour, minute) => {
|
|
166
|
+
if (hour <= 0 && minute <= 0) return `${0}min`;
|
|
167
|
+
return `${hour > 0 ? `${hour}h` : ""}${hour > 0 && minute > 0 ? " " : ""}${minute > 0 ? `${minute}min` : ""}`;
|
|
168
|
+
},
|
|
169
|
+
"pisell2.product.card.sales": "Vendas",
|
|
170
|
+
"pisell2.product.card.add.holder.modal.cancel": "Cancelar",
|
|
171
|
+
"pisell2.product.card.add.holder.modal.clear": "Limpar",
|
|
172
|
+
"pisell2.product.card.add.holder.modal.apply": "Aplicar",
|
|
173
|
+
"pisell2.product.card.add.holder.modal.add": "Adicionar Novo",
|
|
174
|
+
"pisell2.product.card.closing-soon.warning": "O local fechará em breve. Por favor, certifique-se de ter tempo suficiente para sua visita."
|
|
115
175
|
}
|
|
116
176
|
};
|
|
@@ -39,6 +39,8 @@ var import_utils = require("@pisell/utils");
|
|
|
39
39
|
var import_zh_cn = require("dayjs/locale/zh-cn");
|
|
40
40
|
var import_en = require("dayjs/locale/en");
|
|
41
41
|
var import_zh_tw = require("dayjs/locale/zh-tw");
|
|
42
|
+
var import_ja = require("dayjs/locale/ja");
|
|
43
|
+
var import_pt = require("dayjs/locale/pt");
|
|
42
44
|
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
43
45
|
var isEn = (item) => {
|
|
44
46
|
const locale = (item == null ? void 0 : item.locale) || "en-US";
|
|
@@ -46,7 +48,9 @@ var isEn = (item) => {
|
|
|
46
48
|
const localeTypes = {
|
|
47
49
|
"en-US": "en",
|
|
48
50
|
"zh-CN": "zh-cn",
|
|
49
|
-
"zh-HK": "zh-tw"
|
|
51
|
+
"zh-HK": "zh-tw",
|
|
52
|
+
"ja": "ja",
|
|
53
|
+
"pt": "pt"
|
|
50
54
|
};
|
|
51
55
|
import_dayjs.default.locale(localeTypes[locale]);
|
|
52
56
|
return _isEn;
|
|
@@ -70,7 +74,9 @@ var getServiceTime = (item, currentDate) => {
|
|
|
70
74
|
const localeTypes = {
|
|
71
75
|
"en-US": "en",
|
|
72
76
|
"zh-CN": "zh-cn",
|
|
73
|
-
"zh-HK": "zh-tw"
|
|
77
|
+
"zh-HK": "zh-tw",
|
|
78
|
+
"ja": "ja",
|
|
79
|
+
"pt": "pt"
|
|
74
80
|
};
|
|
75
81
|
import_dayjs.default.locale(localeTypes[locale]);
|
|
76
82
|
let startDate = (0, import_dayjs.default)(item == null ? void 0 : item.start_date);
|
|
@@ -64,6 +64,20 @@ var defaultGlobal = {
|
|
|
64
64
|
text: "繁體中文",
|
|
65
65
|
primary: 0,
|
|
66
66
|
status: "published"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 4,
|
|
70
|
+
code: "ja",
|
|
71
|
+
text: "日本語",
|
|
72
|
+
primary: 0,
|
|
73
|
+
status: "published"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: 5,
|
|
77
|
+
code: "pt",
|
|
78
|
+
text: "Português",
|
|
79
|
+
primary: 0,
|
|
80
|
+
status: "published"
|
|
67
81
|
}
|
|
68
82
|
]
|
|
69
83
|
},
|
|
@@ -2,6 +2,8 @@ export declare const locales: {
|
|
|
2
2
|
en: string;
|
|
3
3
|
"zh-CN": string;
|
|
4
4
|
"zh-HK": string;
|
|
5
|
+
ja: string;
|
|
6
|
+
pt: string;
|
|
5
7
|
};
|
|
6
8
|
export declare const checkIfAllValuesAreEqual: (obj: any) => boolean;
|
|
7
9
|
export declare const createTranslationText: (text: string, isAll?: boolean) => any;
|
|
@@ -74,7 +74,9 @@ var DEFAULT_PROPS = {
|
|
|
74
74
|
original: "Balance",
|
|
75
75
|
"zh-CN": "充值卡",
|
|
76
76
|
"zh-HK": "充值卡",
|
|
77
|
-
en: "Balance"
|
|
77
|
+
en: "Balance",
|
|
78
|
+
"ja": "残高",
|
|
79
|
+
"pt": "Saldo"
|
|
78
80
|
}
|
|
79
81
|
},
|
|
80
82
|
{
|
|
@@ -84,7 +86,9 @@ var DEFAULT_PROPS = {
|
|
|
84
86
|
original: "Points",
|
|
85
87
|
"zh-CN": "积分卡",
|
|
86
88
|
"zh-HK": "積分卡",
|
|
87
|
-
en: "Points"
|
|
89
|
+
en: "Points",
|
|
90
|
+
"ja": "ポイント",
|
|
91
|
+
"pt": "Pontos"
|
|
88
92
|
}
|
|
89
93
|
},
|
|
90
94
|
{
|
|
@@ -94,7 +98,9 @@ var DEFAULT_PROPS = {
|
|
|
94
98
|
original: "Voucher",
|
|
95
99
|
"zh-CN": "代金券",
|
|
96
100
|
"zh-HK": "代金券",
|
|
97
|
-
en: "Voucher"
|
|
101
|
+
en: "Voucher",
|
|
102
|
+
"ja": "クーポン",
|
|
103
|
+
"pt": "Cupom"
|
|
98
104
|
}
|
|
99
105
|
},
|
|
100
106
|
{
|
|
@@ -104,6 +110,8 @@ var DEFAULT_PROPS = {
|
|
|
104
110
|
original: "Discount",
|
|
105
111
|
"zh-CN": "折扣卡",
|
|
106
112
|
"zh-HK": "折扣卡",
|
|
113
|
+
"ja": "割引カード",
|
|
114
|
+
"pt": "Cartão de desconto",
|
|
107
115
|
en: "Discount"
|
|
108
116
|
}
|
|
109
117
|
}
|
package/lib/locales/index.js
CHANGED
|
@@ -35,6 +35,8 @@ module.exports = __toCommonJS(locales_exports);
|
|
|
35
35
|
var import_zh_CN = __toESM(require("./zh-CN"));
|
|
36
36
|
var import_en_US = __toESM(require("./en-US"));
|
|
37
37
|
var import_zh_TW = __toESM(require("./zh-TW"));
|
|
38
|
+
var import_ja = __toESM(require("./ja"));
|
|
39
|
+
var import_pt = __toESM(require("./pt"));
|
|
38
40
|
var import_locale = require("../utils/locale");
|
|
39
41
|
var langMap = {
|
|
40
42
|
"zh-CN": import_zh_CN.default,
|
|
@@ -42,7 +44,9 @@ var langMap = {
|
|
|
42
44
|
"zh-TW": import_zh_TW.default,
|
|
43
45
|
"zh-HK": import_zh_TW.default,
|
|
44
46
|
en: import_en_US.default,
|
|
45
|
-
original: import_en_US.default
|
|
47
|
+
original: import_en_US.default,
|
|
48
|
+
"ja": import_ja.default,
|
|
49
|
+
"pt": import_pt.default
|
|
46
50
|
};
|
|
47
51
|
var getText = (id) => {
|
|
48
52
|
var _a;
|
|
@@ -50,7 +54,7 @@ var getText = (id) => {
|
|
|
50
54
|
return;
|
|
51
55
|
}
|
|
52
56
|
let locale = (0, import_locale.getCurrentLocale)();
|
|
53
|
-
return ((_a = langMap == null ? void 0 : langMap[locale]) == null ? void 0 : _a[id]) || id;
|
|
57
|
+
return ((_a = langMap == null ? void 0 : langMap[locale]) == null ? void 0 : _a[id]) || langMap["en-US"][id] || id;
|
|
54
58
|
};
|
|
55
59
|
// Annotate the CommonJS export names for ESM import in node:
|
|
56
60
|
0 && (module.exports = {
|