@pushwoosh/dumb-components 4.16.0 → 4.17.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/SmsPreview/SmsPreview.d.ts +4 -0
- package/SmsPreview/SmsPreview.js +48 -0
- package/SmsPreview/index.d.ts +2 -0
- package/SmsPreview/index.js +1 -0
- package/SmsPreview/polyglot/index.d.ts +2 -0
- package/SmsPreview/polyglot/index.js +34 -0
- package/SmsPreview/polyglot/messages_ar.d.ts +3 -0
- package/SmsPreview/polyglot/messages_ar.js +5 -0
- package/SmsPreview/polyglot/messages_bn.d.ts +3 -0
- package/SmsPreview/polyglot/messages_bn.js +5 -0
- package/SmsPreview/polyglot/messages_de.d.ts +3 -0
- package/SmsPreview/polyglot/messages_de.js +5 -0
- package/SmsPreview/polyglot/messages_en.d.ts +3 -0
- package/SmsPreview/polyglot/messages_en.js +5 -0
- package/SmsPreview/polyglot/messages_es.d.ts +3 -0
- package/SmsPreview/polyglot/messages_es.js +5 -0
- package/SmsPreview/polyglot/messages_fr.d.ts +3 -0
- package/SmsPreview/polyglot/messages_fr.js +5 -0
- package/SmsPreview/polyglot/messages_he.d.ts +3 -0
- package/SmsPreview/polyglot/messages_he.js +5 -0
- package/SmsPreview/polyglot/messages_hi.d.ts +3 -0
- package/SmsPreview/polyglot/messages_hi.js +5 -0
- package/SmsPreview/polyglot/messages_ja.d.ts +3 -0
- package/SmsPreview/polyglot/messages_ja.js +5 -0
- package/SmsPreview/polyglot/messages_ko.d.ts +3 -0
- package/SmsPreview/polyglot/messages_ko.js +5 -0
- package/SmsPreview/polyglot/messages_pt.d.ts +3 -0
- package/SmsPreview/polyglot/messages_pt.js +5 -0
- package/SmsPreview/polyglot/messages_ru.d.ts +3 -0
- package/SmsPreview/polyglot/messages_ru.js +5 -0
- package/SmsPreview/polyglot/messages_th.d.ts +3 -0
- package/SmsPreview/polyglot/messages_th.js +5 -0
- package/SmsPreview/polyglot/messages_zh.d.ts +3 -0
- package/SmsPreview/polyglot/messages_zh.js +5 -0
- package/SmsPreview/polyglot/types.d.ts +9 -0
- package/SmsPreview/polyglot/types.js +1 -0
- package/SmsPreview/styles.d.ts +15 -0
- package/SmsPreview/styles.js +22 -0
- package/SmsPreview/types.d.ts +22 -0
- package/SmsPreview/types.js +1 -0
- package/Tooltip/Tooltip.d.ts +1 -1
- package/Tooltip/Tooltip.js +8 -3
- package/WalletPassPreview/WalletPassPreview.d.ts +4 -0
- package/WalletPassPreview/WalletPassPreview.js +203 -0
- package/WalletPassPreview/components/BarcodePlaceholder/BarcodePlaceholder.d.ts +3 -0
- package/WalletPassPreview/components/BarcodePlaceholder/BarcodePlaceholder.js +148 -0
- package/WalletPassPreview/components/BarcodePlaceholder/index.d.ts +1 -0
- package/WalletPassPreview/components/BarcodePlaceholder/index.js +1 -0
- package/WalletPassPreview/components/BarcodePlaceholder/styles.d.ts +6 -0
- package/WalletPassPreview/components/BarcodePlaceholder/styles.js +11 -0
- package/WalletPassPreview/components/BarcodePlaceholder/types.d.ts +3 -0
- package/WalletPassPreview/components/BarcodePlaceholder/types.js +1 -0
- package/WalletPassPreview/constants.d.ts +8 -0
- package/WalletPassPreview/constants.js +27 -0
- package/WalletPassPreview/helpers/formatting.d.ts +3 -0
- package/WalletPassPreview/helpers/formatting.js +63 -0
- package/WalletPassPreview/helpers/index.d.ts +1 -0
- package/WalletPassPreview/helpers/index.js +1 -0
- package/WalletPassPreview/index.d.ts +2 -0
- package/WalletPassPreview/index.js +1 -0
- package/WalletPassPreview/polyglot/index.d.ts +2 -0
- package/WalletPassPreview/polyglot/index.js +34 -0
- package/WalletPassPreview/polyglot/messages_ar.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_ar.js +34 -0
- package/WalletPassPreview/polyglot/messages_bn.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_bn.js +34 -0
- package/WalletPassPreview/polyglot/messages_de.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_de.js +34 -0
- package/WalletPassPreview/polyglot/messages_en.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_en.js +34 -0
- package/WalletPassPreview/polyglot/messages_es.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_es.js +34 -0
- package/WalletPassPreview/polyglot/messages_fr.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_fr.js +34 -0
- package/WalletPassPreview/polyglot/messages_he.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_he.js +34 -0
- package/WalletPassPreview/polyglot/messages_hi.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_hi.js +34 -0
- package/WalletPassPreview/polyglot/messages_ja.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_ja.js +34 -0
- package/WalletPassPreview/polyglot/messages_ko.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_ko.js +34 -0
- package/WalletPassPreview/polyglot/messages_pt.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_pt.js +34 -0
- package/WalletPassPreview/polyglot/messages_ru.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_ru.js +34 -0
- package/WalletPassPreview/polyglot/messages_th.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_th.js +34 -0
- package/WalletPassPreview/polyglot/messages_zh.d.ts +3 -0
- package/WalletPassPreview/polyglot/messages_zh.js +34 -0
- package/WalletPassPreview/polyglot/types.d.ts +47 -0
- package/WalletPassPreview/polyglot/types.js +1 -0
- package/WalletPassPreview/styles.d.ts +139 -0
- package/WalletPassPreview/styles.js +180 -0
- package/WalletPassPreview/types.d.ts +34 -0
- package/WalletPassPreview/types.js +1 -0
- package/WebPushPreview/WebPushPreview.d.ts +4 -0
- package/WebPushPreview/WebPushPreview.js +40 -0
- package/WebPushPreview/index.d.ts +2 -0
- package/WebPushPreview/index.js +1 -0
- package/WebPushPreview/polyglot/index.d.ts +5 -0
- package/WebPushPreview/polyglot/index.js +34 -0
- package/WebPushPreview/polyglot/messages_ar.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_ar.js +3 -0
- package/WebPushPreview/polyglot/messages_bn.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_bn.js +3 -0
- package/WebPushPreview/polyglot/messages_de.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_de.js +3 -0
- package/WebPushPreview/polyglot/messages_en.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_en.js +3 -0
- package/WebPushPreview/polyglot/messages_es.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_es.js +3 -0
- package/WebPushPreview/polyglot/messages_fr.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_fr.js +3 -0
- package/WebPushPreview/polyglot/messages_he.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_he.js +3 -0
- package/WebPushPreview/polyglot/messages_hi.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_hi.js +3 -0
- package/WebPushPreview/polyglot/messages_ja.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_ja.js +3 -0
- package/WebPushPreview/polyglot/messages_ko.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_ko.js +3 -0
- package/WebPushPreview/polyglot/messages_pt.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_pt.js +3 -0
- package/WebPushPreview/polyglot/messages_ru.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_ru.js +3 -0
- package/WebPushPreview/polyglot/messages_th.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_th.js +3 -0
- package/WebPushPreview/polyglot/messages_zh.d.ts +3 -0
- package/WebPushPreview/polyglot/messages_zh.js +3 -0
- package/WebPushPreview/polyglot/types.d.ts +4 -0
- package/WebPushPreview/polyglot/types.js +1 -0
- package/WebPushPreview/styles.d.ts +22 -0
- package/WebPushPreview/styles.js +31 -0
- package/WebPushPreview/types.d.ts +13 -0
- package/WebPushPreview/types.js +1 -0
- package/index.d.ts +6 -0
- package/index.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Frame, Svg } from './styles';
|
|
3
|
+
import { Lang } from '../../polyglot';
|
|
4
|
+
export function BarcodePlaceholder({
|
|
5
|
+
format
|
|
6
|
+
}) {
|
|
7
|
+
return _jsxs(Frame, {
|
|
8
|
+
children: [format === 'PKBarcodeFormatQR' && _jsxs(Svg, {
|
|
9
|
+
width: "200",
|
|
10
|
+
height: "200",
|
|
11
|
+
viewBox: "0 0 100 100",
|
|
12
|
+
children: [_jsx("rect", {
|
|
13
|
+
width: "100",
|
|
14
|
+
height: "100",
|
|
15
|
+
fill: "white",
|
|
16
|
+
rx: "4"
|
|
17
|
+
}), _jsx("rect", {
|
|
18
|
+
x: "20",
|
|
19
|
+
y: "20",
|
|
20
|
+
width: "60",
|
|
21
|
+
height: "60",
|
|
22
|
+
fill: "black",
|
|
23
|
+
opacity: "0.8"
|
|
24
|
+
}), _jsx("rect", {
|
|
25
|
+
x: "25",
|
|
26
|
+
y: "25",
|
|
27
|
+
width: "10",
|
|
28
|
+
height: "10",
|
|
29
|
+
fill: "white"
|
|
30
|
+
}), _jsx("rect", {
|
|
31
|
+
x: "65",
|
|
32
|
+
y: "25",
|
|
33
|
+
width: "10",
|
|
34
|
+
height: "10",
|
|
35
|
+
fill: "white"
|
|
36
|
+
}), _jsx("rect", {
|
|
37
|
+
x: "25",
|
|
38
|
+
y: "65",
|
|
39
|
+
width: "10",
|
|
40
|
+
height: "10",
|
|
41
|
+
fill: "white"
|
|
42
|
+
}), _jsx("text", {
|
|
43
|
+
x: "50",
|
|
44
|
+
y: "92",
|
|
45
|
+
textAnchor: "middle",
|
|
46
|
+
fill: "black",
|
|
47
|
+
fontSize: "6",
|
|
48
|
+
opacity: "0.5",
|
|
49
|
+
children: _jsx(Lang, {
|
|
50
|
+
message: "DUMB.WALLET_PASS_PREVIEW.QR_PREVIEW"
|
|
51
|
+
})
|
|
52
|
+
})]
|
|
53
|
+
}), format === 'PKBarcodeFormatPDF417' && _jsxs(Svg, {
|
|
54
|
+
width: "200",
|
|
55
|
+
height: "100",
|
|
56
|
+
viewBox: "0 0 200 100",
|
|
57
|
+
children: [_jsx("rect", {
|
|
58
|
+
width: "200",
|
|
59
|
+
height: "100",
|
|
60
|
+
fill: "white",
|
|
61
|
+
rx: "4"
|
|
62
|
+
}), Array.from({
|
|
63
|
+
length: 20
|
|
64
|
+
}).map((_, i) => _jsx("rect", {
|
|
65
|
+
x: 10 + i * 9,
|
|
66
|
+
y: "15",
|
|
67
|
+
width: i * 13 % 2 === 0 ? 6 : 3,
|
|
68
|
+
height: "60",
|
|
69
|
+
fill: "black"
|
|
70
|
+
}, `pdf417-${i}`)), _jsx("text", {
|
|
71
|
+
x: "100",
|
|
72
|
+
y: "90",
|
|
73
|
+
textAnchor: "middle",
|
|
74
|
+
fill: "black",
|
|
75
|
+
fontSize: "8",
|
|
76
|
+
opacity: "0.5",
|
|
77
|
+
children: _jsx(Lang, {
|
|
78
|
+
message: "DUMB.WALLET_PASS_PREVIEW.PDF417_PREVIEW"
|
|
79
|
+
})
|
|
80
|
+
})]
|
|
81
|
+
}), format === 'PKBarcodeFormatAztec' && _jsxs(Svg, {
|
|
82
|
+
width: "200",
|
|
83
|
+
height: "200",
|
|
84
|
+
viewBox: "0 0 100 100",
|
|
85
|
+
children: [_jsx("rect", {
|
|
86
|
+
width: "100",
|
|
87
|
+
height: "100",
|
|
88
|
+
fill: "white",
|
|
89
|
+
rx: "4"
|
|
90
|
+
}), _jsx("circle", {
|
|
91
|
+
cx: "50",
|
|
92
|
+
cy: "50",
|
|
93
|
+
r: "25",
|
|
94
|
+
fill: "black",
|
|
95
|
+
opacity: "0.8"
|
|
96
|
+
}), _jsx("circle", {
|
|
97
|
+
cx: "50",
|
|
98
|
+
cy: "50",
|
|
99
|
+
r: "8",
|
|
100
|
+
fill: "white"
|
|
101
|
+
}), _jsx("rect", {
|
|
102
|
+
x: "45",
|
|
103
|
+
y: "45",
|
|
104
|
+
width: "10",
|
|
105
|
+
height: "10",
|
|
106
|
+
fill: "black"
|
|
107
|
+
}), _jsx("text", {
|
|
108
|
+
x: "50",
|
|
109
|
+
y: "92",
|
|
110
|
+
textAnchor: "middle",
|
|
111
|
+
fill: "black",
|
|
112
|
+
fontSize: "6",
|
|
113
|
+
opacity: "0.5",
|
|
114
|
+
children: _jsx(Lang, {
|
|
115
|
+
message: "DUMB.WALLET_PASS_PREVIEW.AZTEC_PREVIEW"
|
|
116
|
+
})
|
|
117
|
+
})]
|
|
118
|
+
}), format === 'PKBarcodeFormatCode128' && _jsxs(Svg, {
|
|
119
|
+
width: "200",
|
|
120
|
+
height: "80",
|
|
121
|
+
viewBox: "0 0 200 80",
|
|
122
|
+
children: [_jsx("rect", {
|
|
123
|
+
width: "200",
|
|
124
|
+
height: "80",
|
|
125
|
+
fill: "white",
|
|
126
|
+
rx: "4"
|
|
127
|
+
}), Array.from({
|
|
128
|
+
length: 30
|
|
129
|
+
}).map((_, i) => _jsx("rect", {
|
|
130
|
+
x: 10 + i * 6,
|
|
131
|
+
y: "10",
|
|
132
|
+
width: i * 7 % 2 === 0 ? 4 : 2,
|
|
133
|
+
height: "50",
|
|
134
|
+
fill: "black"
|
|
135
|
+
}, `code128-${i}`)), _jsx("text", {
|
|
136
|
+
x: "100",
|
|
137
|
+
y: "73",
|
|
138
|
+
textAnchor: "middle",
|
|
139
|
+
fill: "black",
|
|
140
|
+
fontSize: "8",
|
|
141
|
+
opacity: "0.5",
|
|
142
|
+
children: _jsx(Lang, {
|
|
143
|
+
message: "DUMB.WALLET_PASS_PREVIEW.CODE128_PREVIEW"
|
|
144
|
+
})
|
|
145
|
+
})]
|
|
146
|
+
})]
|
|
147
|
+
});
|
|
148
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BarcodePlaceholder } from './BarcodePlaceholder';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BarcodePlaceholder } from './BarcodePlaceholder';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Frame: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
3
|
+
}> & string;
|
|
4
|
+
export declare const Svg: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").SVGProps<SVGSVGElement>, "style"> & {
|
|
5
|
+
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
6
|
+
}> & string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Color } from '@pushwoosh/kit-constants';
|
|
3
|
+
export const Frame = styled.div.withConfig({
|
|
4
|
+
displayName: "Frame",
|
|
5
|
+
componentId: "sc-1bt8hip-0"
|
|
6
|
+
})(["background:", ";border-radius:10px;padding:0.75rem;display:inline-block;box-shadow:0 2px 8px rgba(0,0,0,0.1);"], Color.CLEAR);
|
|
7
|
+
// Placeholder barcodes carry no real data — half size keeps them from dominating the preview.
|
|
8
|
+
export const Svg = styled.svg.withConfig({
|
|
9
|
+
displayName: "Svg",
|
|
10
|
+
componentId: "sc-1bt8hip-1"
|
|
11
|
+
})(["width:100px;height:auto;"]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type WalletPassPreviewMessages } from './polyglot/types';
|
|
2
|
+
type MessageKey = keyof WalletPassPreviewMessages;
|
|
3
|
+
export declare const TRANSIT_ICONS: Record<string, MessageKey>;
|
|
4
|
+
export declare const BARCODE_NAMES: Record<string, string>;
|
|
5
|
+
export declare const STYLE_NAMES: Record<string, MessageKey>;
|
|
6
|
+
export declare const DATE_STYLE_MAP: Record<string, 'short' | 'medium' | 'long' | 'full'>;
|
|
7
|
+
export declare const BACK_FIELDS_SHOWN = 3;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export const TRANSIT_ICONS = {
|
|
2
|
+
PKTransitTypeAir: 'DUMB.WALLET_PASS_PREVIEW.TRANSIT_AIR',
|
|
3
|
+
PKTransitTypeTrain: 'DUMB.WALLET_PASS_PREVIEW.TRANSIT_TRAIN',
|
|
4
|
+
PKTransitTypeBus: 'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BUS',
|
|
5
|
+
PKTransitTypeBoat: 'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BOAT',
|
|
6
|
+
PKTransitTypeGeneric: 'DUMB.WALLET_PASS_PREVIEW.TRANSIT_GENERIC'
|
|
7
|
+
};
|
|
8
|
+
export const BARCODE_NAMES = {
|
|
9
|
+
PKBarcodeFormatPDF417: 'PDF417',
|
|
10
|
+
PKBarcodeFormatAztec: 'Aztec',
|
|
11
|
+
PKBarcodeFormatCode128: 'Code 128'
|
|
12
|
+
};
|
|
13
|
+
export const STYLE_NAMES = {
|
|
14
|
+
boardingPass: 'DUMB.WALLET_PASS_PREVIEW.STYLE_BOARDING',
|
|
15
|
+
coupon: 'DUMB.WALLET_PASS_PREVIEW.STYLE_COUPON',
|
|
16
|
+
eventTicket: 'DUMB.WALLET_PASS_PREVIEW.STYLE_EVENT',
|
|
17
|
+
storeCard: 'DUMB.WALLET_PASS_PREVIEW.STYLE_STORE',
|
|
18
|
+
generic: 'DUMB.WALLET_PASS_PREVIEW.STYLE_GENERIC'
|
|
19
|
+
};
|
|
20
|
+
// PassKit uses the PKDateStyle* enum for both dateStyle and timeStyle.
|
|
21
|
+
export const DATE_STYLE_MAP = {
|
|
22
|
+
PKDateStyleShort: 'short',
|
|
23
|
+
PKDateStyleMedium: 'medium',
|
|
24
|
+
PKDateStyleLong: 'long',
|
|
25
|
+
PKDateStyleFull: 'full'
|
|
26
|
+
};
|
|
27
|
+
export const BACK_FIELDS_SHOWN = 3;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { DATE_STYLE_MAP } from '../constants';
|
|
2
|
+
// Apple renders dates/numbers on-device in the user's locale and timezone. This
|
|
3
|
+
// is a best-effort preview using the browser's locale — it conveys the chosen
|
|
4
|
+
// style, but won't be byte-identical to a real device.
|
|
5
|
+
function formatDate(field) {
|
|
6
|
+
const dateStyle = field.dateStyle ? DATE_STYLE_MAP[field.dateStyle] : undefined;
|
|
7
|
+
const timeStyle = field.timeStyle ? DATE_STYLE_MAP[field.timeStyle] : undefined;
|
|
8
|
+
if (!dateStyle && !timeStyle) {
|
|
9
|
+
return null;
|
|
10
|
+
}
|
|
11
|
+
const date = new Date(field.value);
|
|
12
|
+
if (Number.isNaN(date.getTime())) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
return new Intl.DateTimeFormat(undefined, {
|
|
16
|
+
dateStyle,
|
|
17
|
+
timeStyle
|
|
18
|
+
}).format(date);
|
|
19
|
+
}
|
|
20
|
+
function formatNumber(field) {
|
|
21
|
+
if (!field.numberStyle && !field.currencyCode) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
const num = typeof field.value === 'number' ? field.value : Number(field.value);
|
|
25
|
+
if (Number.isNaN(num)) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
if (field.currencyCode) {
|
|
29
|
+
try {
|
|
30
|
+
return new Intl.NumberFormat(undefined, {
|
|
31
|
+
style: 'currency',
|
|
32
|
+
currency: field.currencyCode
|
|
33
|
+
}).format(num);
|
|
34
|
+
} catch {
|
|
35
|
+
// Invalid/incomplete ISO 4217 code while typing — fall through to plain.
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (field.numberStyle === 'PKNumberStylePercent') {
|
|
40
|
+
return new Intl.NumberFormat(undefined, {
|
|
41
|
+
style: 'percent'
|
|
42
|
+
}).format(num);
|
|
43
|
+
}
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
// Render a field's value the way PassKit roughly would, given its style props.
|
|
47
|
+
// Falls back to the raw value when nothing applies or the value can't be parsed,
|
|
48
|
+
// so plain-text fields and half-typed values are left untouched.
|
|
49
|
+
export function formatFieldValue(field) {
|
|
50
|
+
const formatted = formatDate(field) ?? formatNumber(field);
|
|
51
|
+
return formatted ?? String(field.value ?? '');
|
|
52
|
+
}
|
|
53
|
+
export function parseRgbColor(rgb) {
|
|
54
|
+
if (!rgb) {
|
|
55
|
+
return '#000000';
|
|
56
|
+
}
|
|
57
|
+
const match = rgb.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
|
|
58
|
+
if (match) {
|
|
59
|
+
const [, r, g, b] = match;
|
|
60
|
+
return `rgb(${r}, ${g}, ${b})`;
|
|
61
|
+
}
|
|
62
|
+
return rgb;
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './formatting';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './formatting';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { WalletPassPreview } from './WalletPassPreview';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { messages as ar } from './messages_ar';
|
|
2
|
+
import { messages as bn } from './messages_bn';
|
|
3
|
+
import { messages as de } from './messages_de';
|
|
4
|
+
import { messages as en } from './messages_en';
|
|
5
|
+
import { messages as es } from './messages_es';
|
|
6
|
+
import { messages as fr } from './messages_fr';
|
|
7
|
+
import { messages as he } from './messages_he';
|
|
8
|
+
import { messages as hi } from './messages_hi';
|
|
9
|
+
import { messages as ja } from './messages_ja';
|
|
10
|
+
import { messages as ko } from './messages_ko';
|
|
11
|
+
import { messages as pt } from './messages_pt';
|
|
12
|
+
import { messages as ru } from './messages_ru';
|
|
13
|
+
import { messages as th } from './messages_th';
|
|
14
|
+
import { messages as zh } from './messages_zh';
|
|
15
|
+
import { createLang } from '../../polyglot';
|
|
16
|
+
export const {
|
|
17
|
+
Lang,
|
|
18
|
+
useLang
|
|
19
|
+
} = createLang({
|
|
20
|
+
ar,
|
|
21
|
+
bn,
|
|
22
|
+
de,
|
|
23
|
+
en,
|
|
24
|
+
es,
|
|
25
|
+
fr,
|
|
26
|
+
he,
|
|
27
|
+
hi,
|
|
28
|
+
ja,
|
|
29
|
+
ko,
|
|
30
|
+
pt,
|
|
31
|
+
ru,
|
|
32
|
+
th,
|
|
33
|
+
zh
|
|
34
|
+
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const messages = {
|
|
2
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_AIR': 'جوي',
|
|
3
|
+
'DUMB.WALLET_PASS_PREVIEW.BARCODE_QR': 'رمز الاستجابة السريعة',
|
|
4
|
+
'DUMB.WALLET_PASS_PREVIEW.QR_PREVIEW': 'معاينة رمز الاستجابة السريعة',
|
|
5
|
+
'DUMB.WALLET_PASS_PREVIEW.PDF417_PREVIEW': 'معاينة PDF417',
|
|
6
|
+
'DUMB.WALLET_PASS_PREVIEW.AZTEC_PREVIEW': 'معاينة Aztec',
|
|
7
|
+
'DUMB.WALLET_PASS_PREVIEW.CODE128_PREVIEW': 'معاينة Code 128',
|
|
8
|
+
'DUMB.WALLET_PASS_PREVIEW.STATUS_SECTION': 'الحالة والصلة',
|
|
9
|
+
'DUMB.WALLET_PASS_PREVIEW.SERIAL': 'الرقم التسلسلي:',
|
|
10
|
+
'DUMB.WALLET_PASS_PREVIEW.VOIDED': 'ملغاة — هذه البطاقة غير صالحة',
|
|
11
|
+
'DUMB.WALLET_PASS_PREVIEW.EXPIRES': 'تنتهي الصلاحية: {{date}}',
|
|
12
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCK_SCREEN': 'يظهر على شاشة القفل: {{date}}',
|
|
13
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCATIONS': 'المواقع المُعدّة: {{count}}',
|
|
14
|
+
'DUMB.WALLET_PASS_PREVIEW.MAX_DISTANCE': 'الحد الأقصى للمسافة: {{distance}} م',
|
|
15
|
+
'DUMB.WALLET_PASS_PREVIEW.BACK_FIELDS': 'الجانب الخلفي للبطاقة ({{count}} حقول)',
|
|
16
|
+
'DUMB.WALLET_PASS_PREVIEW.MORE': '+{{count}} أخرى...',
|
|
17
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_SIMPLIFIED': 'هذه معاينة مبسطة. قد تبدو البطاقة الفعلية مختلفة على الجهاز.',
|
|
18
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_LABEL': 'ملاحظة:',
|
|
19
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_BARCODES': 'الرموز الشريطية المعروضة مؤقتة — سيتم إنشاء الرموز الحقيقية في ملف .pkpass.',
|
|
20
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_BOARDING': 'بطاقة صعود الطائرة',
|
|
21
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_COUPON': 'قسيمة',
|
|
22
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_EVENT': 'تذكرة فعالية',
|
|
23
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_STORE': 'بطاقة متجر',
|
|
24
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_GENERIC': 'عام',
|
|
25
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_TRAIN': 'قطار',
|
|
26
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BUS': 'حافلة',
|
|
27
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BOAT': 'قارب',
|
|
28
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_GENERIC': 'عام',
|
|
29
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_LOGO': 'الشعار',
|
|
30
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_STRIP': 'الشريط',
|
|
31
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_BACKGROUND': 'الخلفية',
|
|
32
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_THUMBNAIL': 'الصورة المصغرة',
|
|
33
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_FOOTER': 'التذييل'
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const messages = {
|
|
2
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_AIR': 'আকাশপথ',
|
|
3
|
+
'DUMB.WALLET_PASS_PREVIEW.BARCODE_QR': 'QR কোড',
|
|
4
|
+
'DUMB.WALLET_PASS_PREVIEW.QR_PREVIEW': 'QR কোডের প্রিভিউ',
|
|
5
|
+
'DUMB.WALLET_PASS_PREVIEW.PDF417_PREVIEW': 'PDF417-এর প্রিভিউ',
|
|
6
|
+
'DUMB.WALLET_PASS_PREVIEW.AZTEC_PREVIEW': 'Aztec-এর প্রিভিউ',
|
|
7
|
+
'DUMB.WALLET_PASS_PREVIEW.CODE128_PREVIEW': 'Code 128-এর প্রিভিউ',
|
|
8
|
+
'DUMB.WALLET_PASS_PREVIEW.STATUS_SECTION': 'স্ট্যাটাস ও প্রাসঙ্গিকতা',
|
|
9
|
+
'DUMB.WALLET_PASS_PREVIEW.SERIAL': 'সিরিয়াল:',
|
|
10
|
+
'DUMB.WALLET_PASS_PREVIEW.VOIDED': 'বাতিল — এই পাসটি অকার্যকর করা হয়েছে',
|
|
11
|
+
'DUMB.WALLET_PASS_PREVIEW.EXPIRES': 'মেয়াদ শেষ: {{date}}',
|
|
12
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCK_SCREEN': 'লক স্ক্রিনে দেখাবে: {{date}}',
|
|
13
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCATIONS': '{{count}}টি স্থান কনফিগার করা হয়েছে',
|
|
14
|
+
'DUMB.WALLET_PASS_PREVIEW.MAX_DISTANCE': 'সর্বোচ্চ দূরত্ব: {{distance}} মি',
|
|
15
|
+
'DUMB.WALLET_PASS_PREVIEW.BACK_FIELDS': 'পাসের উল্টো দিক ({{count}}টি ফিল্ড)',
|
|
16
|
+
'DUMB.WALLET_PASS_PREVIEW.MORE': 'আরও {{count}}টি...',
|
|
17
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_SIMPLIFIED': 'এটি একটি সরলীকৃত প্রিভিউ। ডিভাইসে আসল পাসটি ভিন্ন দেখাতে পারে।',
|
|
18
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_LABEL': 'দ্রষ্টব্য:',
|
|
19
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_BARCODES': 'দেখানো বারকোডগুলো প্লেসহোল্ডার — আসল বারকোড .pkpass ফাইলে তৈরি হবে।',
|
|
20
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_BOARDING': 'বোর্ডিং পাস',
|
|
21
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_COUPON': 'কুপন',
|
|
22
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_EVENT': 'ইভেন্ট টিকিট',
|
|
23
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_STORE': 'স্টোর কার্ড',
|
|
24
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_GENERIC': 'সাধারণ',
|
|
25
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_TRAIN': 'ট্রেন',
|
|
26
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BUS': 'বাস',
|
|
27
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BOAT': 'নৌকা',
|
|
28
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_GENERIC': 'সাধারণ',
|
|
29
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_LOGO': 'লোগো',
|
|
30
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_STRIP': 'স্ট্রিপ',
|
|
31
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_BACKGROUND': 'ব্যাকগ্রাউন্ড',
|
|
32
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_THUMBNAIL': 'থাম্বনেইল',
|
|
33
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_FOOTER': 'ফুটার'
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const messages = {
|
|
2
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_AIR': 'Flug',
|
|
3
|
+
'DUMB.WALLET_PASS_PREVIEW.BARCODE_QR': 'QR-Code',
|
|
4
|
+
'DUMB.WALLET_PASS_PREVIEW.QR_PREVIEW': 'QR-Code-Vorschau',
|
|
5
|
+
'DUMB.WALLET_PASS_PREVIEW.PDF417_PREVIEW': 'PDF417-Vorschau',
|
|
6
|
+
'DUMB.WALLET_PASS_PREVIEW.AZTEC_PREVIEW': 'Aztec-Vorschau',
|
|
7
|
+
'DUMB.WALLET_PASS_PREVIEW.CODE128_PREVIEW': 'Code-128-Vorschau',
|
|
8
|
+
'DUMB.WALLET_PASS_PREVIEW.STATUS_SECTION': 'Status & Relevanz',
|
|
9
|
+
'DUMB.WALLET_PASS_PREVIEW.SERIAL': 'Seriennummer:',
|
|
10
|
+
'DUMB.WALLET_PASS_PREVIEW.VOIDED': 'ENTWERTET — Dieser Pass ist ungültig',
|
|
11
|
+
'DUMB.WALLET_PASS_PREVIEW.EXPIRES': 'Läuft ab: {{date}}',
|
|
12
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCK_SCREEN': 'Auf dem Sperrbildschirm: {{date}}',
|
|
13
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCATIONS': '{{count}} {% if count==1 %}Standort{% else %}Standorte{% endif %} konfiguriert',
|
|
14
|
+
'DUMB.WALLET_PASS_PREVIEW.MAX_DISTANCE': 'Max. Entfernung: {{distance}} m',
|
|
15
|
+
'DUMB.WALLET_PASS_PREVIEW.BACK_FIELDS': 'Rückseite des Passes ({{count}} Felder)',
|
|
16
|
+
'DUMB.WALLET_PASS_PREVIEW.MORE': '+{{count}} weitere...',
|
|
17
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_SIMPLIFIED': 'Dies ist eine vereinfachte Vorschau. Der tatsächliche Pass kann auf dem Gerät anders aussehen.',
|
|
18
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_LABEL': 'Hinweis:',
|
|
19
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_BARCODES': 'Die angezeigten Barcodes sind Platzhalter — echte Barcodes werden in der .pkpass-Datei erzeugt.',
|
|
20
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_BOARDING': 'Bordkarte',
|
|
21
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_COUPON': 'Coupon',
|
|
22
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_EVENT': 'Eintrittskarte',
|
|
23
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_STORE': 'Kundenkarte',
|
|
24
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_GENERIC': 'Allgemein',
|
|
25
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_TRAIN': 'Zug',
|
|
26
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BUS': 'Bus',
|
|
27
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BOAT': 'Boot',
|
|
28
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_GENERIC': 'Allgemein',
|
|
29
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_LOGO': 'Logo',
|
|
30
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_STRIP': 'Streifen',
|
|
31
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_BACKGROUND': 'Hintergrund',
|
|
32
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_THUMBNAIL': 'Miniaturbild',
|
|
33
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_FOOTER': 'Fußzeile'
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const messages = {
|
|
2
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_AIR': 'Air',
|
|
3
|
+
'DUMB.WALLET_PASS_PREVIEW.BARCODE_QR': 'QR Code',
|
|
4
|
+
'DUMB.WALLET_PASS_PREVIEW.QR_PREVIEW': 'QR Code Preview',
|
|
5
|
+
'DUMB.WALLET_PASS_PREVIEW.PDF417_PREVIEW': 'PDF417 Preview',
|
|
6
|
+
'DUMB.WALLET_PASS_PREVIEW.AZTEC_PREVIEW': 'Aztec Preview',
|
|
7
|
+
'DUMB.WALLET_PASS_PREVIEW.CODE128_PREVIEW': 'Code 128 Preview',
|
|
8
|
+
'DUMB.WALLET_PASS_PREVIEW.STATUS_SECTION': 'Status & Relevance',
|
|
9
|
+
'DUMB.WALLET_PASS_PREVIEW.SERIAL': 'Serial:',
|
|
10
|
+
'DUMB.WALLET_PASS_PREVIEW.VOIDED': 'VOIDED — This pass has been invalidated',
|
|
11
|
+
'DUMB.WALLET_PASS_PREVIEW.EXPIRES': 'Expires: {{date}}',
|
|
12
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCK_SCREEN': 'Shows on lock screen: {{date}}',
|
|
13
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCATIONS': '{{count}} {% if count==1 %}location{% else %}locations{% endif %} configured',
|
|
14
|
+
'DUMB.WALLET_PASS_PREVIEW.MAX_DISTANCE': 'Max distance: {{distance}}m',
|
|
15
|
+
'DUMB.WALLET_PASS_PREVIEW.BACK_FIELDS': 'Back of Pass ({{count}} fields)',
|
|
16
|
+
'DUMB.WALLET_PASS_PREVIEW.MORE': '+{{count}} more...',
|
|
17
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_SIMPLIFIED': 'This is a simplified preview. Actual pass may look different on device.',
|
|
18
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_LABEL': 'Note:',
|
|
19
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_BARCODES': 'Barcodes shown are placeholders — real barcodes will be generated in the .pkpass file.',
|
|
20
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_BOARDING': 'Boarding Pass',
|
|
21
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_COUPON': 'Coupon',
|
|
22
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_EVENT': 'Event Ticket',
|
|
23
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_STORE': 'Store Card',
|
|
24
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_GENERIC': 'Generic',
|
|
25
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_TRAIN': 'Train',
|
|
26
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BUS': 'Bus',
|
|
27
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BOAT': 'Boat',
|
|
28
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_GENERIC': 'Generic',
|
|
29
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_LOGO': 'Logo',
|
|
30
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_STRIP': 'Strip',
|
|
31
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_BACKGROUND': 'Background',
|
|
32
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_THUMBNAIL': 'Thumbnail',
|
|
33
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_FOOTER': 'Footer'
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const messages = {
|
|
2
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_AIR': 'Aéreo',
|
|
3
|
+
'DUMB.WALLET_PASS_PREVIEW.BARCODE_QR': 'Código QR',
|
|
4
|
+
'DUMB.WALLET_PASS_PREVIEW.QR_PREVIEW': 'Vista previa del código QR',
|
|
5
|
+
'DUMB.WALLET_PASS_PREVIEW.PDF417_PREVIEW': 'Vista previa de PDF417',
|
|
6
|
+
'DUMB.WALLET_PASS_PREVIEW.AZTEC_PREVIEW': 'Vista previa de Aztec',
|
|
7
|
+
'DUMB.WALLET_PASS_PREVIEW.CODE128_PREVIEW': 'Vista previa de Code 128',
|
|
8
|
+
'DUMB.WALLET_PASS_PREVIEW.STATUS_SECTION': 'Estado y relevancia',
|
|
9
|
+
'DUMB.WALLET_PASS_PREVIEW.SERIAL': 'Serie:',
|
|
10
|
+
'DUMB.WALLET_PASS_PREVIEW.VOIDED': 'ANULADO — Este pase no es válido',
|
|
11
|
+
'DUMB.WALLET_PASS_PREVIEW.EXPIRES': 'Vence: {{date}}',
|
|
12
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCK_SCREEN': 'Se muestra en la pantalla de bloqueo: {{date}}',
|
|
13
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCATIONS': '{{count}} {% if count==1 %}ubicación configurada{% else %}ubicaciones configuradas{% endif %}',
|
|
14
|
+
'DUMB.WALLET_PASS_PREVIEW.MAX_DISTANCE': 'Distancia máxima: {{distance}} m',
|
|
15
|
+
'DUMB.WALLET_PASS_PREVIEW.BACK_FIELDS': 'Reverso del pase ({{count}} campos)',
|
|
16
|
+
'DUMB.WALLET_PASS_PREVIEW.MORE': '+{{count}} más...',
|
|
17
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_SIMPLIFIED': 'Esta es una vista previa simplificada. El pase real puede verse diferente en el dispositivo.',
|
|
18
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_LABEL': 'Nota:',
|
|
19
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_BARCODES': 'Los códigos de barras mostrados son marcadores de posición: los reales se generarán en el archivo .pkpass.',
|
|
20
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_BOARDING': 'Tarjeta de embarque',
|
|
21
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_COUPON': 'Cupón',
|
|
22
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_EVENT': 'Entrada para evento',
|
|
23
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_STORE': 'Tarjeta de tienda',
|
|
24
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_GENERIC': 'Genérico',
|
|
25
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_TRAIN': 'Tren',
|
|
26
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BUS': 'Autobús',
|
|
27
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BOAT': 'Barco',
|
|
28
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_GENERIC': 'Genérico',
|
|
29
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_LOGO': 'Logo',
|
|
30
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_STRIP': 'Franja',
|
|
31
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_BACKGROUND': 'Fondo',
|
|
32
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_THUMBNAIL': 'Miniatura',
|
|
33
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_FOOTER': 'Pie'
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const messages = {
|
|
2
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_AIR': 'Aérien',
|
|
3
|
+
'DUMB.WALLET_PASS_PREVIEW.BARCODE_QR': 'Code QR',
|
|
4
|
+
'DUMB.WALLET_PASS_PREVIEW.QR_PREVIEW': 'Aperçu du code QR',
|
|
5
|
+
'DUMB.WALLET_PASS_PREVIEW.PDF417_PREVIEW': 'Aperçu PDF417',
|
|
6
|
+
'DUMB.WALLET_PASS_PREVIEW.AZTEC_PREVIEW': 'Aperçu Aztec',
|
|
7
|
+
'DUMB.WALLET_PASS_PREVIEW.CODE128_PREVIEW': 'Aperçu Code 128',
|
|
8
|
+
'DUMB.WALLET_PASS_PREVIEW.STATUS_SECTION': 'Statut & Pertinence',
|
|
9
|
+
'DUMB.WALLET_PASS_PREVIEW.SERIAL': 'Numéro de série :',
|
|
10
|
+
'DUMB.WALLET_PASS_PREVIEW.VOIDED': 'ANNULÉ — Ce pass est invalidé',
|
|
11
|
+
'DUMB.WALLET_PASS_PREVIEW.EXPIRES': 'Expire le : {{date}}',
|
|
12
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCK_SCREEN': 'Affiché sur l\'écran de verrouillage : {{date}}',
|
|
13
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCATIONS': '{{count}} {% if count==1 %}lieu configuré{% else %}lieux configurés{% endif %}',
|
|
14
|
+
'DUMB.WALLET_PASS_PREVIEW.MAX_DISTANCE': 'Distance max. : {{distance}} m',
|
|
15
|
+
'DUMB.WALLET_PASS_PREVIEW.BACK_FIELDS': 'Dos du pass ({{count}} champs)',
|
|
16
|
+
'DUMB.WALLET_PASS_PREVIEW.MORE': '+{{count}} de plus...',
|
|
17
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_SIMPLIFIED': 'Ceci est un aperçu simplifié. Le pass réel peut s\'afficher différemment sur l\'appareil.',
|
|
18
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_LABEL': 'Remarque :',
|
|
19
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_BARCODES': 'Les codes-barres affichés sont des espaces réservés — les vrais codes-barres seront générés dans le fichier .pkpass.',
|
|
20
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_BOARDING': 'Carte d\'embarquement',
|
|
21
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_COUPON': 'Coupon',
|
|
22
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_EVENT': 'Billet d\'événement',
|
|
23
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_STORE': 'Carte de fidélité',
|
|
24
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_GENERIC': 'Générique',
|
|
25
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_TRAIN': 'Train',
|
|
26
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BUS': 'Bus',
|
|
27
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BOAT': 'Bateau',
|
|
28
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_GENERIC': 'Générique',
|
|
29
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_LOGO': 'Logo',
|
|
30
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_STRIP': 'Bandeau',
|
|
31
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_BACKGROUND': 'Arrière-plan',
|
|
32
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_THUMBNAIL': 'Vignette',
|
|
33
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_FOOTER': 'Pied'
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const messages = {
|
|
2
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_AIR': 'טיסה',
|
|
3
|
+
'DUMB.WALLET_PASS_PREVIEW.BARCODE_QR': 'קוד QR',
|
|
4
|
+
'DUMB.WALLET_PASS_PREVIEW.QR_PREVIEW': 'תצוגה מקדימה של קוד QR',
|
|
5
|
+
'DUMB.WALLET_PASS_PREVIEW.PDF417_PREVIEW': 'תצוגה מקדימה של PDF417',
|
|
6
|
+
'DUMB.WALLET_PASS_PREVIEW.AZTEC_PREVIEW': 'תצוגה מקדימה של Aztec',
|
|
7
|
+
'DUMB.WALLET_PASS_PREVIEW.CODE128_PREVIEW': 'תצוגה מקדימה של Code 128',
|
|
8
|
+
'DUMB.WALLET_PASS_PREVIEW.STATUS_SECTION': 'סטטוס ורלוונטיות',
|
|
9
|
+
'DUMB.WALLET_PASS_PREVIEW.SERIAL': 'מספר סידורי:',
|
|
10
|
+
'DUMB.WALLET_PASS_PREVIEW.VOIDED': 'מבוטל — כרטיס זה אינו תקף',
|
|
11
|
+
'DUMB.WALLET_PASS_PREVIEW.EXPIRES': 'תוקף עד: {{date}}',
|
|
12
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCK_SCREEN': 'מוצג על מסך הנעילה: {{date}}',
|
|
13
|
+
'DUMB.WALLET_PASS_PREVIEW.LOCATIONS': 'מיקומים מוגדרים: {{count}}',
|
|
14
|
+
'DUMB.WALLET_PASS_PREVIEW.MAX_DISTANCE': 'מרחק מקסימלי: {{distance}} מ\'',
|
|
15
|
+
'DUMB.WALLET_PASS_PREVIEW.BACK_FIELDS': 'גב הכרטיס ({{count}} שדות)',
|
|
16
|
+
'DUMB.WALLET_PASS_PREVIEW.MORE': '+{{count}} נוספים...',
|
|
17
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_SIMPLIFIED': 'זוהי תצוגה מקדימה מפושטת. הכרטיס בפועל עשוי להיראות אחרת במכשיר.',
|
|
18
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_LABEL': 'הערה:',
|
|
19
|
+
'DUMB.WALLET_PASS_PREVIEW.NOTE_BARCODES': 'הברקודים המוצגים הם מצייני מיקום — הברקודים האמיתיים ייווצרו בקובץ .pkpass.',
|
|
20
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_BOARDING': 'כרטיס עלייה למטוס',
|
|
21
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_COUPON': 'קופון',
|
|
22
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_EVENT': 'כרטיס לאירוע',
|
|
23
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_STORE': 'כרטיס מועדון',
|
|
24
|
+
'DUMB.WALLET_PASS_PREVIEW.STYLE_GENERIC': 'כללי',
|
|
25
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_TRAIN': 'רכבת',
|
|
26
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BUS': 'אוטובוס',
|
|
27
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_BOAT': 'כלי שיט',
|
|
28
|
+
'DUMB.WALLET_PASS_PREVIEW.TRANSIT_GENERIC': 'כללי',
|
|
29
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_LOGO': 'לוגו',
|
|
30
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_STRIP': 'רצועה',
|
|
31
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_BACKGROUND': 'רקע',
|
|
32
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_THUMBNAIL': 'תמונה ממוזערת',
|
|
33
|
+
'DUMB.WALLET_PASS_PREVIEW.IMAGE_FOOTER': 'כותרת תחתונה'
|
|
34
|
+
};
|