@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
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ConfigProviderProps as OriginalConfigProviderProps } from "antd/es/config-provider";
|
|
3
3
|
import "dayjs/locale/zh-cn";
|
|
4
|
+
import "dayjs/locale/ja";
|
|
5
|
+
import "dayjs/locale/pt";
|
|
4
6
|
export interface ConfigProviderProps extends OriginalConfigProviderProps {
|
|
5
7
|
[key: string]: any;
|
|
6
8
|
}
|
|
@@ -8,6 +8,8 @@ import { ConfigProvider as OriginalConfigProvider } from "antd";
|
|
|
8
8
|
import dayjs from "dayjs";
|
|
9
9
|
import "dayjs/locale/zh-cn";
|
|
10
10
|
import zhCN from "antd/es/locale/zh_CN";
|
|
11
|
+
import "dayjs/locale/ja";
|
|
12
|
+
import "dayjs/locale/pt";
|
|
11
13
|
var ConfigProvider = function ConfigProvider(props) {
|
|
12
14
|
var locale = props.locale,
|
|
13
15
|
rest = _objectWithoutProperties(props, _excluded);
|
|
@@ -20,6 +22,10 @@ var ConfigProvider = function ConfigProvider(props) {
|
|
|
20
22
|
dayjs.locale("en");
|
|
21
23
|
// 默认为英文
|
|
22
24
|
localeData = undefined;
|
|
25
|
+
} else if (locale.toLowerCase() === "ja") {
|
|
26
|
+
dayjs.locale("ja");
|
|
27
|
+
} else if (locale.toLowerCase() === "pt") {
|
|
28
|
+
dayjs.locale("pt");
|
|
23
29
|
}
|
|
24
30
|
}
|
|
25
31
|
return /*#__PURE__*/React.createElement(OriginalConfigProvider, _extends({
|
|
@@ -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;
|
|
@@ -19,7 +19,7 @@ interface UseTablePropsProps {
|
|
|
19
19
|
*/
|
|
20
20
|
declare const useTableProps: (props: UseTablePropsProps) => {
|
|
21
21
|
currentComponentId: any;
|
|
22
|
-
title:
|
|
22
|
+
title: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
23
23
|
pagination: {
|
|
24
24
|
total: number;
|
|
25
25
|
current: number;
|
|
@@ -28,7 +28,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
28
28
|
showSizeChanger: boolean;
|
|
29
29
|
};
|
|
30
30
|
columns: import("./useColumns").Column[];
|
|
31
|
-
subTitle:
|
|
31
|
+
subTitle: number | boolean | Iterable<React.ReactNode> | React.JSX.Element | (() => React.ReactNode) | null | undefined;
|
|
32
32
|
buttons: any[] | null;
|
|
33
33
|
filter: {
|
|
34
34
|
dom: any;
|
|
@@ -19,6 +19,8 @@ var defaultValue = {
|
|
|
19
19
|
en: '',
|
|
20
20
|
'zh-CN': '',
|
|
21
21
|
'zh-HK': '',
|
|
22
|
+
'ja': '',
|
|
23
|
+
'pt': '',
|
|
22
24
|
original: ''
|
|
23
25
|
};
|
|
24
26
|
var languageConfig = [{
|
|
@@ -33,6 +35,12 @@ var languageConfig = [{
|
|
|
33
35
|
}, {
|
|
34
36
|
key: 'zh-HK',
|
|
35
37
|
label: '繁體中文'
|
|
38
|
+
}, {
|
|
39
|
+
key: 'ja',
|
|
40
|
+
label: '日本語'
|
|
41
|
+
}, {
|
|
42
|
+
key: 'pt',
|
|
43
|
+
label: 'Português'
|
|
36
44
|
}];
|
|
37
45
|
var Translation = function Translation(_ref) {
|
|
38
46
|
var _ref$value = _ref.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SUPPORTED_LANGUAGES: readonly ["original", "en", "zh-CN", "zh-HK"];
|
|
1
|
+
export declare const SUPPORTED_LANGUAGES: readonly ["original", "en", "zh-CN", "zh-HK", "ja", "pt"];
|
|
2
2
|
export declare const DEFAULT_MAX_COUNT = 9;
|
|
3
3
|
export declare const DEFAULT_UID = "-1";
|
|
4
4
|
export declare const MEDIA_TYPES: {
|
|
@@ -194,7 +194,7 @@ var handleMultilingualSingleFile = function handleMultilingualSingleFile(value)
|
|
|
194
194
|
};
|
|
195
195
|
var handleMultilingualObject = function handleMultilingualObject(value) {
|
|
196
196
|
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
197
|
-
var defaultUrl = value.original || value.en || value['zh-CN'] || value['zh-HK'];
|
|
197
|
+
var defaultUrl = value.original || value.en || value['zh-CN'] || value['zh-HK'] || value['ja'] || value['pt'];
|
|
198
198
|
return {
|
|
199
199
|
uid: "-".concat(index),
|
|
200
200
|
name: getFileName(defaultUrl),
|
|
@@ -18,6 +18,8 @@ import enUS from 'antd/es/locale/en_US';
|
|
|
18
18
|
import zhCN from 'antd/es/locale/zh_CN';
|
|
19
19
|
import zhTW from 'antd/es/locale/zh_TW';
|
|
20
20
|
import zhHK from 'antd/es/locale/zh_HK';
|
|
21
|
+
import jaJP from 'antd/es/locale/ja_JP';
|
|
22
|
+
import ptPT from 'antd/es/locale/pt_PT';
|
|
21
23
|
import PisellConfigProvider from "../pisell-config-provider";
|
|
22
24
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
23
25
|
import { getThemeConfig } from "../../theme/tokens";
|
|
@@ -26,7 +28,9 @@ var localMap = {
|
|
|
26
28
|
'zh-CN': zhCN,
|
|
27
29
|
'zh-HK': zhHK,
|
|
28
30
|
'en-US': enUS,
|
|
29
|
-
en: enUS
|
|
31
|
+
en: enUS,
|
|
32
|
+
'ja': jaJP,
|
|
33
|
+
'pt': ptPT
|
|
30
34
|
};
|
|
31
35
|
var localeDateMap = {
|
|
32
36
|
'en-US': {
|
|
@@ -43,6 +47,12 @@ var localeDateMap = {
|
|
|
43
47
|
},
|
|
44
48
|
'zh-CN': {
|
|
45
49
|
adapterLocale: 'zh-cn'
|
|
50
|
+
},
|
|
51
|
+
'ja': {
|
|
52
|
+
adapterLocale: 'ja'
|
|
53
|
+
},
|
|
54
|
+
'pt': {
|
|
55
|
+
adapterLocale: 'pt'
|
|
46
56
|
}
|
|
47
57
|
};
|
|
48
58
|
var Page = function 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;
|
|
@@ -60,8 +60,8 @@ var LookupTriggerComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
60
60
|
className = props.className,
|
|
61
61
|
style = props.style;
|
|
62
62
|
var context = useEngineContext();
|
|
63
|
-
var
|
|
64
|
-
getApp =
|
|
63
|
+
var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
|
|
64
|
+
getApp = _ref.getApp;
|
|
65
65
|
/**
|
|
66
66
|
* Input 输入框的 ref
|
|
67
67
|
*/
|
|
@@ -140,7 +140,7 @@ var LookupTriggerComponent = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
140
140
|
return onScan === null || onScan === void 0 ? void 0 : onScan(res === null || res === void 0 ? void 0 : res.ScanResult);
|
|
141
141
|
}).catch(function (err) {
|
|
142
142
|
app.logger.addLog({
|
|
143
|
-
type: '
|
|
143
|
+
type: 'info',
|
|
144
144
|
title: '扫码失败',
|
|
145
145
|
metadata: {
|
|
146
146
|
err: err
|
|
@@ -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;
|
|
@@ -6,12 +6,16 @@ import dayjs from 'dayjs';
|
|
|
6
6
|
import 'dayjs/locale/zh-cn';
|
|
7
7
|
import 'dayjs/locale/en';
|
|
8
8
|
import 'dayjs/locale/zh-tw';
|
|
9
|
+
import 'dayjs/locale/ja';
|
|
10
|
+
import 'dayjs/locale/pt';
|
|
9
11
|
import "./index.less";
|
|
10
12
|
import { PREFIX } from "../../index";
|
|
11
13
|
var localeTypes = {
|
|
12
14
|
'en-US': 'en',
|
|
13
15
|
'zh-CN': 'zh-cn',
|
|
14
|
-
'zh-HK': 'zh-tw'
|
|
16
|
+
'zh-HK': 'zh-tw',
|
|
17
|
+
'ja': 'ja',
|
|
18
|
+
'pt': 'pt'
|
|
15
19
|
};
|
|
16
20
|
var TimeRange = function TimeRange(props) {
|
|
17
21
|
var _props$dataSource = props.dataSource,
|
|
@@ -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;
|
|
@@ -29,5 +29,21 @@ export default {
|
|
|
29
29
|
'pisell2.cart.sku-card.sales.title': '銷售',
|
|
30
30
|
'pisell2.cart.sku-card.actions.delete': '刪除',
|
|
31
31
|
'pisell2.cart.sku-card.unassigned': '未分配'
|
|
32
|
+
}),
|
|
33
|
+
ja: _objectSpread(_objectSpread({}, localeTexts.ja), {}, {
|
|
34
|
+
'pisell2.product.card.discount.reason': '割引理由',
|
|
35
|
+
'pisell2.cart.sku-card.more': 'もっと...',
|
|
36
|
+
'pisell2.cart.sku-card.packages.title': 'パッケージ内のアイテム',
|
|
37
|
+
'pisell2.cart.sku-card.sales.title': 'セール',
|
|
38
|
+
'pisell2.cart.sku-card.actions.delete': '削除',
|
|
39
|
+
'pisell2.cart.sku-card.unassigned': '未割り当て'
|
|
40
|
+
}),
|
|
41
|
+
pt: _objectSpread(_objectSpread({}, localeTexts.pt), {}, {
|
|
42
|
+
'pisell2.product.card.discount.reason': 'Motivo do desconto',
|
|
43
|
+
'pisell2.cart.sku-card.more': 'mais...',
|
|
44
|
+
'pisell2.cart.sku-card.packages.title': 'Itens no pacote',
|
|
45
|
+
'pisell2.cart.sku-card.sales.title': 'Vendas',
|
|
46
|
+
'pisell2.cart.sku-card.actions.delete': 'Excluir',
|
|
47
|
+
'pisell2.cart.sku-card.unassigned': 'Não atribuído'
|
|
32
48
|
})
|
|
33
49
|
};
|
|
@@ -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;
|
|
@@ -124,5 +124,89 @@ export default {
|
|
|
124
124
|
'pisell2.product.card.add.holder.modal.apply': '應用',
|
|
125
125
|
'pisell2.product.card.add.holder.modal.add': '添加',
|
|
126
126
|
'pisell2.product.card.closing-soon.warning': '當前入場時間臨近營業結束,請確認是否仍要購買。'
|
|
127
|
+
},
|
|
128
|
+
ja: {
|
|
129
|
+
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
130
|
+
return "".concat(val > 1 ? '日' : '日');
|
|
131
|
+
},
|
|
132
|
+
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
133
|
+
return "".concat(val > 1 ? '個のイベント' : '個のイベント');
|
|
134
|
+
},
|
|
135
|
+
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
|
136
|
+
return "".concat(val > 1 ? '分' : '分');
|
|
137
|
+
},
|
|
138
|
+
'pisell2.product.card.discount.reason': '割引理由',
|
|
139
|
+
'pisell2.product.card.discount.note': '備考',
|
|
140
|
+
'pisell2.product.card.edit': '編集',
|
|
141
|
+
'pisell2.product.card.discount.add.note': '備考を追加',
|
|
142
|
+
'pisell2.product.card.discount.edit.note': '備考を編集',
|
|
143
|
+
'pisell2.product.card.confirm': '確認',
|
|
144
|
+
'pisell2.product.card.cancel': 'キャンセル',
|
|
145
|
+
'pisell2.product.card.note.pla': '備考を入力してください',
|
|
146
|
+
'pisell2.product.card.items.package': 'パッケージ内のアイテム',
|
|
147
|
+
'pisell2.product.card.view-all': 'すべて表示',
|
|
148
|
+
'pisell2.product.card.view-less': '折りたたむ',
|
|
149
|
+
'pisell2.product.card.add.holder.button.text': function pisell2ProductCardAddHolderButtonText(val) {
|
|
150
|
+
return "".concat(val || '', "\u3092\u8FFD\u52A0");
|
|
151
|
+
},
|
|
152
|
+
'pisell2.product.card.add.holder.placeholder': function pisell2ProductCardAddHolderPlaceholder(val) {
|
|
153
|
+
return "".concat(val || '', "\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044");
|
|
154
|
+
},
|
|
155
|
+
'pisell2.product.card.add.holder.placeholder.multiple': function pisell2ProductCardAddHolderPlaceholderMultiple(num, val) {
|
|
156
|
+
return "".concat(num).concat(val || '', "\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044");
|
|
157
|
+
},
|
|
158
|
+
'pisell2.product.card.add.holder.modal.title.1': "\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
159
|
+
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
160
|
+
if (hour <= 0 && minute <= 0) return "".concat(0, "\u5206");
|
|
161
|
+
return "".concat(hour > 0 ? "".concat(hour, "\u6642\u9593") : '').concat(hour > 0 && minute > 0 ? ' ' : '').concat(minute > 0 ? "".concat(minute, "\u5206") : '');
|
|
162
|
+
},
|
|
163
|
+
'pisell2.product.card.sales': '販売',
|
|
164
|
+
'pisell2.product.card.add.holder.modal.cancel': 'キャンセル',
|
|
165
|
+
'pisell2.product.card.add.holder.modal.clear': 'クリア',
|
|
166
|
+
'pisell2.product.card.add.holder.modal.apply': '適用',
|
|
167
|
+
'pisell2.product.card.add.holder.modal.add': '新規追加',
|
|
168
|
+
'pisell2.product.card.closing-soon.warning': '会場はまもなく閉場します。訪問に十分な時間があることを確認してください。'
|
|
169
|
+
},
|
|
170
|
+
pt: {
|
|
171
|
+
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
172
|
+
return "".concat(val > 1 ? ' dias' : ' dia');
|
|
173
|
+
},
|
|
174
|
+
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
175
|
+
return "".concat(val > 1 ? ' eventos' : ' evento');
|
|
176
|
+
},
|
|
177
|
+
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
|
178
|
+
return "".concat(val > 1 ? ' minutos' : ' minuto');
|
|
179
|
+
},
|
|
180
|
+
'pisell2.product.card.discount.reason': 'Motivo do desconto',
|
|
181
|
+
'pisell2.product.card.discount.note': 'Nota',
|
|
182
|
+
'pisell2.product.card.edit': 'Editar',
|
|
183
|
+
'pisell2.product.card.discount.add.note': 'Adicionar nota',
|
|
184
|
+
'pisell2.product.card.discount.edit.note': 'Editar nota',
|
|
185
|
+
'pisell2.product.card.confirm': 'Confirmar',
|
|
186
|
+
'pisell2.product.card.cancel': 'Cancelar',
|
|
187
|
+
'pisell2.product.card.note.pla': 'Por favor, insira a nota',
|
|
188
|
+
'pisell2.product.card.items.package': 'Itens no pacote',
|
|
189
|
+
'pisell2.product.card.view-all': 'Ver tudo',
|
|
190
|
+
'pisell2.product.card.view-less': 'Ver menos',
|
|
191
|
+
'pisell2.product.card.add.holder.button.text': function pisell2ProductCardAddHolderButtonText(val) {
|
|
192
|
+
return "Adicionar ".concat(val || '');
|
|
193
|
+
},
|
|
194
|
+
'pisell2.product.card.add.holder.placeholder': function pisell2ProductCardAddHolderPlaceholder(val) {
|
|
195
|
+
return "Por favor, selecione ".concat(val || '');
|
|
196
|
+
},
|
|
197
|
+
'pisell2.product.card.add.holder.placeholder.multiple': function pisell2ProductCardAddHolderPlaceholderMultiple(num, val) {
|
|
198
|
+
return "Por favor, selecione ".concat(num, " ").concat(val || '');
|
|
199
|
+
},
|
|
200
|
+
'pisell2.product.card.add.holder.modal.title.1': "Por favor, selecione",
|
|
201
|
+
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
202
|
+
if (hour <= 0 && minute <= 0) return "".concat(0, "min");
|
|
203
|
+
return "".concat(hour > 0 ? "".concat(hour, "h") : '').concat(hour > 0 && minute > 0 ? ' ' : '').concat(minute > 0 ? "".concat(minute, "min") : '');
|
|
204
|
+
},
|
|
205
|
+
'pisell2.product.card.sales': 'Vendas',
|
|
206
|
+
'pisell2.product.card.add.holder.modal.cancel': 'Cancelar',
|
|
207
|
+
'pisell2.product.card.add.holder.modal.clear': 'Limpar',
|
|
208
|
+
'pisell2.product.card.add.holder.modal.apply': 'Aplicar',
|
|
209
|
+
'pisell2.product.card.add.holder.modal.add': 'Adicionar Novo',
|
|
210
|
+
'pisell2.product.card.closing-soon.warning': 'O local fechará em breve. Por favor, certifique-se de ter tempo suficiente para sua visita.'
|
|
127
211
|
}
|
|
128
212
|
};
|
|
@@ -3,6 +3,8 @@ import { locales } from '@pisell/utils';
|
|
|
3
3
|
import 'dayjs/locale/zh-cn';
|
|
4
4
|
import 'dayjs/locale/en';
|
|
5
5
|
import 'dayjs/locale/zh-tw';
|
|
6
|
+
import 'dayjs/locale/ja';
|
|
7
|
+
import 'dayjs/locale/pt';
|
|
6
8
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
7
9
|
|
|
8
10
|
/**
|
|
@@ -19,7 +21,9 @@ export var isEn = function isEn(item) {
|
|
|
19
21
|
var localeTypes = {
|
|
20
22
|
'en-US': 'en',
|
|
21
23
|
'zh-CN': 'zh-cn',
|
|
22
|
-
'zh-HK': 'zh-tw'
|
|
24
|
+
'zh-HK': 'zh-tw',
|
|
25
|
+
'ja': 'ja',
|
|
26
|
+
'pt': 'pt'
|
|
23
27
|
};
|
|
24
28
|
dayjs.locale(localeTypes[locale]);
|
|
25
29
|
return _isEn;
|
|
@@ -65,7 +69,9 @@ export var getServiceTime = function getServiceTime(item, currentDate) {
|
|
|
65
69
|
var localeTypes = {
|
|
66
70
|
'en-US': 'en',
|
|
67
71
|
'zh-CN': 'zh-cn',
|
|
68
|
-
'zh-HK': 'zh-tw'
|
|
72
|
+
'zh-HK': 'zh-tw',
|
|
73
|
+
'ja': 'ja',
|
|
74
|
+
'pt': 'pt'
|
|
69
75
|
};
|
|
70
76
|
dayjs.locale(localeTypes[locale]);
|
|
71
77
|
var startDate = dayjs(item === null || item === void 0 ? void 0 : item.start_date);
|