@jsb188/app 1.1.5 → 1.1.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.
Files changed (53) hide show
  1. package/package.json +31 -30
  2. package/src/constants/app.ts +367 -0
  3. package/src/constants/other.ts +17 -0
  4. package/src/constants/storage.ts +4 -0
  5. package/src/constants/wsActions.ts +21 -0
  6. package/{i18n → src/i18n}/account.ts +19 -6
  7. package/src/i18n/ai_agent.ts +88 -0
  8. package/{i18n → src/i18n}/app.ts +4 -18
  9. package/{i18n → src/i18n}/auth.ts +18 -8
  10. package/{i18n → src/i18n}/billing.ts +2 -2
  11. package/src/i18n/country.ts +249 -0
  12. package/src/i18n/datetime.ts +60 -0
  13. package/{i18n → src/i18n}/error.ts +18 -7
  14. package/src/i18n/form.ts +295 -0
  15. package/src/i18n/index.ts +35 -0
  16. package/src/i18n/log.ts +484 -0
  17. package/src/i18n/message.ts +11 -0
  18. package/src/i18n/org.ts +165 -0
  19. package/src/i18n/product.ts +75 -0
  20. package/{main.ts → src/main.ts} +20 -29
  21. package/{types → src/types}/account.d.ts +9 -8
  22. package/src/types/app.d.ts +74 -0
  23. package/{types → src/types}/auth.d.ts +1 -2
  24. package/{types → src/types}/form.d.ts +1 -1
  25. package/src/types/other.d.ts +44 -0
  26. package/src/types/storage.d.ts +70 -0
  27. package/{utils/user.ts → src/utils/account.ts} +7 -84
  28. package/{utils → src/utils}/api.ts +4 -4
  29. package/{utils → src/utils}/billing.ts +1 -1
  30. package/{utils → src/utils}/datetime.ts +295 -33
  31. package/{utils → src/utils}/logic.ts +42 -5
  32. package/{utils → src/utils}/number.ts +89 -16
  33. package/{utils → src/utils}/object.ts +164 -11
  34. package/{utils → src/utils}/string.ts +165 -34
  35. package/{utils → src/utils}/timeZone.ts +168 -13
  36. package/{utils → src/utils}/url_client.ts +1 -1
  37. package/tsconfig.json +13 -0
  38. package/constants/app.ts +0 -80
  39. package/constants/organization.ts +0 -12
  40. package/constants/ws.ts +0 -47
  41. package/i18n/datetime.ts +0 -21
  42. package/i18n/form.ts +0 -115
  43. package/i18n/index.ts +0 -5
  44. package/types/app.d.ts +0 -49
  45. package/types/organization.d.ts +0 -94
  46. package/utils/organization.ts +0 -102
  47. /package/{constants → src/constants}/billing.ts +0 -0
  48. /package/{constants → src/constants}/emoji.ts +0 -0
  49. /package/{constants → src/constants}/user.ts +0 -0
  50. /package/{platform.ts → src/platform.ts} +0 -0
  51. /package/{types → src/types}/ai.d.ts +0 -0
  52. /package/{types.d.ts → src/types.d.ts} +0 -0
  53. /package/{utils → src/utils}/emoji.ts +0 -0
