@moshevents/copy 0.7.0 → 0.7.2
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/lib/copy.d.ts +23 -2
- package/lib/copy.js +37 -2
- package/package.json +1 -1
package/lib/copy.d.ts
CHANGED
|
@@ -72,14 +72,14 @@ export declare const copy: {
|
|
|
72
72
|
readonly onTheList: "You're on the list";
|
|
73
73
|
readonly goingRowSolo: "You're going";
|
|
74
74
|
readonly goingRowOthers: (p: {
|
|
75
|
-
count:
|
|
75
|
+
count: number;
|
|
76
76
|
}) => string;
|
|
77
77
|
readonly goingRowNamedOnly: (p: {
|
|
78
78
|
names: string | number;
|
|
79
79
|
}) => string;
|
|
80
80
|
readonly goingRowNamed: (p: {
|
|
81
|
+
count: number;
|
|
81
82
|
names: string | number;
|
|
82
|
-
count: string | number;
|
|
83
83
|
}) => string;
|
|
84
84
|
readonly goingCount: (p: {
|
|
85
85
|
count: string | number;
|
|
@@ -103,6 +103,27 @@ export declare const copy: {
|
|
|
103
103
|
}) => string;
|
|
104
104
|
readonly manage: "Manage";
|
|
105
105
|
readonly guestList: "Guest list";
|
|
106
|
+
readonly myList: "My list";
|
|
107
|
+
};
|
|
108
|
+
readonly guestsPage: {
|
|
109
|
+
readonly title: "Guest list";
|
|
110
|
+
readonly countSummary: (p: {
|
|
111
|
+
count: number;
|
|
112
|
+
}) => string;
|
|
113
|
+
readonly checkedInSummary: (p: {
|
|
114
|
+
count: string | number;
|
|
115
|
+
}) => string;
|
|
116
|
+
readonly statusCheckedIn: "Checked in";
|
|
117
|
+
readonly statusOnList: "On the list";
|
|
118
|
+
readonly guestOf: (p: {
|
|
119
|
+
name: string | number;
|
|
120
|
+
}) => string;
|
|
121
|
+
readonly hostSpots: (p: {
|
|
122
|
+
count: number;
|
|
123
|
+
}) => string;
|
|
124
|
+
readonly emptyTitle: "No one on the list yet";
|
|
125
|
+
readonly emptySub: "Guests appear here once they're added or claim a spot.";
|
|
126
|
+
readonly noAccess: "You don't have access to this guest list.";
|
|
106
127
|
};
|
|
107
128
|
readonly ticketsManage: {
|
|
108
129
|
readonly title: "Tickets";
|
package/lib/copy.js
CHANGED
|
@@ -65,9 +65,19 @@ export const copy = {
|
|
|
65
65
|
goingCheck: "Going ✓",
|
|
66
66
|
onTheList: "You're on the list",
|
|
67
67
|
goingRowSolo: "You're going",
|
|
68
|
-
goingRowOthers: (p) =>
|
|
68
|
+
goingRowOthers: (p) => {
|
|
69
|
+
const n = Number(p.count);
|
|
70
|
+
if (n === 1)
|
|
71
|
+
return `You and ${p.count} other are going`;
|
|
72
|
+
return `You and ${p.count} others are going`;
|
|
73
|
+
},
|
|
69
74
|
goingRowNamedOnly: (p) => `You, ${p.names} are going`,
|
|
70
|
-
goingRowNamed: (p) =>
|
|
75
|
+
goingRowNamed: (p) => {
|
|
76
|
+
const n = Number(p.count);
|
|
77
|
+
if (n === 1)
|
|
78
|
+
return `You, ${p.names} and ${p.count} friend are going`;
|
|
79
|
+
return `You, ${p.names} and ${p.count} friends are going`;
|
|
80
|
+
},
|
|
71
81
|
goingCount: (p) => `${p.count} going`,
|
|
72
82
|
wentCount: (p) => `${p.count} went`,
|
|
73
83
|
invite: "+ Invite",
|
|
@@ -84,6 +94,31 @@ export const copy = {
|
|
|
84
94
|
isGoingSystem: (p) => `${p.name} is going`,
|
|
85
95
|
manage: "Manage",
|
|
86
96
|
guestList: "Guest list",
|
|
97
|
+
myList: "My list",
|
|
98
|
+
},
|
|
99
|
+
guestsPage: {
|
|
100
|
+
title: "Guest list",
|
|
101
|
+
countSummary: (p) => {
|
|
102
|
+
const n = Number(p.count);
|
|
103
|
+
if (n === 0)
|
|
104
|
+
return `Nobody on the list yet`;
|
|
105
|
+
if (n === 1)
|
|
106
|
+
return `${p.count} on the list`;
|
|
107
|
+
return `${p.count} on the list`;
|
|
108
|
+
},
|
|
109
|
+
checkedInSummary: (p) => `${p.count} checked in`,
|
|
110
|
+
statusCheckedIn: "Checked in",
|
|
111
|
+
statusOnList: "On the list",
|
|
112
|
+
guestOf: (p) => `Guest of ${p.name}`,
|
|
113
|
+
hostSpots: (p) => {
|
|
114
|
+
const n = Number(p.count);
|
|
115
|
+
if (n === 1)
|
|
116
|
+
return `Host · ${p.count} spot`;
|
|
117
|
+
return `Host · ${p.count} spots`;
|
|
118
|
+
},
|
|
119
|
+
emptyTitle: "No one on the list yet",
|
|
120
|
+
emptySub: "Guests appear here once they're added or claim a spot.",
|
|
121
|
+
noAccess: "You don't have access to this guest list.",
|
|
87
122
|
},
|
|
88
123
|
ticketsManage: {
|
|
89
124
|
title: "Tickets",
|
package/package.json
CHANGED