@jsb188/app 1.1.8 → 1.1.9
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/package.json +29 -29
- package/src/constants/agent.ts +49 -0
- package/src/constants/app.ts +20 -19
- package/src/constants/wsActions.ts +2 -1
- package/src/i18n/account.ts +40 -17
- package/src/i18n/{ai_agent.ts → agent.ts} +60 -10
- package/src/i18n/app.ts +31 -4
- package/src/i18n/auth.ts +32 -32
- package/src/i18n/billing.ts +1 -1
- package/src/i18n/error.ts +48 -20
- package/src/i18n/form.ts +86 -6
- package/src/i18n/index.ts +9 -3
- package/src/i18n/log.ts +121 -73
- package/src/i18n/message.ts +4 -1
- package/src/i18n/org.ts +96 -10
- package/src/i18n/product.ts +22 -21
- package/src/i18n/sheet.ts +10 -0
- package/src/i18n/workflow.ts +25 -0
- package/src/types/ai.d.ts +2 -1
- package/src/types/app.d.ts +3 -1
- package/src/types/form.d.ts +56 -21
- package/src/types/node-polyglot.d.ts +23 -0
- package/src/types/other.d.ts +15 -0
- package/src/utils/api.ts +30 -19
- package/src/utils/cron.ts +279 -0
- package/src/utils/datetime.ts +206 -83
- package/src/utils/logic.ts +110 -0
- package/src/utils/number.ts +1 -1
- package/src/utils/object.ts +87 -18
- package/src/utils/string.test.ts +281 -0
- package/src/utils/string.ts +532 -292
- package/src/utils/timeZone.ts +6 -3
- package/src/utils/url_client.ts +11 -11
- package/tsconfig.json +0 -1
- package/src/constants/storage.ts +0 -4
- package/src/types/account.d.ts +0 -63
- package/src/types/storage.d.ts +0 -70
package/src/i18n/log.ts
CHANGED
|
@@ -4,24 +4,24 @@ export default {
|
|
|
4
4
|
log: 'Log',
|
|
5
5
|
logs: 'Logs',
|
|
6
6
|
all_logs: 'All logs',
|
|
7
|
-
cleaning_logs: 'Cleaning logs',
|
|
8
7
|
related_logs: 'Related logs',
|
|
9
8
|
nothing_found: 'No logs found.',
|
|
10
9
|
log_missing: 'Log missing',
|
|
11
10
|
log_missing_msg: 'There was a problem loading this log.',
|
|
11
|
+
no_message_associated: 'There is no message associated with this log.',
|
|
12
|
+
original_message: 'Original message',
|
|
12
13
|
unit_arable_ph: 'lbs',
|
|
13
14
|
location_arable_ph: 'Field A, Row 4, etc.',
|
|
14
15
|
location_water_ph: 'Water source A, etc.',
|
|
15
16
|
location_livestock: 'Location',
|
|
16
17
|
location_livestock_ph: 'Pasture A, Barn B, etc.',
|
|
18
|
+
fieldLocation: 'Field',
|
|
17
19
|
livestockGroup: 'Group',
|
|
18
20
|
crop_ph: 'Tomato, broccoli, etc.',
|
|
19
21
|
livestock: 'Livestock',
|
|
20
22
|
livestockIdentifier: 'Livestock ID',
|
|
21
23
|
livestockIdentifiers: 'Livestock IDs',
|
|
22
24
|
livestock_ph: 'Cattle, goat, chicken, etc.',
|
|
23
|
-
fieldLocation: 'Field',
|
|
24
|
-
fieldLocation_ph: 'Field A, Section 1, etc.',
|
|
25
25
|
purchases: 'Purchases',
|
|
26
26
|
supply_purchases: 'Supply purchases',
|
|
27
27
|
note_from_ai: 'Note from AI',
|
|
@@ -29,10 +29,14 @@ export default {
|
|
|
29
29
|
id_tags_ph: '121, 212, 444, etc',
|
|
30
30
|
group: 'Livestock group',
|
|
31
31
|
group_ph: 'Herd A, Pasture B Group, etc',
|
|
32
|
+
logType: 'Log type',
|
|
32
33
|
receipt_for: 'Receipt for',
|
|
34
|
+
otherParty: 'For',
|
|
35
|
+
childOrgName: 'For',
|
|
33
36
|
market: 'Market',
|
|
34
37
|
marketCredits: 'Market credits',
|
|
35
38
|
marketCredits_ph: '$25 MC, $5 EBT, etc.',
|
|
39
|
+
greenhouse_seeding: 'Greenhouse seeding',
|
|
36
40
|
seeding: 'Seeding',
|
|
37
41
|
transplanting: 'Transplanting',
|
|
38
42
|
field_work: 'Field work',
|
|
@@ -63,53 +67,81 @@ export default {
|
|
|
63
67
|
delete_confirm_msg: 'Are you sure you want to delete this %{content}? This action cannot be undone.',
|
|
64
68
|
yes_delete_log: 'Yes, delete this %{content}',
|
|
65
69
|
loaded_more_than_: 'You loaded more than %{limit} logs. Please refine your search to see more logs.',
|
|
70
|
+
change_sorting_option_for_more_data: 'Change the sorting option for more data.',
|
|
66
71
|
end_of_list_: (
|
|
67
|
-
'You reached the end of this list with %{smart_count}
|
|
68
|
-
'You reached the end of this list with %{smart_count}
|
|
72
|
+
'You reached the end of this list with %{smart_count} record.||||' +
|
|
73
|
+
'You reached the end of this list with %{smart_count} records.'
|
|
69
74
|
),
|
|
70
75
|
|
|
76
|
+
log_type_is_created_updated: 'When %{type} logs are created/updated.',
|
|
77
|
+
risk_flags: 'Potential risks',
|
|
78
|
+
no_potential_risks: 'This log does not indicate any potential risks.',
|
|
79
|
+
animalRisk: 'Animal risk',
|
|
80
|
+
equipmentRisk: 'Equipment risk',
|
|
81
|
+
fieldRisk: 'Field risk',
|
|
82
|
+
contaminationRisk: 'Contamination risk',
|
|
83
|
+
hygieneRisk: 'Hygiene risk',
|
|
84
|
+
pestsRisk: 'Pests risk',
|
|
85
|
+
sanitationRisk: 'Sanitation risk',
|
|
86
|
+
|
|
71
87
|
// Need one of each for every {contentName} for log
|
|
72
88
|
inline_log: 'log',
|
|
73
|
-
inline_ai_task: 'task',
|
|
74
89
|
inline_invoice: 'invoice',
|
|
75
90
|
inline_receipt: 'receipt',
|
|
76
91
|
|
|
77
92
|
edit_log: 'Edit log',
|
|
78
|
-
edit_ai_task: 'Edit task',
|
|
79
93
|
edit_invoice: 'Edit invoice',
|
|
80
94
|
edit_receipt: 'Edit receipt',
|
|
81
95
|
|
|
82
96
|
view_edit_log: 'View or edit log',
|
|
83
|
-
view_edit_ai_task: 'View or edit task',
|
|
84
97
|
view_edit_invoice: 'View or edit invoice',
|
|
85
98
|
view_edit_receipt: 'View or edit receipt',
|
|
86
99
|
|
|
87
100
|
delete_log: 'Delete log',
|
|
88
|
-
delete_ai_task: 'Delete task',
|
|
89
101
|
delete_invoice: 'Delete invoice',
|
|
90
102
|
delete_receipt: 'Delete receipt',
|
|
91
103
|
|
|
104
|
+
// Source of log entry save
|
|
105
|
+
|
|
106
|
+
source: {
|
|
107
|
+
EMAIL: 'email',
|
|
108
|
+
SMS: 'SMS',
|
|
109
|
+
WEB: 'web',
|
|
110
|
+
WORKFLOW: 'workflow',
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
// Unit by log graphql type
|
|
114
|
+
unit: {
|
|
115
|
+
LogArable: 'Pack Size',
|
|
116
|
+
},
|
|
117
|
+
|
|
92
118
|
// Types
|
|
93
119
|
type: {
|
|
94
120
|
// #### ARABLE
|
|
95
121
|
SEED: 'Seed purchase',
|
|
96
122
|
PLANTING: 'Seeding & transplanting',
|
|
97
|
-
FIELD: 'Field
|
|
98
|
-
HARVEST: 'Harvest
|
|
99
|
-
POST_HARVEST: 'Post-harvest
|
|
100
|
-
SALES: 'Sales
|
|
123
|
+
FIELD: 'Field',
|
|
124
|
+
HARVEST: 'Harvest',
|
|
125
|
+
POST_HARVEST: 'Post-harvest',
|
|
126
|
+
SALES: 'Sales order',
|
|
101
127
|
WATER: 'Water testing',
|
|
102
128
|
|
|
103
129
|
// #### ARABLE - FOOD SAFETY
|
|
104
130
|
HYGIENE: 'Hygiene procedures',
|
|
105
131
|
SANITATION: 'Sanitation infrastructure',
|
|
106
|
-
|
|
132
|
+
EQUIPMENT: 'Equipment & materials',
|
|
107
133
|
BIOSECURITY: 'Environment & biosecurity',
|
|
108
|
-
|
|
134
|
+
EMPLOYEE: 'Employees & operation',
|
|
109
135
|
|
|
110
136
|
// #### FARMERS_MARKET
|
|
111
|
-
|
|
112
|
-
|
|
137
|
+
MARKET_RECEIPT: 'Receipt',
|
|
138
|
+
MARKET_OPERATION: 'Operation',
|
|
139
|
+
VOID_MARKET_RECEIPT: 'Void receipt',
|
|
140
|
+
|
|
141
|
+
// #### GROWER_NETWORK
|
|
142
|
+
WORKER_PRACTICE: 'Personnel practices',
|
|
143
|
+
PRODUCTION_INPUT: 'Production inputs',
|
|
144
|
+
OPERATION: 'Operations',
|
|
113
145
|
|
|
114
146
|
// #### LIVESTOCK
|
|
115
147
|
SUPPLY_PURCHASE: 'Supply purchase',
|
|
@@ -118,16 +150,13 @@ export default {
|
|
|
118
150
|
PASTURE_LAND_MANAGEMENT: 'Pasture management',
|
|
119
151
|
LIVESTOCK_HEALTHCARE: 'Livestock healthcare',
|
|
120
152
|
LIVESTOCK_SALE: 'Livestock sale',
|
|
121
|
-
|
|
122
|
-
// #### Merged into every operation
|
|
123
|
-
AI_TASK: 'AI task',
|
|
124
153
|
},
|
|
125
154
|
type_short: {
|
|
126
155
|
// #### ARABLE
|
|
127
156
|
SEED: 'Seed purchase',
|
|
128
157
|
PLANTING: 'Planting',
|
|
129
|
-
FIELD: 'Field
|
|
130
|
-
HARVEST: '
|
|
158
|
+
FIELD: 'Field',
|
|
159
|
+
HARVEST: 'Harvest',
|
|
131
160
|
POST_HARVEST: 'Post-harvest',
|
|
132
161
|
SALES: 'Sale',
|
|
133
162
|
WATER: 'Water testing',
|
|
@@ -135,14 +164,19 @@ export default {
|
|
|
135
164
|
// #### ARABLE - FOOD SAFETY
|
|
136
165
|
HYGIENE: 'Hygiene',
|
|
137
166
|
SANITATION: 'Sanitation',
|
|
138
|
-
|
|
167
|
+
EQUIPMENT: 'Equipment',
|
|
139
168
|
BIOSECURITY: 'Biosecurity',
|
|
140
|
-
|
|
169
|
+
EMPLOYEE: 'Employee',
|
|
141
170
|
|
|
142
171
|
// #### FARMERS_MARKET
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
172
|
+
MARKET_RECEIPT: 'Receipt',
|
|
173
|
+
MARKET_OPERATION: 'Operation',
|
|
174
|
+
VOID_MARKET_RECEIPT: 'Void receipt',
|
|
175
|
+
|
|
176
|
+
// #### GROWER_NETWORK
|
|
177
|
+
WORKER_PRACTICE: 'Personnel',
|
|
178
|
+
PRODUCTION_INPUT: 'Inputs',
|
|
179
|
+
OPERATION: 'Operations',
|
|
146
180
|
|
|
147
181
|
// #### LIVESTOCK
|
|
148
182
|
SUPPLY_PURCHASE: 'Supply purchase',
|
|
@@ -151,9 +185,6 @@ export default {
|
|
|
151
185
|
PASTURE_LAND_MANAGEMENT: 'Pasture',
|
|
152
186
|
LIVESTOCK_HEALTHCARE: 'Healthcare',
|
|
153
187
|
LIVESTOCK_SALE: 'Sale',
|
|
154
|
-
|
|
155
|
-
// #### Merged into every operation
|
|
156
|
-
AI_TASK: 'AI task',
|
|
157
188
|
},
|
|
158
189
|
|
|
159
190
|
// Activities
|
|
@@ -165,40 +196,40 @@ export default {
|
|
|
165
196
|
OTHER_SUPPLY_PURCHASE_ACTIVITY: 'Other supply purchase',
|
|
166
197
|
|
|
167
198
|
// # Transplanting activities
|
|
168
|
-
SEEDING: 'Seeding
|
|
169
|
-
DIRECT_SEEDING: 'Direct seeding
|
|
170
|
-
|
|
171
|
-
|
|
199
|
+
SEEDING: 'Seeding',
|
|
200
|
+
DIRECT_SEEDING: 'Direct seeding',
|
|
201
|
+
GREENHOUSE_SEEDING: 'Greenhouse seeding',
|
|
202
|
+
TRANSPLANTING: 'Transplanting',
|
|
203
|
+
SEED_COMPLIANCE_NOTE: 'Seeding compliance',
|
|
172
204
|
OTHER_TRANSPLANT_ACTIVITY: 'Other seeding/transplanting activities',
|
|
173
205
|
|
|
174
206
|
// # Field activities
|
|
175
|
-
PREPARE_SOIL: 'Soil
|
|
176
|
-
PLANTING: 'Seeding, transplanting', // Deprecated & moved to "PLANTING" category
|
|
207
|
+
PREPARE_SOIL: 'Soil/bed preparation',
|
|
177
208
|
IRRIGATION: 'Irrigation, water management',
|
|
178
209
|
FERTILIZATION_COMPOST: 'Fertilization, compost',
|
|
179
210
|
PROTECT_CROP: 'Crop protection (weeds, pests, diseases)',
|
|
180
|
-
MONITOR_CROP: 'Crop monitoring
|
|
211
|
+
MONITOR_CROP: 'Crop monitoring',
|
|
181
212
|
PRUNING: 'Pruning',
|
|
182
|
-
STRUCTURE_MAINTENANCE: 'Trellising
|
|
213
|
+
STRUCTURE_MAINTENANCE: 'Trellising/structure maintenance',
|
|
183
214
|
PREPARE_HARVEST: 'Preparing crops for harvest',
|
|
184
215
|
OTHER_FIELD_ACTIVITY: 'General field notes',
|
|
185
216
|
|
|
186
217
|
// # Harvest activities
|
|
187
218
|
HARVEST_CROP: 'Harvested crops',
|
|
188
|
-
HARVEST_COUNT: 'Counting
|
|
189
|
-
SORT_GRADE: 'Sorting
|
|
219
|
+
HARVEST_COUNT: 'Counting/weighing crops',
|
|
220
|
+
SORT_GRADE: 'Sorting/grading crops',
|
|
190
221
|
YIELD_LOSS_ESTIMATE: 'Estimating yield or loss',
|
|
191
222
|
OTHER_HARVEST_ACTIVITY: 'Other harvest activities',
|
|
192
223
|
|
|
193
224
|
// # Post-harvest activities
|
|
194
|
-
POST_HARVEST_HANDLING: 'Handling
|
|
195
|
-
POST_HARVEST_PACKAGING: 'Packaging
|
|
225
|
+
POST_HARVEST_HANDLING: 'Handling/grading produce',
|
|
226
|
+
POST_HARVEST_PACKAGING: 'Packaging/moving to storage',
|
|
196
227
|
COLD_STORAGE_TEMPERATURE: 'Cold storage temperature',
|
|
197
228
|
OTHER_POST_HARVEST_ACTIVITY: 'Other post-harvest activities',
|
|
198
229
|
|
|
199
230
|
// # Sales activities
|
|
200
|
-
SALE_PRODUCE_ORDER: '
|
|
201
|
-
OTHER_SALE_ORDER: '
|
|
231
|
+
SALE_PRODUCE_ORDER: 'sales order (produce)',
|
|
232
|
+
OTHER_SALE_ORDER: 'sales order (other)',
|
|
202
233
|
|
|
203
234
|
// # Water testing activities
|
|
204
235
|
WATER_TESTING: 'Water testing (chlorine levels)',
|
|
@@ -231,8 +262,9 @@ export default {
|
|
|
231
262
|
EMPLOYEE_TRAINING: 'Employee training',
|
|
232
263
|
SICK_EMPLOYEE: 'Sick employee',
|
|
233
264
|
EMPLOYEE_INJURED: 'Injured employee',
|
|
234
|
-
EMPLOYEE_NOTES: 'Notes on employees',
|
|
235
|
-
OPERATION_NOTES: 'General operation notes',
|
|
265
|
+
EMPLOYEE_NOTES: 'Notes on employees', // "S" is deprecated, but need database migration
|
|
266
|
+
OPERATION_NOTES: 'General operation notes', // "S" is deprecated, but need database migration
|
|
267
|
+
OPERATION_NOTE: 'General operation notes',
|
|
236
268
|
|
|
237
269
|
// #### FARMERS MARKET
|
|
238
270
|
|
|
@@ -242,8 +274,22 @@ export default {
|
|
|
242
274
|
// # Market operation activities
|
|
243
275
|
MARKET_ATTENDANCE: 'Event attendance',
|
|
244
276
|
MARKET_LOAD_LIST: 'Market load list',
|
|
245
|
-
|
|
246
|
-
|
|
277
|
+
|
|
278
|
+
// #### GROWER NETWORK
|
|
279
|
+
|
|
280
|
+
// # Grower network activities
|
|
281
|
+
SANITATION_PRACTICE: 'Sanitation',
|
|
282
|
+
PERSONNEL_PRACTICE: 'Personnel practices',
|
|
283
|
+
EQUIPMENT_MATERIAL: 'Equipment & materials',
|
|
284
|
+
PACKAGING_STORAGE: 'Packaging & storage',
|
|
285
|
+
ENVIRONMENT: 'Environment',
|
|
286
|
+
FIELD_CONDITION: 'Field conditions',
|
|
287
|
+
ADJACENT_LAND: 'Adjacent land',
|
|
288
|
+
WATER_INPUT: 'Water inputs',
|
|
289
|
+
CHEMICAL_INPUT: 'Chemical inputs',
|
|
290
|
+
FERTILIZER_INPUT: 'Fertilizer inputs',
|
|
291
|
+
RECORDKEEPING: 'Recordkeeping',
|
|
292
|
+
FACILITIES: 'Infrastructure (physical)',
|
|
247
293
|
|
|
248
294
|
// #### LIVESTOCK
|
|
249
295
|
|
|
@@ -281,12 +327,6 @@ export default {
|
|
|
281
327
|
// # Livestock sale activities
|
|
282
328
|
LIVESTOCK_SALE: 'Livestock sale',
|
|
283
329
|
OTHER_LIVESTOCK_SALE_ACTIVITY: 'Other sales activities',
|
|
284
|
-
|
|
285
|
-
// # AI Tasks
|
|
286
|
-
AI_SEND_MESSAGE: 'Send message',
|
|
287
|
-
AI_REMINDER: 'Smart reminder',
|
|
288
|
-
AI_CHECK_IN: 'Smart check-in',
|
|
289
|
-
AI_SCHEDULED_TASK: 'Scheduled task',
|
|
290
330
|
},
|
|
291
331
|
|
|
292
332
|
// Short versions will override longer version for UI purposes
|
|
@@ -299,6 +339,7 @@ export default {
|
|
|
299
339
|
// # Transplanting activities
|
|
300
340
|
SEEDING: 'Seeding',
|
|
301
341
|
DIRECT_SEEDING: 'Direct seeding',
|
|
342
|
+
GREENHOUSE_SEEDING: 'Greenhouse seeding',
|
|
302
343
|
TRANSPLANTING: 'Transplanting',
|
|
303
344
|
SEED_COMPLIANCE_NOTE: 'Notes',
|
|
304
345
|
OTHER_TRANSPLANT_ACTIVITY: 'Other',
|
|
@@ -373,8 +414,22 @@ export default {
|
|
|
373
414
|
// # Market operation activities
|
|
374
415
|
MARKET_ATTENDANCE: 'Attendance',
|
|
375
416
|
MARKET_LOAD_LIST: 'Load list',
|
|
376
|
-
|
|
377
|
-
|
|
417
|
+
|
|
418
|
+
// #### GROWER NETWORK
|
|
419
|
+
|
|
420
|
+
// # Grower network activities
|
|
421
|
+
SANITATION_PRACTICE: 'Sanitation',
|
|
422
|
+
PERSONNEL_PRACTICE: 'Personnel',
|
|
423
|
+
EQUIPMENT_MATERIAL: 'Equipment',
|
|
424
|
+
PACKAGING_STORAGE: 'Storage',
|
|
425
|
+
ENVIRONMENT: 'Environment',
|
|
426
|
+
FIELD_CONDITION: 'Field',
|
|
427
|
+
ADJACENT_LAND: 'Adjacent land',
|
|
428
|
+
WATER_INPUT: 'Water',
|
|
429
|
+
CHEMICAL_INPUT: 'Chemical',
|
|
430
|
+
FERTILIZER_INPUT: 'Fertilizer',
|
|
431
|
+
RECORDKEEPING: 'Records',
|
|
432
|
+
FACILITIES: 'Infrastructure',
|
|
378
433
|
|
|
379
434
|
// #### LIVESTOCK
|
|
380
435
|
|
|
@@ -412,12 +467,6 @@ export default {
|
|
|
412
467
|
// # Livestock sale activities
|
|
413
468
|
LIVESTOCK_SALE: 'Sale',
|
|
414
469
|
OTHER_LIVESTOCK_SALE_ACTIVITY: 'Other sales',
|
|
415
|
-
|
|
416
|
-
// # AI Tasks
|
|
417
|
-
AI_SEND_MESSAGE: 'Send message',
|
|
418
|
-
AI_REMINDER: 'Smart reminder',
|
|
419
|
-
AI_CHECK_IN: 'Smart check-in',
|
|
420
|
-
AI_SCHEDULED_TASK: 'Scheduled task',
|
|
421
470
|
},
|
|
422
471
|
|
|
423
472
|
// Search sort
|
|
@@ -439,25 +488,22 @@ export default {
|
|
|
439
488
|
// Search filters
|
|
440
489
|
filter: {
|
|
441
490
|
logType: 'Activities',
|
|
491
|
+
logType_all: 'Activities',
|
|
442
492
|
logType_ct: 'Activities (%{count})',
|
|
443
493
|
dateRange: 'Date range',
|
|
444
|
-
|
|
494
|
+
WEEKS_5: '5 weeks',
|
|
445
495
|
search: 'Search',
|
|
446
496
|
sort_options: 'Sort by',
|
|
447
|
-
|
|
448
|
-
INCLUDE_AI_TASKS: 'Show all logs',
|
|
449
|
-
AI_TASKS: 'AI tasks only',
|
|
450
|
-
HIDE_AI_TASKS: 'Hide AI tasks',
|
|
451
497
|
},
|
|
452
498
|
|
|
453
499
|
// Search filter popover options
|
|
454
500
|
filter_by: {
|
|
455
|
-
preset: 'Filter by
|
|
456
|
-
activity: 'Filter by
|
|
457
|
-
date_range: 'Filter by
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
search: 'Search for
|
|
501
|
+
preset: 'Filter by preset',
|
|
502
|
+
activity: 'Filter by activity',
|
|
503
|
+
date_range: 'Filter by date range',
|
|
504
|
+
site_location: 'Filter by location',
|
|
505
|
+
WEEKS_5: '5 weeks',
|
|
506
|
+
search: 'Search for keywords',
|
|
461
507
|
},
|
|
462
508
|
|
|
463
509
|
// Accounting dates
|
|
@@ -469,7 +515,9 @@ export default {
|
|
|
469
515
|
// Accounting number
|
|
470
516
|
accounting_number: {
|
|
471
517
|
INVOICE: 'Invoice number',
|
|
518
|
+
INVOICE_short: 'Invoice No.',
|
|
472
519
|
RECEIPT: 'Receipt number',
|
|
520
|
+
RECEIPT_short: 'Receipt No.',
|
|
473
521
|
},
|
|
474
522
|
|
|
475
523
|
// Task status
|
package/src/i18n/message.ts
CHANGED
|
@@ -6,6 +6,9 @@ export default {
|
|
|
6
6
|
en: {
|
|
7
7
|
email_from_name: 'Marketday',
|
|
8
8
|
from_: 'From: %{name}',
|
|
9
|
-
sent_by_ai_msg:
|
|
9
|
+
sent_by_ai_msg: (
|
|
10
|
+
'This email was sent by <a href="https://marketday.ai">Marketday AI</a>.<br />' +
|
|
11
|
+
'Contact us to automate your business operations with AI.'
|
|
12
|
+
),
|
|
10
13
|
},
|
|
11
14
|
};
|
package/src/i18n/org.ts
CHANGED
|
@@ -1,20 +1,36 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
en: {
|
|
3
3
|
organization: 'Organization',
|
|
4
|
+
organizations: 'Organizations',
|
|
4
5
|
my_organizations: 'My organizations',
|
|
5
6
|
name: 'Organization name',
|
|
6
7
|
name_of: 'Name of organization',
|
|
7
8
|
type_of: 'Type of organization',
|
|
9
|
+
claimed_business: 'Claimed business',
|
|
10
|
+
contact_associated_with: 'This contact is associated with: %{organizationNames}',
|
|
11
|
+
contact_choose_associated_orgs: 'Choose the associated organizations for this contact.',
|
|
8
12
|
org_info: 'Organization information',
|
|
9
13
|
nothing_found: 'No organizations found.',
|
|
10
14
|
farms: 'Farms',
|
|
11
15
|
settings: 'Organization settings',
|
|
16
|
+
edit_operation: 'Edit operation',
|
|
17
|
+
edit_child_org_operation: 'Edit child organization operation',
|
|
18
|
+
edit_child_org_operation_msg: 'Choose the business operation for\n [hl]%{name}[/hl].',
|
|
19
|
+
edit_child_org_operation_finished_msg: '[hl]%{name}[/hl]\'s business operation is set to **%{operation}**.',
|
|
20
|
+
edit_child_org_info_msg: 'Update the information for\n [hl]%{name}[/hl].',
|
|
21
|
+
edit_child_org_info_finished_msg: 'Information has been updated for\n [hl]%{name}[/hl].',
|
|
22
|
+
edit_site_location_msg: 'Update the information for\n [hl]%{name}[/hl].',
|
|
23
|
+
edit_site_location_finished_msg: 'Information has been updated for\n [hl]%{name}[/hl].',
|
|
24
|
+
delete_child_org_msg: 'Are you sure you want to remove\n [hl]%{name}[/hl]?',
|
|
12
25
|
manage_team: 'Manage team',
|
|
26
|
+
site_locations: 'Site locations',
|
|
27
|
+
all_site_locations: 'All locations',
|
|
13
28
|
invite_members: 'Invite members',
|
|
14
29
|
members_ct: '%{smart_count} member||||%{smart_count} members',
|
|
15
30
|
administration: 'Administration',
|
|
16
31
|
billing: 'Billing',
|
|
17
|
-
|
|
32
|
+
department_req_msg: 'Please select a department for this contact.',
|
|
33
|
+
contact_phone_or_email_req_msg: 'Please provide a phone number or email for this contact.',
|
|
18
34
|
address_notice_msg: 'This information will appear on the invoices you generate for your customers and to others in your network.',
|
|
19
35
|
no_recurring_schedule: 'This event does not have a recurring schedule.',
|
|
20
36
|
daily_event_msg: 'This event repeats every day.',
|
|
@@ -22,6 +38,9 @@ export default {
|
|
|
22
38
|
daily_digest: 'Daily digest',
|
|
23
39
|
compliance_title: 'Compliance',
|
|
24
40
|
compliance_docs: 'Compliance documents',
|
|
41
|
+
compliance_documents: 'Compliance documents',
|
|
42
|
+
compliance_name_ph: 'Certificate document - #12345',
|
|
43
|
+
compliance_input_type_missing: 'Please select a document type.',
|
|
25
44
|
outstanding_balance: 'Outstanding balance',
|
|
26
45
|
recent_invoices: 'Recent invoices',
|
|
27
46
|
upcoming_invoices: 'Upcoming invoices',
|
|
@@ -29,6 +48,10 @@ export default {
|
|
|
29
48
|
past_markets: 'Past Markets',
|
|
30
49
|
load_lists: 'Load Lists',
|
|
31
50
|
contact_to_change: 'Please contact us to change this information.',
|
|
51
|
+
locked_contact_msg: 'This contact information is saved by the owner of this organization.',
|
|
52
|
+
no_contact_information_msg: 'This organization doesn\'t have any contact information.',
|
|
53
|
+
no_site_locations: 'This organization doesn\'t have any site locations.',
|
|
54
|
+
could_not_load_not_linked_org: 'This organization\'s data could not be loaded because it\'s no longer linked to your organization.',
|
|
32
55
|
vendor_documents_not_found_msg: "This vendor hasn't submitted any compliance documents or certifications.",
|
|
33
56
|
switch_organizations: 'Switch organizations',
|
|
34
57
|
switch_msg: (
|
|
@@ -62,20 +85,45 @@ export default {
|
|
|
62
85
|
|
|
63
86
|
yes_switch: 'Yes, switch organization',
|
|
64
87
|
|
|
88
|
+
role: {
|
|
89
|
+
MEMBER: 'Member',
|
|
90
|
+
MANAGER: 'Manager',
|
|
91
|
+
ADMIN: 'Admin',
|
|
92
|
+
OWNER: 'Owner',
|
|
93
|
+
GUEST: 'Guest',
|
|
94
|
+
},
|
|
95
|
+
|
|
65
96
|
type: {
|
|
66
97
|
ARABLE: 'Arable farm',
|
|
67
98
|
LIVESTOCK: 'Livestock ranch',
|
|
68
|
-
|
|
69
|
-
|
|
99
|
+
FARMERS_MARKET: 'Farmers market',
|
|
100
|
+
GROWER_NETWORK: 'Grower network',
|
|
101
|
+
RESTAURANT: 'Restaurant',
|
|
70
102
|
VENDOR: 'Vendor',
|
|
103
|
+
WHOLESALE_FOOD: 'Wholesale (Food)',
|
|
104
|
+
UNKNOWN: 'Unknown',
|
|
71
105
|
},
|
|
72
106
|
|
|
107
|
+
type_short: {
|
|
108
|
+
ARABLE: 'Farm',
|
|
109
|
+
LIVESTOCK: 'Ranch',
|
|
110
|
+
FARMERS_MARKET: 'Market',
|
|
111
|
+
GROWER_NETWORK: 'Grower network',
|
|
112
|
+
RESTAURANT: 'Restaurant',
|
|
113
|
+
VENDOR: 'Vendor',
|
|
114
|
+
WHOLESALE_FOOD: 'Wholesale',
|
|
115
|
+
UNKNOWN: 'Unknown',
|
|
116
|
+
},
|
|
117
|
+
|
|
73
118
|
type_inline: {
|
|
74
119
|
ARABLE: 'farm',
|
|
75
120
|
LIVESTOCK: 'ranch',
|
|
76
121
|
FARMERS_MARKET: 'farmers market',
|
|
77
122
|
GROWER_NETWORK: 'grower network',
|
|
123
|
+
RESTAURANT: 'restaurant',
|
|
78
124
|
VENDOR: 'vendor',
|
|
125
|
+
WHOLESALE_FOOD: 'wholesale food business',
|
|
126
|
+
UNKNOWN: 'unknown organization',
|
|
79
127
|
},
|
|
80
128
|
|
|
81
129
|
type_active: {
|
|
@@ -83,7 +131,10 @@ export default {
|
|
|
83
131
|
LIVESTOCK: 'Ranching',
|
|
84
132
|
FARMERS_MARKET: 'Market',
|
|
85
133
|
GROWER_NETWORK: 'Grower network',
|
|
134
|
+
RESTAURANT: 'Restaurant',
|
|
86
135
|
VENDOR: 'Vendor',
|
|
136
|
+
WHOLESALE_FOOD: 'Wholesale',
|
|
137
|
+
UNKNOWN: 'Unknown',
|
|
87
138
|
},
|
|
88
139
|
|
|
89
140
|
type_detailed: {
|
|
@@ -91,7 +142,10 @@ export default {
|
|
|
91
142
|
LIVESTOCK: 'Livestock ranch (livestock)',
|
|
92
143
|
FARMERS_MARKET: 'Farmers market',
|
|
93
144
|
GROWER_NETWORK: 'Grower network',
|
|
145
|
+
RESTAURANT: 'Restaurant',
|
|
94
146
|
VENDOR: 'Vendor (customer or supplier)',
|
|
147
|
+
WHOLESALE_FOOD: 'Wholesale (Food)',
|
|
148
|
+
UNKNOWN: 'Unknown',
|
|
95
149
|
},
|
|
96
150
|
|
|
97
151
|
operation_desc: {
|
|
@@ -116,12 +170,27 @@ export default {
|
|
|
116
170
|
LIVESTOCK: 'livestock',
|
|
117
171
|
FARMERS_MARKET: 'product',
|
|
118
172
|
GROWER_NETWORK: 'product',
|
|
173
|
+
RESTAURANT: 'product',
|
|
119
174
|
VENDOR: 'product',
|
|
175
|
+
WHOLESALE_FOOD: 'product',
|
|
176
|
+
UNKNOWN: 'product',
|
|
120
177
|
},
|
|
121
178
|
|
|
122
179
|
children: {
|
|
123
|
-
GROWER_NETWORK: 'Farms',
|
|
180
|
+
GROWER_NETWORK: 'Farms/Ranches',
|
|
124
181
|
FARMERS_MARKET: 'Vendors',
|
|
182
|
+
default: 'Organizations',
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
view: {
|
|
186
|
+
ARABLE: 'View farm',
|
|
187
|
+
LIVESTOCK: 'View ranch',
|
|
188
|
+
FARMERS_MARKET: 'View farmers market',
|
|
189
|
+
GROWER_NETWORK: 'View organization',
|
|
190
|
+
RESTAURANT: 'View restaurant',
|
|
191
|
+
VENDOR: 'View vendor',
|
|
192
|
+
WHOLESALE_FOOD: 'View wholesale business',
|
|
193
|
+
UNKNOWN: 'View organization',
|
|
125
194
|
},
|
|
126
195
|
|
|
127
196
|
edit: {
|
|
@@ -129,7 +198,10 @@ export default {
|
|
|
129
198
|
LIVESTOCK: 'Edit ranch',
|
|
130
199
|
FARMERS_MARKET: 'Edit farmers market',
|
|
131
200
|
GROWER_NETWORK: 'Edit organization',
|
|
201
|
+
RESTAURANT: 'Edit restaurant',
|
|
132
202
|
VENDOR: 'Edit vendor',
|
|
203
|
+
WHOLESALE_FOOD: 'Edit wholesale business',
|
|
204
|
+
UNKNOWN: 'Edit organization',
|
|
133
205
|
},
|
|
134
206
|
|
|
135
207
|
delete: {
|
|
@@ -137,7 +209,21 @@ export default {
|
|
|
137
209
|
LIVESTOCK: 'Delete ranch',
|
|
138
210
|
FARMERS_MARKET: 'Delete farmers market',
|
|
139
211
|
GROWER_NETWORK: 'Delete organization',
|
|
212
|
+
RESTAURANT: 'Delete restaurant',
|
|
140
213
|
VENDOR: 'Delete vendor',
|
|
214
|
+
WHOLESALE_FOOD: 'Delete wholesale business',
|
|
215
|
+
UNKNOWN: 'Delete organization',
|
|
216
|
+
},
|
|
217
|
+
|
|
218
|
+
remove: {
|
|
219
|
+
ARABLE: 'Remove farm',
|
|
220
|
+
LIVESTOCK: 'Remove ranch',
|
|
221
|
+
FARMERS_MARKET: 'Remove farmers market',
|
|
222
|
+
GROWER_NETWORK: 'Remove organization',
|
|
223
|
+
RESTAURANT: 'Remove restaurant',
|
|
224
|
+
VENDOR: 'Remove vendor',
|
|
225
|
+
WHOLESALE_FOOD: 'Remove wholesale business',
|
|
226
|
+
UNKNOWN: 'Remove organization',
|
|
141
227
|
},
|
|
142
228
|
|
|
143
229
|
contact_department: {
|
|
@@ -150,12 +236,12 @@ export default {
|
|
|
150
236
|
},
|
|
151
237
|
|
|
152
238
|
compliance: {
|
|
153
|
-
ORGANIC: 'Organic',
|
|
154
|
-
INSURANCE: 'Insurance',
|
|
155
|
-
PRODUCERS_CERTIFICATE: 'Producer',
|
|
156
|
-
MILK_HANDLER_LICENSE: 'Milk Handler',
|
|
157
|
-
EGG_HANDLER_LICENSE: 'Egg Handler',
|
|
158
|
-
NURSERY_LICENSE: 'Nursery',
|
|
239
|
+
ORGANIC: 'Organic certification',
|
|
240
|
+
INSURANCE: 'Insurance policy',
|
|
241
|
+
PRODUCERS_CERTIFICATE: 'Producer\'s certificate',
|
|
242
|
+
MILK_HANDLER_LICENSE: 'Milk Handler license',
|
|
243
|
+
EGG_HANDLER_LICENSE: 'Egg Handler license',
|
|
244
|
+
NURSERY_LICENSE: 'Nursery license',
|
|
159
245
|
},
|
|
160
246
|
|
|
161
247
|
event_type: {
|
package/src/i18n/product.ts
CHANGED
|
@@ -8,9 +8,13 @@ export default {
|
|
|
8
8
|
markets_empty_msg: 'Talk to your AI to create farmers market events.',
|
|
9
9
|
event_not_scheduled_msg: 'This event is not scheduled for this date.',
|
|
10
10
|
attendance_list_empty_msg: 'Attendance list is empty for this date.',
|
|
11
|
+
workflow: 'Workflow',
|
|
11
12
|
|
|
12
13
|
// Report
|
|
13
14
|
collected_total_ct_evidences: 'Collected a total of %{smart_count} evidence.||||Collected a total of %{smart_count} evidences.',
|
|
15
|
+
reporting_year: 'Reporting year',
|
|
16
|
+
not_answered_msg: 'This question hasn\'t been answered yet.',
|
|
17
|
+
report_summary_not_done: 'AI is still generating the report summary.',
|
|
14
18
|
|
|
15
19
|
// Content names
|
|
16
20
|
view_document: 'View document',
|
|
@@ -31,6 +35,9 @@ export default {
|
|
|
31
35
|
SICK: 'Sick',
|
|
32
36
|
SOLD: 'Sold',
|
|
33
37
|
DECEASED: 'Deceased',
|
|
38
|
+
PASS: 'Pass',
|
|
39
|
+
WARNING: 'Warning',
|
|
40
|
+
FAIL: 'Fail',
|
|
34
41
|
},
|
|
35
42
|
|
|
36
43
|
event_frequency_msg: {
|
|
@@ -42,34 +49,28 @@ export default {
|
|
|
42
49
|
market: 'Markets',
|
|
43
50
|
},
|
|
44
51
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
feature_instructions: {
|
|
53
|
-
// This object is the "instruction" field of "actions" database document.
|
|
54
|
-
// It's used as visualization purposes only, in front-end UI.
|
|
55
|
-
CAL_EVENTS_ATTENDANCE: "Read the log and record the vendor's attendance.",
|
|
56
|
-
CAL_EVENTS_LOAD_LIST: "Save the vendor's load list for the market day.",
|
|
57
|
-
},
|
|
52
|
+
feature_short: {
|
|
53
|
+
NORMAL_LOGGING: 'Logs',
|
|
54
|
+
SITE_INSPECTION: 'Site inspection',
|
|
55
|
+
FOOD_SAFETY: 'Food safety',
|
|
56
|
+
GLOBAL_GAP: 'GLOBALG.A.P.',
|
|
57
|
+
LIVESTOCK_MANAGEMENT: 'Livestock',
|
|
58
|
+
},
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
feature_title: {
|
|
61
|
+
NORMAL_LOGGING: 'Logs',
|
|
62
|
+
SITE_INSPECTION: 'Site inspection',
|
|
63
|
+
FOOD_SAFETY: 'Food safety',
|
|
64
|
+
GLOBAL_GAP: 'GLOBALG.A.P.',
|
|
65
|
+
LIVESTOCK_MANAGEMENT: 'Livestock management',
|
|
65
66
|
},
|
|
66
67
|
|
|
67
68
|
// Reports
|
|
68
69
|
|
|
69
70
|
report: {
|
|
70
71
|
GLOBAL_GAP: 'GLOBALG.A.P.',
|
|
71
|
-
ORGANIC_CERTIFICATION: 'USDA National Organic Program (NOP)',
|
|
72
|
-
CLEANING: 'Cleaning logs',
|
|
73
72
|
},
|
|
73
|
+
|
|
74
|
+
back_to_globalgap: 'Back to GLOBALG.A.P.',
|
|
74
75
|
},
|
|
75
76
|
};
|