@moshevents/copy 0.9.5 → 0.9.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/lib/copy.d.ts +12 -0
- package/lib/copy.js +17 -0
- package/package.json +1 -1
package/lib/copy.d.ts
CHANGED
|
@@ -182,6 +182,9 @@ export declare const copy: {
|
|
|
182
182
|
};
|
|
183
183
|
readonly attendeesPage: {
|
|
184
184
|
readonly title: "Attendees";
|
|
185
|
+
readonly titleWithCount: (p: {
|
|
186
|
+
count: string | number;
|
|
187
|
+
}) => string;
|
|
185
188
|
readonly wentSummary: (p: {
|
|
186
189
|
count: string | number;
|
|
187
190
|
}) => string;
|
|
@@ -858,6 +861,15 @@ export declare const copy: {
|
|
|
858
861
|
readonly events: "events";
|
|
859
862
|
readonly followers: "followers";
|
|
860
863
|
readonly following: "following";
|
|
864
|
+
readonly eventsCount: (p: {
|
|
865
|
+
count: number;
|
|
866
|
+
}) => string;
|
|
867
|
+
readonly followersCount: (p: {
|
|
868
|
+
count: number;
|
|
869
|
+
}) => string;
|
|
870
|
+
readonly followingCount: (p: {
|
|
871
|
+
count: number;
|
|
872
|
+
}) => string;
|
|
861
873
|
readonly yourConnections: "Your connections";
|
|
862
874
|
readonly followedByNames: (p: {
|
|
863
875
|
names: string | number;
|
package/lib/copy.js
CHANGED
|
@@ -166,6 +166,7 @@ export const copy = {
|
|
|
166
166
|
},
|
|
167
167
|
attendeesPage: {
|
|
168
168
|
title: "Attendees",
|
|
169
|
+
titleWithCount: (p) => `Attendees (${p.count})`,
|
|
169
170
|
wentSummary: (p) => `${p.count} went`,
|
|
170
171
|
goingSummary: (p) => `${p.count} going`,
|
|
171
172
|
statusCheckedIn: "Checked in",
|
|
@@ -776,6 +777,22 @@ export const copy = {
|
|
|
776
777
|
events: "events",
|
|
777
778
|
followers: "followers",
|
|
778
779
|
following: "following",
|
|
780
|
+
eventsCount: (p) => {
|
|
781
|
+
const n = Number(p.count);
|
|
782
|
+
if (n === 1)
|
|
783
|
+
return `${p.count} event`;
|
|
784
|
+
return `${p.count} events`;
|
|
785
|
+
},
|
|
786
|
+
followersCount: (p) => {
|
|
787
|
+
const n = Number(p.count);
|
|
788
|
+
if (n === 1)
|
|
789
|
+
return `${p.count} follower`;
|
|
790
|
+
return `${p.count} followers`;
|
|
791
|
+
},
|
|
792
|
+
followingCount: (p) => {
|
|
793
|
+
const n = Number(p.count);
|
|
794
|
+
return `${p.count} following`;
|
|
795
|
+
},
|
|
779
796
|
yourConnections: "Your connections",
|
|
780
797
|
followedByNames: (p) => `Followed by ${p.names}`,
|
|
781
798
|
followedByOthers: (p) => `Followed by ${p.names} & others`,
|
package/package.json
CHANGED