package/package.json CHANGED
@@ -1,40 +1,41 @@
1
1
  {
2
2
  "name": "@jsb188/app",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Contains all the basic requirements for all @jsb188 apps.",
5
5
  "license": "ISC",
6
6
  "author": "jsb188",
7
7
  "type": "module",
8
- "main": "main.ts",
9
- "types": "types.d.ts",
8
+ "main": "src/main.ts",
9
+ "types": "src/types.d.ts",
10
10
  "exports": {
11
- ".": "./main.ts",
12
- "./platform": "./platform.ts",
13
- "./i18n": "./i18n/index.ts",
14
- "./constants/app": "./constants/app.ts",
15
- "./constants/billing": "./constants/billing.ts",
16
- "./constants/emoji": "./constants/emoji.ts",
17
- "./constants/organization": "./constants/organization.ts",
18
- "./constants/user": "./constants/user.ts",
19
- "./constants/ws": "./constants/ws.ts",
20
- "./utils/api": "./utils/api.ts",
21
- "./utils/billing": "./utils/billing.ts",
22
- "./utils/datetime": "./utils/datetime.ts",
23
- "./utils/emoji": "./utils/emoji.ts",
24
- "./utils/logic": "./utils/logic.ts",
25
- "./utils/number": "./utils/number.ts",
26
- "./utils/object": "./utils/object.ts",
27
- "./utils/organization": "./utils/organization.ts",
28
- "./utils/string": "./utils/string.ts",
29
- "./utils/timeZone": "./utils/timeZone.ts",
30
- "./utils/url_client": "./utils/url_client.ts",
31
- "./utils/user": "./utils/user.ts",
32
- "./types/account.d": "./types/account.d.ts",
33
- "./types/ai.d": "./types/ai.d.ts",
34
- "./types/app.d": "./types/app.d.ts",
35
- "./types/auth.d": "./types/auth.d.ts",
36
- "./types/form.d": "./types/form.d.ts",
37
- "./types/organization.d": "./types/organization.d.ts"
11
+ ".": "./src/main.ts",
12
+ "./platform": "./src/platform.ts",
13
+ "./i18n": "./src/i18n/index.ts",
14
+ "./constants/app": "./src/constants/app.ts",
15
+ "./constants/billing": "./src/constants/billing.ts",
16
+ "./constants/emoji": "./src/constants/emoji.ts",
17
+ "./constants/other": "./src/constants/other.ts",
18
+ "./constants/storage": "./src/constants/storage.ts",
19
+ "./constants/user": "./src/constants/user.ts",
20
+ "./constants/wsActions": "./src/constants/wsActions.ts",
21
+ "./utils/account": "./src/utils/account.ts",
22
+ "./utils/api": "./src/utils/api.ts",
23
+ "./utils/billing": "./src/utils/billing.ts",
24
+ "./utils/datetime": "./src/utils/datetime.ts",
25
+ "./utils/emoji": "./src/utils/emoji.ts",
26
+ "./utils/logic": "./src/utils/logic.ts",
27
+ "./utils/number": "./src/utils/number.ts",
28
+ "./utils/object": "./src/utils/object.ts",
29
+ "./utils/string": "./src/utils/string.ts",
30
+ "./utils/timeZone": "./src/utils/timeZone.ts",
31
+ "./utils/url_client": "./src/utils/url_client.ts",
32
+ "./types/account.d": "./src/types/account.d.ts",
33
+ "./types/ai.d": "./src/types/ai.d.ts",
34
+ "./types/app.d": "./src/types/app.d.ts",
35
+ "./types/auth.d": "./src/types/auth.d.ts",
36
+ "./types/form.d": "./src/types/form.d.ts",
37
+ "./types/other.d": "./src/types/other.d.ts",
38
+ "./types/storage.d": "./src/types/storage.d.ts"
38
39
  },
39
40
  "dependencies": {
40
41
  "node-polyglot": "^2.6.0",
@@ -0,0 +1,367 @@
1
+ type IDDocumentType = any; // Server <-> Client match
2
+
3
+ // Max file size (client)
4
+
5
+ export const MAX_FILE_SIZE_CLIENT = 10 * 1024 * 1024; // 10 MB
6
+
7
+ // DOM element names (ids)
8
+
9
+ export const DOM_IDS = {
10
+ sidebarInput: 'sidebar_input',
11
+ mainFocusTextarea: 'main_tx',
12
+ mainBodyScrollArea: 'main_scr',
13
+ popOverScrollArea: 'pop_over_scr',
14
+ };
15
+
16
+ // Common style variables
17
+
18
+ export const END_BUTTON_WIDTH = '40px';
19
+ export const DATE_AND_BUTTON_WIDTH = '100px ' + END_BUTTON_WIDTH;
20
+
21
+ // Common, repeatable classnames
22
+
23
+ export const COMMON_CLASSNAMES = {
24
+ listContainer: 'cw lg responsive px_lg pt_md pb_lg',
25
+ listContainerFlushRight: 'cw lg responsive pl_lg pr_10 pt_md pb_lg',
26
+ leftSidebarContainer: 'cw lg pr_md',
27
+ // listContainer: 'cw lg responsive px_lg py_lg',
28
+ modalScreenSplitForm: 'h_top px_lg pb_md gap_lg',
29
+ modalScreenSplitContent: 'h_top px_md pb_md gap_lg',
30
+ modalScreenHeading: 'pt_lg pb_df ft_normal ft_xs cl_darker_2 ls_2',
31
+ };
32
+
33
+ // Encryption & code words used to make IDs more readable for human users
34
+
35
+ export const DOCUMENT_TYPE_TO_PREFIX: Record<string, IDDocumentType | IDDocumentType[]> = {
36
+ 'activity log or note': ['log', 'inv', 'rec'], // I've seen AI mistakenly use "activity log or note" for invoices, so we have to comebine it
37
+ 'invoice': ['log', 'inv', 'rec'],
38
+ 'purchase order': ['log', 'inv', 'rec'],
39
+ 'sales receipt': ['log', 'inv', 'rec'],
40
+ 'market credit receipt': ['log', 'inv', 'rec'],
41
+ 'user account': 'acc',
42
+ 'ai task': 'task',
43
+ 'event': 'event',
44
+ 'farmers market day': 'event',
45
+ };
46
+
47
+ // Local storage
48
+
49
+ export const STORAGE_KEYS = {
50
+ // Authentication
51
+ AUTH_TOKEN: 'AT', // There's no ":", so this is used as-is
52
+ LAST_VERSION: 'LV:', // ":" at end means it's a prefix
53
+ CURRENT_ACCOUNT_ID: 'CU:',
54
+
55
+ // Settings
56
+ LIGHT_MODE: 'LM:',
57
+ } as Record<string, string>;
58
+
59
+ // Company address
60
+
61
+ export const COMPANY_ADDRESS = {
62
+ line1: '3053 Fillmore St.',
63
+ line2: '#231',
64
+ city: 'San Francisco',
65
+ state: 'CA',
66
+ postalCode: '94123',
67
+ country: 'US',
68
+ };
69
+
70
+ // Support e-mails
71
+
72
+ export const APP_EMAILS = {
73
+ support: 'hello@marketday.ai',
74
+ } as Record<string, string>;
75
+
76
+ // Social media
77
+
78
+ export const SOCIAL_URLS = {
79
+ MARKETDAY: {
80
+ x: 'https://x.com/?',
81
+ x_username: '?',
82
+ },
83
+ } as Record<string, {
84
+ x: string;
85
+ x_username: string;
86
+ }>;
87
+
88
+ // Colors
89
+
90
+ export const COLORS = [
91
+ 'red',
92
+ 'orange',
93
+ 'brown',
94
+ 'amber',
95
+ 'yellow',
96
+ 'lime',
97
+ 'green',
98
+ 'emerald',
99
+ 'teal',
100
+ 'cyan',
101
+ 'sky',
102
+ 'blue',
103
+ 'indigo',
104
+ 'violet',
105
+ 'purple',
106
+ 'fuchsia',
107
+ 'pink',
108
+ 'rose',
109
+ 'slate',
110
+ 'zinc',
111
+ 'stone',
112
+ ];
113
+
114
+ // Languages
115
+
116
+ export const SUPPORTED_LANGUAGES = [
117
+ 'en',
118
+ 'es',
119
+ ];
120
+
121
+ // Countries
122
+
123
+ export const SUPPORTED_COUNTRIES = [
124
+ 'AF',
125
+ 'AX',
126
+ 'AL',
127
+ 'DZ',
128
+ 'AS',
129
+ 'AD',
130
+ 'AO',
131
+ 'AI',
132
+ 'AQ',
133
+ 'AG',
134
+ 'AR',
135
+ 'AM',
136
+ 'AW',
137
+ 'AU',
138
+ 'AT',
139
+ 'AZ',
140
+ 'BS',
141
+ 'BH',
142
+ 'BD',
143
+ 'BB',
144
+ 'BY',
145
+ 'BE',
146
+ 'BZ',
147
+ 'BJ',
148
+ 'BM',
149
+ 'BT',
150
+ 'BO',
151
+ 'BA',
152
+ 'BW',
153
+ 'BV',
154
+ 'BR',
155
+ 'IO',
156
+ 'BN',
157
+ 'BG',
158
+ 'BF',
159
+ 'BI',
160
+ 'KH',
161
+ 'CM',
162
+ 'CA',
163
+ 'CV',
164
+ 'KY',
165
+ 'CF',
166
+ 'TD',
167
+ 'CL',
168
+ 'CN',
169
+ 'CX',
170
+ 'CC',
171
+ 'CO',
172
+ 'KM',
173
+ 'CG',
174
+ 'CD',
175
+ 'CK',
176
+ 'CR',
177
+ 'CI',
178
+ 'HR',
179
+ 'CU',
180
+ 'CY',
181
+ 'CZ',
182
+ 'DK',
183
+ 'DJ',
184
+ 'DM',
185
+ 'DO',
186
+ 'EC',
187
+ 'EG',
188
+ 'SV',
189
+ 'GQ',
190
+ 'ER',
191
+ 'EE',
192
+ 'ET',
193
+ 'FK',
194
+ 'FO',
195
+ 'FJ',
196
+ 'FI',
197
+ 'FR',
198
+ 'GF',
199
+ 'PF',
200
+ 'TF',
201
+ 'GA',
202
+ 'GM',
203
+ 'GE',
204
+ 'DE',
205
+ 'GH',
206
+ 'GI',
207
+ 'GR',
208
+ 'GL',
209
+ 'GD',
210
+ 'GP',
211
+ 'GU',
212
+ 'GT',
213
+ 'GG',
214
+ 'GN',
215
+ 'GW',
216
+ 'GY',
217
+ 'HT',
218
+ 'HM',
219
+ 'VA',
220
+ 'HN',
221
+ 'HK',
222
+ 'HU',
223
+ 'IS',
224
+ 'IN',
225
+ 'ID',
226
+ 'IR',
227
+ 'IQ',
228
+ 'IE',
229
+ 'IM',
230
+ 'IL',
231
+ 'IT',
232
+ 'JM',
233
+ 'JP',
234
+ 'JE',
235
+ 'JO',
236
+ 'KZ',
237
+ 'KE',
238
+ 'KI',
239
+ 'KP',
240
+ 'KR',
241
+ 'KW',
242
+ 'KG',
243
+ 'LA',
244
+ 'LV',
245
+ 'LB',
246
+ 'LS',
247
+ 'LR',
248
+ 'LY',
249
+ 'LI',
250
+ 'LT',
251
+ 'LU',
252
+ 'MO',
253
+ 'MK',
254
+ 'MG',
255
+ 'MW',
256
+ 'MY',
257
+ 'MV',
258
+ 'ML',
259
+ 'MT',
260
+ 'MH',
261
+ 'MQ',
262
+ 'MR',
263
+ 'MU',
264
+ 'YT',
265
+ 'MX',
266
+ 'FM',
267
+ 'MD',
268
+ 'MC',
269
+ 'MN',
270
+ 'MS',
271
+ 'MA',
272
+ 'MZ',
273
+ 'MM',
274
+ 'NA',
275
+ 'NR',
276
+ 'NP',
277
+ 'NL',
278
+ 'AN',
279
+ 'NC',
280
+ 'NZ',
281
+ 'NI',
282
+ 'NE',
283
+ 'NG',
284
+ 'NU',
285
+ 'NF',
286
+ 'MP',
287
+ 'NO',
288
+ 'OM',
289
+ 'PK',
290
+ 'PW',
291
+ 'PS',
292
+ 'PA',
293
+ 'PG',
294
+ 'PY',
295
+ 'PE',
296
+ 'PH',
297
+ 'PN',
298
+ 'PL',
299
+ 'PT',
300
+ 'PR',
301
+ 'QA',
302
+ 'RE',
303
+ 'RO',
304
+ 'RU',
305
+ 'RW',
306
+ 'SH',
307
+ 'KN',
308
+ 'LC',
309
+ 'PM',
310
+ 'VC',
311
+ 'WS',
312
+ 'SM',
313
+ 'ST',
314
+ 'SA',
315
+ 'SN',
316
+ 'CS',
317
+ 'SC',
318
+ 'SL',
319
+ 'SG',
320
+ 'SK',
321
+ 'SI',
322
+ 'SB',
323
+ 'SO',
324
+ 'ZA',
325
+ 'GS',
326
+ 'ES',
327
+ 'LK',
328
+ 'SD',
329
+ 'SR',
330
+ 'SJ',
331
+ 'SZ',
332
+ 'SE',
333
+ 'CH',
334
+ 'SY',
335
+ 'TW',
336
+ 'TJ',
337
+ 'TZ',
338
+ 'TH',
339
+ 'TL',
340
+ 'TG',
341
+ 'TK',
342
+ 'TO',
343
+ 'TT',
344
+ 'TN',
345
+ 'TR',
346
+ 'TM',
347
+ 'TC',
348
+ 'TV',
349
+ 'UG',
350
+ 'UA',
351
+ 'AE',
352
+ 'GB',
353
+ 'US',
354
+ 'UM',
355
+ 'UY',
356
+ 'UZ',
357
+ 'VU',
358
+ 'VE',
359
+ 'VN',
360
+ 'VG',
361
+ 'VI',
362
+ 'WF',
363
+ 'EH',
364
+ 'YE',
365
+ 'ZM',
366
+ 'ZW',
367
+ ];
@@ -0,0 +1,17 @@
1
+
2
+ export const DAY_OF_WEEK = [
3
+ 'Sunday', // Order matters
4
+ 'Monday',
5
+ 'Tuesday',
6
+ 'Wednesday',
7
+ 'Thursday',
8
+ 'Friday',
9
+ 'Saturday',
10
+ ];
11
+
12
+ export const SCHEDULE_FREQUENCY = [
13
+ 'ONCE',
14
+ 'WEEKLY',
15
+ ];
16
+
17
+ export const DATE_PICKER_MIN = '1950-01-01';
@@ -0,0 +1,4 @@
1
+
2
+ export const STORAGE_INTENT_ENUMS = [
3
+ 'REPORT_SUBMISSION_FILE'
4
+ ];
@@ -0,0 +1,21 @@
1
+ const WS_ACTIONS = {
2
+ // Socket connection
3
+ // NOTE: these are reserved names in Socket.IO
4
+ // That means you cannot emit custom events with these names
5
+ connect: 'connect',
6
+ disconnect: 'disconnect',
7
+
8
+ // Authentication
9
+ auth: 'auth',
10
+ auth_reset: 'auth_reset',
11
+
12
+ // App
13
+ data_update: 'du',
14
+ app_context_update: 'acu',
15
+
16
+ // Account
17
+ me: 'me:',
18
+ organization: 'org:',
19
+ };
20
+
21
+ export default WS_ACTIONS;
@@ -10,7 +10,6 @@ export default {
10
10
  username_info: 'Username, ID, and e-mail is used to log in to your account.',
11
11
  email: 'E-mail',
12
12
  email_ph: 'e.g. jane_doe@email.com',
13
- phone: 'Phone number',
14
13
  phone_ph: 'e.g. 123-444-5555',
15
14
  password: 'Password',
16
15
  password_ph: 'Enter your password',
@@ -46,7 +45,18 @@ export default {
46
45
  badge_desc: 'Change the badge that appear next to your name in chat.',
47
46
  badge_instr: 'This badge will be displayed next to your name:',
48
47
 
49
- // Change password
48
+ // Change sensitive account settings/info
49
+ enter_password: 'Enter password',
50
+ enter_password_msg: 'Confirm your identity before continuing.',
51
+ new_email: 'New e-mail address',
52
+ email_updated: 'E-mail updated',
53
+ email_updated_msg: 'Your e-mail address has been updated to:\n %{emailAddress}.',
54
+ change_email: 'Change e-mail',
55
+ change_email_msg: 'You will receive a confirmation e-mail\n to your new address.',
56
+ change_email_pw_confirm_msg: 'Confirm your identity to change\n your e-mail address.',
57
+ change_email_verify_msg: 'Follow the instructions in the e-mail we sent\n to change your e-mail address.',
58
+ change_phone: 'Change phone number',
59
+ change_phone_msg: 'Confirm your identity to change\n your phone number.',
50
60
  currentPassword: 'Current password',
51
61
  newPassword: 'New password',
52
62
  newPasswordRepeat: 'New password (repeat)',
@@ -73,9 +83,12 @@ export default {
73
83
  profile_deactivated_desc: 'This account has been deactivated.',
74
84
  phone_numbers: 'Phone numbers',
75
85
 
76
- // Search instructions
77
- search_instr_1: 'Search by user ID',
78
- search_instr_2: 'Search by @username',
79
- search_instr_3: 'Search by display name',
86
+ // Roles
87
+ role: {
88
+ MEMBER: 'Employee',
89
+ MANAGER: 'Manager',
90
+ ADMIN: 'Admin',
91
+ OWNER: 'Owner',
92
+ },
80
93
  },
81
94
  };
@@ -0,0 +1,88 @@
1
+ export default {
2
+ en: {
3
+ // SMS responses
4
+ sms_still_processing_1: 'Please wait a moment, I am still processing your message.',
5
+ sms_still_processing_2: 'I am still processing your request. Please give me a moment.',
6
+ sms_still_processing_3: 'Please hold on. I need a little more time to process your last message.',
7
+
8
+ // Response texts
9
+ thinking_: '💭 Thinking...',
10
+ processing_request_: '⚙️ Processing your request...',
11
+ getting_new_id_: '🆔 Creating new ID number...',
12
+ saving_memories_: '💾 Saving memories...',
13
+ reading_stored_memories_: '🧠 Reading stored memories...',
14
+ writing_log_: '📝 Writing log entry...',
15
+ writing_logs_: '📝 Writing log entries...',
16
+ searching_logs_: '📖 Searching for logs...',
17
+ searching_harvest_logs_: '📖 Searching for harvest logs...',
18
+ getting_file_url_: '📄 Getting file URL...',
19
+ create_reminder_task_: '📅 Creating task(s)...',
20
+ create_recurring_reminder_task_: '📅 Creating recurring task(s)...',
21
+ update_reminder_task_: '📅 Updating task(s)...',
22
+ search_reminders_tasks_: '📅 Opening scheduled tasks...',
23
+ finding_item_: '🔍 Searching for item...',
24
+ searching_contacts_: '🔍 Searching contacts list...',
25
+ updating_contacts_: '🪪 Updating contacts list...',
26
+ searching_directory_: '🗂️ Searching directory...',
27
+ updating_directory_: '🗂️ Updating directory...',
28
+ creating_report_: '📊 Creating report... ',
29
+ updating_schedule_: '📅 Updating schedule...',
30
+ updating_events_: '📅 Updating events...',
31
+ searching_event_: '🔍 Searching for event(s)...',
32
+ saving_address_: '🏠 Saving address...',
33
+ searching_address_: '🔍 Searching for address...',
34
+ searching_: '🔍 Searching...',
35
+ saving_document_: '📜 Saving document...',
36
+ saving_attendance_: '🙋 Saving attendance...',
37
+ getting_attendance_: '🙋 Getting attendance...',
38
+ updating_attendance_list_: '🙋 Updating attendance list...',
39
+ updating_database_: '🗄️ Updating database...',
40
+ sending_message_: '✉️ Sending message...',
41
+ schedule_ai_task_: '📋 Scheduling task...',
42
+ schedule_next_ai_task_: '📋 Scheduling next task...',
43
+ saving_load_list_: '📋 Saving load list...',
44
+ searching_for_load_list_: '🔍 Searching for load list...',
45
+ writing_report_: '✍️ Writing report...',
46
+
47
+ // Digests
48
+ digest_for_: 'Digest for %{date}',
49
+
50
+ // Common errors
51
+ invalid_id: '"%{field}" (%{value}) is not a valid ID.',
52
+ one_is_required: 'One of the following fields is required: %{fields}.',
53
+
54
+ // Operation specific terms
55
+ operation_activities: {
56
+ ARABLE: 'farming activities',
57
+ LIVESTOCK: 'ranching activities',
58
+ FARMERS_MARKET: 'farmers market operations',
59
+ },
60
+ operation_farmers: {
61
+ ARABLE: 'farmers',
62
+ LIVESTOCK: 'ranchers',
63
+ FARMERS_MARKET: 'farmers market vendors',
64
+ },
65
+
66
+ // Real time data update messages
67
+ log_created: 'A new log was created.',
68
+ vendors_list_updated: 'Vendors list was updated.',
69
+ vendor_removed: 'A vendor was removed.',
70
+ log_updated: 'Log was updated.',
71
+ log_deleted: 'Log was deleted.',
72
+ attendance_list_updated: 'Attendance list was updated.',
73
+ attendance_logged: 'Attendance record was logged.',
74
+
75
+ // Features
76
+ features: {
77
+ AI_TASK: '"AI tasks", "AI workflows", "sending an e-mail", "sending a message", "reminders", "work check-ins"',
78
+ CAL_EVENTS: '"events", "market days"',
79
+ CAL_EVENTS_ATTENDANCE: '', // This must return an empty string
80
+ },
81
+
82
+ // Real-time data update messages
83
+ data_update: {
84
+ moderation_failed_tasks_terminated: "AI's tasks were terminated because it failed our moderation tests.",
85
+ tasks_assigned: 'AI has been assigned tasks.',
86
+ },
87
+ },
88
+ };
@@ -9,15 +9,11 @@ export default {
9
9
  // Routes
10
10
  route_: 'App | %{text}',
11
11
  route_auth: 'Log in or sign up',
12
+ route_auth_change_email: 'Change e-mail address',
12
13
  route_auth_signup: 'Create an account',
13
14
  route_not_found: 'Page Not Found',
14
15
  route_not_found_desc: 'The page you are looking for does not exist.',
15
16
 
16
- // Toolbar titles
17
- // NOTE: If i18n.has(routeName) -> /app/ routes will show the title in the toolbar
18
- toolbar_title_logs: 'Logs',
19
- toolbar_title_ai_chat: 'AI',
20
-
21
17
  // General
22
18
  open_app: 'Open app',
23
19
  home: 'Home',
@@ -73,23 +69,13 @@ export default {
73
69
  invite_expire_in_ct: 'This invitation will expire in %{smart_count} day.||||This invitation will expire in %{smart_count} days.',
74
70
  notif_not_exist: 'This notification does not exist. It may be deleted.',
75
71
 
76
- alerts_ct_CO_OWNER_ADDED: '%{smart_count} New co-ownership||||%{smart_count} New co-ownerships',
77
- alerts_ct_CO_OWNER_INVITE: '%{smart_count} Co-owner invite||||%{smart_count} Co-owner invites',
78
- alerts_ct_NEW_FRIEND: '%{smart_count} New friend alert||||%{smart_count} New friends alerts',
79
- alerts_ct_MESSAGE: '%{smart_count} Notification||||%{smart_count} Notifications',
80
-
81
- alerts_CO_OWNER_ADDED: 'New co-ownership',
82
- alerts_CO_OWNER_INVITE: 'Co-owner invite',
83
- alerts_NEW_FRIEND: 'Friend added',
84
- alerts_MESSAGE: 'Notification',
85
-
86
- notif_message_CO_OWNER_ADDED: 'You became a co-owner. You have live and moderation permissions.',
87
- notif_message_CO_OWNER_INVITE: 'You received an invitation to become a co-owner for this chat.',
88
-
89
72
  // Homepage; Roadmap
90
73
  roadmap: 'Roadmap',
91
74
 
92
75
  // Subscription related
93
76
  sub_needed: 'You need a subscription to use this feature.',
77
+
78
+ // SMS
79
+ verification_code_sms: 'Your verification code is: %{verificationCode}',
94
80
  },
95
81
  };