@moshevents/copy 0.4.0 → 0.5.0
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 +16 -1
- package/lib/copy.js +8 -1
- package/package.json +1 -1
package/lib/copy.d.ts
CHANGED
|
@@ -164,6 +164,21 @@ export declare const copy: {
|
|
|
164
164
|
readonly following: "Following";
|
|
165
165
|
readonly block: "Block";
|
|
166
166
|
readonly unblock: "Unblock";
|
|
167
|
+
readonly relativeTime: {
|
|
168
|
+
readonly today: "today";
|
|
169
|
+
readonly daysAgo: (p: {
|
|
170
|
+
count: string | number;
|
|
171
|
+
}) => string;
|
|
172
|
+
readonly weeksAgo: (p: {
|
|
173
|
+
count: string | number;
|
|
174
|
+
}) => string;
|
|
175
|
+
readonly monthsAgo: (p: {
|
|
176
|
+
count: string | number;
|
|
177
|
+
}) => string;
|
|
178
|
+
readonly yearsAgo: (p: {
|
|
179
|
+
count: string | number;
|
|
180
|
+
}) => string;
|
|
181
|
+
};
|
|
167
182
|
};
|
|
168
183
|
readonly settings: {
|
|
169
184
|
readonly title: "Settings";
|
|
@@ -343,7 +358,7 @@ export declare const copy: {
|
|
|
343
358
|
readonly happeningNow: "Happening now";
|
|
344
359
|
readonly liveNow: "Now";
|
|
345
360
|
readonly createEvent: "+ Create";
|
|
346
|
-
readonly
|
|
361
|
+
readonly guestList: "Guest list";
|
|
347
362
|
readonly going: "going";
|
|
348
363
|
readonly legendGoing: "Going";
|
|
349
364
|
readonly legendCheckedIn: "Checked in";
|
package/lib/copy.js
CHANGED
|
@@ -159,6 +159,13 @@ export const copy = {
|
|
|
159
159
|
following: "Following",
|
|
160
160
|
block: "Block",
|
|
161
161
|
unblock: "Unblock",
|
|
162
|
+
relativeTime: {
|
|
163
|
+
today: "today",
|
|
164
|
+
daysAgo: (p) => `${p.count}d ago`,
|
|
165
|
+
weeksAgo: (p) => `${p.count}w ago`,
|
|
166
|
+
monthsAgo: (p) => `${p.count}mo ago`,
|
|
167
|
+
yearsAgo: (p) => `${p.count}y ago`,
|
|
168
|
+
},
|
|
162
169
|
},
|
|
163
170
|
settings: {
|
|
164
171
|
title: "Settings",
|
|
@@ -324,7 +331,7 @@ export const copy = {
|
|
|
324
331
|
happeningNow: "Happening now",
|
|
325
332
|
liveNow: "Now",
|
|
326
333
|
createEvent: "+ Create",
|
|
327
|
-
|
|
334
|
+
guestList: "Guest list",
|
|
328
335
|
going: "going",
|
|
329
336
|
legendGoing: "Going",
|
|
330
337
|
legendCheckedIn: "Checked in",
|
package/package.json
CHANGED