@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
@@ -0,0 +1,484 @@
1
+ export default {
2
+ en: {
3
+ // General
4
+ log: 'Log',
5
+ logs: 'Logs',
6
+ all_logs: 'All logs',
7
+ cleaning_logs: 'Cleaning logs',
8
+ related_logs: 'Related logs',
9
+ nothing_found: 'No logs found.',
10
+ log_missing: 'Log missing',
11
+ log_missing_msg: 'There was a problem loading this log.',
12
+ unit_arable_ph: 'lbs',
13
+ location_arable_ph: 'Field A, Row 4, etc.',
14
+ location_water_ph: 'Water source A, etc.',
15
+ location_livestock: 'Location',
16
+ location_livestock_ph: 'Pasture A, Barn B, etc.',
17
+ livestockGroup: 'Group',
18
+ crop_ph: 'Tomato, broccoli, etc.',
19
+ livestock: 'Livestock',
20
+ livestockIdentifier: 'Livestock ID',
21
+ livestockIdentifiers: 'Livestock IDs',
22
+ livestock_ph: 'Cattle, goat, chicken, etc.',
23
+ fieldLocation: 'Field',
24
+ fieldLocation_ph: 'Field A, Section 1, etc.',
25
+ purchases: 'Purchases',
26
+ supply_purchases: 'Supply purchases',
27
+ note_from_ai: 'Note from AI',
28
+ id_tags: 'ID tag(s)',
29
+ id_tags_ph: '121, 212, 444, etc',
30
+ group: 'Livestock group',
31
+ group_ph: 'Herd A, Pasture B Group, etc',
32
+ receipt_for: 'Receipt for',
33
+ market: 'Market',
34
+ marketCredits: 'Market credits',
35
+ marketCredits_ph: '$25 MC, $5 EBT, etc.',
36
+ seeding: 'Seeding',
37
+ transplanting: 'Transplanting',
38
+ field_work: 'Field work',
39
+ harvest: 'Harvest',
40
+ harvested: 'Harvested',
41
+ post_harvest: 'Post-harvest',
42
+ food_safety: 'Food safety',
43
+ hygiene: 'Hygiene',
44
+ sanitation: 'Sanitation',
45
+ materials: 'Materials',
46
+ biosecurity: 'Biosecurity',
47
+ employees: 'Employees',
48
+ name_of_credit: 'Name of credit',
49
+ water_testing: 'Chlorine levels',
50
+ vendor: 'Vendor',
51
+ invoice_number: 'Invoice number',
52
+ 'invoice_#': 'Invoice #',
53
+ invoice_item: 'Invoice item',
54
+ invoice_items: 'Invoice items',
55
+ invoice_items_ph: 'Name of item, etc.',
56
+ receipt_number: 'Receipt number',
57
+ receipt_is_void: 'Receipt is void',
58
+ receipt_is_not_void: 'Receipt is not void',
59
+ no_permissions_to_edit: 'You do not have edit permissions.',
60
+ note_ph: 'Write additional notes about this log.',
61
+ note_ph_voided: 'Voided logs cannot be edited.',
62
+ unknown_crop: 'Unknown crop',
63
+ delete_confirm_msg: 'Are you sure you want to delete this %{content}? This action cannot be undone.',
64
+ yes_delete_log: 'Yes, delete this %{content}',
65
+ loaded_more_than_: 'You loaded more than %{limit} logs. Please refine your search to see more logs.',
66
+ end_of_list_: (
67
+ 'You reached the end of this list with %{smart_count} entry.||||' +
68
+ 'You reached the end of this list with %{smart_count} entries.'
69
+ ),
70
+
71
+ // Need one of each for every {contentName} for log
72
+ inline_log: 'log',
73
+ inline_ai_task: 'task',
74
+ inline_invoice: 'invoice',
75
+ inline_receipt: 'receipt',
76
+
77
+ edit_log: 'Edit log',
78
+ edit_ai_task: 'Edit task',
79
+ edit_invoice: 'Edit invoice',
80
+ edit_receipt: 'Edit receipt',
81
+
82
+ view_edit_log: 'View or edit log',
83
+ view_edit_ai_task: 'View or edit task',
84
+ view_edit_invoice: 'View or edit invoice',
85
+ view_edit_receipt: 'View or edit receipt',
86
+
87
+ delete_log: 'Delete log',
88
+ delete_ai_task: 'Delete task',
89
+ delete_invoice: 'Delete invoice',
90
+ delete_receipt: 'Delete receipt',
91
+
92
+ // Types
93
+ type: {
94
+ // #### ARABLE
95
+ SEED: 'Seed purchase',
96
+ PLANTING: 'Seeding & transplanting',
97
+ FIELD: 'Field activity',
98
+ HARVEST: 'Harvest activity',
99
+ POST_HARVEST: 'Post-harvest activity',
100
+ SALES: 'Sales & purchase order',
101
+ WATER: 'Water testing',
102
+
103
+ // #### ARABLE - FOOD SAFETY
104
+ HYGIENE: 'Hygiene procedures',
105
+ SANITATION: 'Sanitation infrastructure',
106
+ EQUIPMENTS: 'Materials & food containers/equipments',
107
+ BIOSECURITY: 'Environment & biosecurity',
108
+ EMPLOYEES: 'Employee & operation notes',
109
+
110
+ // #### FARMERS_MARKET
111
+ MARKET_RECEIPTS: 'Receipt',
112
+ MARKET_OPERATIONS: 'Operation',
113
+
114
+ // #### LIVESTOCK
115
+ SUPPLY_PURCHASE: 'Supply purchase',
116
+ LIVESTOCK_LIFE_CYCLE: 'Livestock life cycle',
117
+ LIVESTOCK_TRACKING: 'Livestock tracking',
118
+ PASTURE_LAND_MANAGEMENT: 'Pasture management',
119
+ LIVESTOCK_HEALTHCARE: 'Livestock healthcare',
120
+ LIVESTOCK_SALE: 'Livestock sale',
121
+
122
+ // #### Merged into every operation
123
+ AI_TASK: 'AI task',
124
+ },
125
+ type_short: {
126
+ // #### ARABLE
127
+ SEED: 'Seed purchase',
128
+ PLANTING: 'Planting',
129
+ FIELD: 'Field work',
130
+ HARVEST: 'Harvested',
131
+ POST_HARVEST: 'Post-harvest',
132
+ SALES: 'Sale',
133
+ WATER: 'Water testing',
134
+
135
+ // #### ARABLE - FOOD SAFETY
136
+ HYGIENE: 'Hygiene',
137
+ SANITATION: 'Sanitation',
138
+ EQUIPMENTS: 'Materials',
139
+ BIOSECURITY: 'Biosecurity',
140
+ EMPLOYEES: 'Employee',
141
+
142
+ // #### FARMERS_MARKET
143
+ MARKET_RECEIPTS: 'Receipt',
144
+ MARKET_OPERATIONS: 'Operation',
145
+ VOID_MARKET_RECEIPTS: 'Void receipt',
146
+
147
+ // #### LIVESTOCK
148
+ SUPPLY_PURCHASE: 'Supply purchase',
149
+ LIVESTOCK_LIFE_CYCLE: 'Life cycle',
150
+ LIVESTOCK_TRACKING: 'Tracking',
151
+ PASTURE_LAND_MANAGEMENT: 'Pasture',
152
+ LIVESTOCK_HEALTHCARE: 'Healthcare',
153
+ LIVESTOCK_SALE: 'Sale',
154
+
155
+ // #### Merged into every operation
156
+ AI_TASK: 'AI task',
157
+ },
158
+
159
+ // Activities
160
+ activity: {
161
+ // #### ARABLE
162
+
163
+ // # Seed activities
164
+ SEED_PURCHASE_INFO: 'Seed purchase',
165
+ OTHER_SUPPLY_PURCHASE_ACTIVITY: 'Other supply purchase',
166
+
167
+ // # Transplanting activities
168
+ SEEDING: 'Seeding crops',
169
+ DIRECT_SEEDING: 'Direct seeding crops',
170
+ TRANSPLANTING: 'Transplanting crops',
171
+ SEED_COMPLIANCE_NOTE: 'Seed compliance notes',
172
+ OTHER_TRANSPLANT_ACTIVITY: 'Other seeding/transplanting activities',
173
+
174
+ // # Field activities
175
+ PREPARE_SOIL: 'Soil, bed preparation',
176
+ PLANTING: 'Seeding, transplanting', // Deprecated & moved to "PLANTING" category
177
+ IRRIGATION: 'Irrigation, water management',
178
+ FERTILIZATION_COMPOST: 'Fertilization, compost',
179
+ PROTECT_CROP: 'Crop protection (weeds, pests, diseases)',
180
+ MONITOR_CROP: 'Crop monitoring, observations',
181
+ PRUNING: 'Pruning',
182
+ STRUCTURE_MAINTENANCE: 'Trellising, structure maintenance',
183
+ PREPARE_HARVEST: 'Preparing crops for harvest',
184
+ OTHER_FIELD_ACTIVITY: 'General field notes',
185
+
186
+ // # Harvest activities
187
+ HARVEST_CROP: 'Harvested crops',
188
+ HARVEST_COUNT: 'Counting, weighing harvested crops',
189
+ SORT_GRADE: 'Sorting, grading crops',
190
+ YIELD_LOSS_ESTIMATE: 'Estimating yield or loss',
191
+ OTHER_HARVEST_ACTIVITY: 'Other harvest activities',
192
+
193
+ // # Post-harvest activities
194
+ POST_HARVEST_HANDLING: 'Handling or grading produce',
195
+ POST_HARVEST_PACKAGING: 'Packaging or moving produce to storage',
196
+ COLD_STORAGE_TEMPERATURE: 'Cold storage temperature',
197
+ OTHER_POST_HARVEST_ACTIVITY: 'Other post-harvest activities',
198
+
199
+ // # Sales activities
200
+ SALE_PRODUCE_ORDER: 'Purchase order (produce)',
201
+ OTHER_SALE_ORDER: 'Purchase order (other)',
202
+
203
+ // # Water testing activities
204
+ WATER_TESTING: 'Water testing (chlorine levels)',
205
+ OTHER_WATER_TESTING_ACTIVITY: 'Other water testing activities',
206
+
207
+ // #### ARRABLE - FOOD SAFETY
208
+
209
+ // # Hygiene procedures
210
+ HYGIENE_PROCEDURE: 'Hygiene procedures',
211
+ CONTAMINANT_RISK: 'Contaminants (physical, chemical, microbial)',
212
+ BODILY_FLUID_CONTAMINATION: 'Bodily fluid decontamination',
213
+ SMOKING_EATING_DRINKING_CONTROL: 'Smoking/eating/drinking controls',
214
+ PPE_USAGE: 'Personal protective equipment (PPE)',
215
+
216
+ // # Sanitation infrastructure
217
+ SANITATION_RISK: 'Sanitation risk',
218
+ SANITATION_CONSTRUCTION_MAINTENANCE: 'Sanitation facilities construction/maintenance',
219
+ SANITATION_CLEANING: 'Sanitation facilities cleaning',
220
+ SANITATION_PEST_CONTROL: 'Sanitation facilities pest control',
221
+
222
+ // # Materials & equipments
223
+ EQUIPMENTS_MATERIALS_RISK: 'Materials food safety risk',
224
+ EQUIPMENTS_MATERIALS_CLEANING: 'Materials/food equipments cleaning',
225
+
226
+ // # Environment & biosecurity
227
+ ENVIRONMENT_RISK: 'Environmental food safety risk',
228
+
229
+ // # Employee incidents & training
230
+ EMPLOYEE_ORIENTATION: 'Employee orientation',
231
+ EMPLOYEE_TRAINING: 'Employee training',
232
+ SICK_EMPLOYEE: 'Sick employee',
233
+ EMPLOYEE_INJURED: 'Injured employee',
234
+ EMPLOYEE_NOTES: 'Notes on employees',
235
+ OPERATION_NOTES: 'General operation notes',
236
+
237
+ // #### FARMERS MARKET
238
+
239
+ // # Market credit receipts activities
240
+ MARKET_CREDIT_RECEIPT: 'Market credit receipt',
241
+
242
+ // # Market operation activities
243
+ MARKET_ATTENDANCE: 'Event attendance',
244
+ MARKET_LOAD_LIST: 'Market load list',
245
+ VENDOR_NOTES: 'Notes on vendors',
246
+ FARMERS_MARKET_NOTES: 'General operation notes',
247
+
248
+ // #### LIVESTOCK
249
+
250
+ // # Feed & Supply purchases activities
251
+ FEED_PURCHASE: 'Feed purchase',
252
+ // OTHER_SUPPLY_PURCHASE_ACTIVITY: 'Other supply purchase', // This is double'd in Arable
253
+
254
+ // # Livestock life cycle activities
255
+ LIVESTOCK_PURCHASE: 'Livestock purchase',
256
+ LIVESTOCK_BIRTH: 'Livestock birth',
257
+ LIVESTOCK_REPRODUCTION: 'Livestock reproduction',
258
+ LIVESTOCK_DEATH: 'Livestock death',
259
+ OTHER_LIVESTOCK_LIFE_CYCLE_ACTIVITY: 'Other life cycle activities',
260
+
261
+ // # Livestock tracking activities
262
+ LIVESTOCK_GROUP_TRACKING: 'Group tracking',
263
+ LIVESTOCK_PASTURE_TRACKING: 'Pasture tracking',
264
+ LIVESTOCK_ROTATIONAL_GRAZING: 'Rotational grazing',
265
+ OTHER_LIVESTOCK_TRACKING_ACTIVITY: 'Other tracking activities',
266
+
267
+ // # Pasture land management activities
268
+ PASTURE_SEEDING: 'Pasture seeding',
269
+ FENCE_MAINTENANCE: 'Fence maintenance',
270
+ WATER_SOURCE_MAINTENANCE: 'Water source maintenance',
271
+ OTHER_PASTURE_LAND_MANAGEMENT_ACTIVITY: 'General ranching operation notes',
272
+
273
+ // # Livestock healthcare activities
274
+ LIVESTOCK_VACCINATION: 'Livestock vaccination',
275
+ LIVESTOCK_SICK: 'Sick livestock',
276
+ LIVESTOCK_INJURY: 'Injured livestock',
277
+ LIVESTOCK_CULL: 'Livestock culling',
278
+ LIVESTOCK_TREATMENT: 'Livestock treatment',
279
+ OTHER_LIVESTOCK_HEALTHCARE_ACTIVITY: 'Other healthcare activities',
280
+
281
+ // # Livestock sale activities
282
+ LIVESTOCK_SALE: 'Livestock sale',
283
+ 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
+ },
291
+
292
+ // Short versions will override longer version for UI purposes
293
+
294
+ activity_short: {
295
+ // # Seed activities
296
+ SEED_PURCHASE_INFO: 'Seed purchase',
297
+ OTHER_SUPPLY_PURCHASE_ACTIVITY: 'Supply purchase',
298
+
299
+ // # Transplanting activities
300
+ SEEDING: 'Seeding',
301
+ DIRECT_SEEDING: 'Direct seeding',
302
+ TRANSPLANTING: 'Transplanting',
303
+ SEED_COMPLIANCE_NOTE: 'Notes',
304
+ OTHER_TRANSPLANT_ACTIVITY: 'Other',
305
+
306
+ // # Field activities
307
+ PREPARE_SOIL: 'Soil prep',
308
+ IRRIGATION: 'Irrigation',
309
+ FERTILIZATION_COMPOST: 'Fertilization',
310
+ PROTECT_CROP: 'Protection',
311
+ MONITOR_CROP: 'Monitoring',
312
+ PRUNING: 'Pruning',
313
+ STRUCTURE_MAINTENANCE: 'Structure',
314
+ PREPARE_HARVEST: 'Harvest prep',
315
+ OTHER_FIELD_ACTIVITY: 'Notes',
316
+
317
+ // # Harvest activities
318
+ HARVEST_CROP: 'Harvested',
319
+ HARVEST_COUNT: 'Counting/weighing',
320
+ SORT_GRADE: 'Sorting/grading',
321
+ YIELD_LOSS_ESTIMATE: 'Yield/loss',
322
+ OTHER_HARVEST_ACTIVITY: 'Harvest-related',
323
+
324
+ // # Post-harvest activities
325
+ POST_HARVEST_HANDLING: 'Handling',
326
+ POST_HARVEST_PACKAGING: 'Storage',
327
+ COLD_STORAGE_TEMPERATURE: 'Cold storage',
328
+ OTHER_POST_HARVEST_ACTIVITY: 'Post-harvest',
329
+
330
+ // # Sales activities
331
+ SALE_PRODUCE_ORDER: 'Purchase',
332
+ OTHER_SALE_ORDER: 'Purchase (other)',
333
+
334
+ // # Water testing activities
335
+ WATER_TESTING: 'Water testing',
336
+ OTHER_WATER_TESTING_ACTIVITY: 'Water testing',
337
+
338
+ // #### ARRABLE - FOOD SAFETY
339
+
340
+ // # Hygiene procedures
341
+ HYGIENE_PROCEDURE: 'Hygiene',
342
+ CONTAMINANT_RISK: 'Contaminants',
343
+ BODILY_FLUID_CONTAMINATION: 'Excretion',
344
+ SMOKING_EATING_DRINKING_CONTROL: 'Substance',
345
+ PPE_USAGE: 'PPE',
346
+
347
+ // # Sanitation infrastructure
348
+ SANITATION_RISK: 'Sanitation',
349
+ SANITATION_CONSTRUCTION_MAINTENANCE: 'Maintenance',
350
+ SANITATION_CLEANING: 'Cleaning',
351
+ SANITATION_PEST_CONTROL: 'Pest control',
352
+
353
+ // # Materials & equipments
354
+ EQUIPMENTS_MATERIALS_RISK: 'Materials',
355
+ EQUIPMENTS_MATERIALS_CLEANING: 'Cleaning',
356
+
357
+ // # Environment & biosecurity
358
+ ENVIRONMENT_RISK: 'Environmental',
359
+
360
+ // # Employee incidents & training
361
+ EMPLOYEE_ORIENTATION: 'Orientation',
362
+ EMPLOYEE_TRAINING: 'Training',
363
+ SICK_EMPLOYEE: 'Sick',
364
+ EMPLOYEE_INJURED: 'Injured',
365
+ EMPLOYEE_NOTES: 'Notes',
366
+ OPERATION_NOTES: 'Operation',
367
+
368
+ // #### FARMERS MARKET
369
+
370
+ // # Market credit receipts activities
371
+ MARKET_CREDIT_RECEIPT: 'Credit receipt',
372
+
373
+ // # Market operation activities
374
+ MARKET_ATTENDANCE: 'Attendance',
375
+ MARKET_LOAD_LIST: 'Load list',
376
+ VENDOR_NOTES: 'Notes',
377
+ FARMERS_MARKET_NOTES: 'Operation',
378
+
379
+ // #### LIVESTOCK
380
+
381
+ // # Feed & Supply purchases activities
382
+ FEED_PURCHASE: 'Feed purchase',
383
+ // OTHER_SUPPLY_PURCHASE_ACTIVITY: 'Other supply purchase', // This is double'd in Arable
384
+
385
+ // # Livestock life cycle activities
386
+ LIVESTOCK_PURCHASE: 'Purchase',
387
+ LIVESTOCK_BIRTH: 'Birth',
388
+ LIVESTOCK_REPRODUCTION: 'Reproduction',
389
+ LIVESTOCK_DEATH: 'Death',
390
+ OTHER_LIVESTOCK_LIFE_CYCLE_ACTIVITY: 'Life cycle',
391
+
392
+ // # Livestock tracking activities
393
+ LIVESTOCK_GROUP_TRACKING: 'Group tracking',
394
+ LIVESTOCK_PASTURE_TRACKING: 'Pasture tracking',
395
+ LIVESTOCK_ROTATIONAL_GRAZING: 'Rotational grazing',
396
+ OTHER_LIVESTOCK_TRACKING_ACTIVITY: 'Other tracking',
397
+
398
+ // # Pasture land management activities
399
+ PASTURE_SEEDING: 'Pasture seeding',
400
+ FENCE_MAINTENANCE: 'Fence maintenance',
401
+ WATER_SOURCE_MAINTENANCE: 'Water source',
402
+ OTHER_PASTURE_LAND_MANAGEMENT_ACTIVITY: 'Operation notes',
403
+
404
+ // # Livestock healthcare activities
405
+ LIVESTOCK_VACCINATION: 'Vaccination',
406
+ LIVESTOCK_SICK: 'Sick notes',
407
+ LIVESTOCK_INJURY: 'Injury',
408
+ LIVESTOCK_CULL: 'Culling',
409
+ LIVESTOCK_TREATMENT: 'Treatment',
410
+ OTHER_LIVESTOCK_HEALTHCARE_ACTIVITY: 'Healthcare related',
411
+
412
+ // # Livestock sale activities
413
+ LIVESTOCK_SALE: 'Sale',
414
+ 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
+ },
422
+
423
+ // Search sort
424
+
425
+ sort: {
426
+ GROUP_BY_VENDORS: 'Sort by vendors',
427
+ DATE_AND_VENDOR_DESC: 'Sort by date, vendors',
428
+ DATE_DESC: 'Sort by date',
429
+ null: 'Disable sorting',
430
+ },
431
+
432
+ sort_short: {
433
+ GROUP_BY_VENDORS: 'Sort by vendors',
434
+ DATE_AND_VENDOR_DESC: 'Sort by date, vendors',
435
+ DATE_DESC: 'Sort by date',
436
+ null: 'Disable sorting',
437
+ },
438
+
439
+ // Search filters
440
+ filter: {
441
+ logType: 'Activities',
442
+ logType_ct: 'Activities (%{count})',
443
+ dateRange: 'Date range',
444
+ weeks_5: '5 weeks',
445
+ search: 'Search',
446
+ 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
+ },
452
+
453
+ // Search filter popover options
454
+ filter_by: {
455
+ preset: 'Filter by Preset',
456
+ activity: 'Filter by Activity',
457
+ date_range: 'Filter by Dates',
458
+ weeks_5: '5 weeks',
459
+ ai_tasks_only: 'AI tasks only',
460
+ search: 'Search for Keywords',
461
+ },
462
+
463
+ // Accounting dates
464
+ accounting_date: {
465
+ INVOICE: 'Invoice date',
466
+ RECEIPT: 'Receipt date',
467
+ },
468
+
469
+ // Accounting number
470
+ accounting_number: {
471
+ INVOICE: 'Invoice number',
472
+ RECEIPT: 'Receipt number',
473
+ },
474
+
475
+ // Task status
476
+ task_status: {
477
+ STARTED: 'Started',
478
+ COMPLETED: 'Completed',
479
+ ERRORED: 'Errored',
480
+ QUEUED: 'Queued',
481
+ CANCELED: 'Canceled',
482
+ },
483
+ },
484
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Use this file for all outbound messages (emails, SMS, notifications, etc.)
3
+ */
4
+
5
+ export default {
6
+ en: {
7
+ email_from_name: 'Marketday',
8
+ from_: 'From: %{name}',
9
+ sent_by_ai_msg: 'This e-mail was sent by Marketday AI.',
10
+ },
11
+ };
@@ -0,0 +1,165 @@
1
+ export default {
2
+ en: {
3
+ organization: 'Organization',
4
+ my_organizations: 'My organizations',
5
+ name: 'Organization name',
6
+ name_of: 'Name of organization',
7
+ type_of: 'Type of organization',
8
+ org_info: 'Organization information',
9
+ nothing_found: 'No organizations found.',
10
+ farms: 'Farms',
11
+ settings: 'Organization settings',
12
+ manage_team: 'Manage team',
13
+ invite_members: 'Invite members',
14
+ members_ct: '%{smart_count} member||||%{smart_count} members',
15
+ administration: 'Administration',
16
+ billing: 'Billing',
17
+ plans: 'Plans',
18
+ address_notice_msg: 'This information will appear on the invoices you generate for your customers and to others in your network.',
19
+ no_recurring_schedule: 'This event does not have a recurring schedule.',
20
+ daily_event_msg: 'This event repeats every day.',
21
+ single_event_msg: 'This event only occurs once.',
22
+ daily_digest: 'Daily digest',
23
+ compliance_title: 'Compliance',
24
+ compliance_docs: 'Compliance documents',
25
+ outstanding_balance: 'Outstanding balance',
26
+ recent_invoices: 'Recent invoices',
27
+ upcoming_invoices: 'Upcoming invoices',
28
+ upcoming_markets: 'Upcoming Markets',
29
+ past_markets: 'Past Markets',
30
+ load_lists: 'Load Lists',
31
+ contact_to_change: 'Please contact us to change this information.',
32
+ vendor_documents_not_found_msg: "This vendor hasn't submitted any compliance documents or certifications.",
33
+ switch_organizations: 'Switch organizations',
34
+ switch_msg: (
35
+ 'Messages from your phone number <span class="em_text"><span class="rel z1">%{phoneNumber}</span></span> ' +
36
+ 'will only be sent to your primary organization, <span class="em_text"><span class="rel z1">%{orgName}</span></span>.'
37
+ ),
38
+ switch_msg_no_org_selected: (
39
+ 'Messages from your phone number <span class="em_text"><span class="rel z1">%{phoneNumber}</span></span> ' +
40
+ 'will only be sent to your primary organization.'
41
+ ),
42
+ switch_msg_no_phone_selected: (
43
+ 'Messages from your phone number ' +
44
+ 'will only be sent to your primary organization, <span class="em_text"><span class="rel z1">%{orgName}</span></span>.'
45
+ ),
46
+ switch_msg_none_selected: (
47
+ 'Messages from your phone number will only be sent to your primary organization.'
48
+ ),
49
+ switch_instr: 'Select from the list below to change your primary organization.',
50
+
51
+ switch_confirm_msg: (
52
+ // NOTE: Because ".em_text" only works when the entire word is in 1 line,
53
+ // we need to give as much space as possible to <span> block.
54
+ 'Do you want to switch your primary organization to ' +
55
+ '<span class="em_text"><span class="rel z1">%{orgName}</span></span>?'
56
+ ),
57
+
58
+ switch_finished_msg: (
59
+ 'Your primary organization has been switched to ' +
60
+ '<span class="em_text"><span class="rel z1">%{orgName}</span></span>.'
61
+ ),
62
+
63
+ yes_switch: 'Yes, switch organization',
64
+
65
+ type: {
66
+ ARABLE: 'Arable farm',
67
+ LIVESTOCK: 'Livestock ranch',
68
+ FARMERS_MARKET: 'Farmers market',
69
+ GROWER_NETWORK: 'Grower network',
70
+ VENDOR: 'Vendor',
71
+ },
72
+
73
+ type_inline: {
74
+ ARABLE: 'farm',
75
+ LIVESTOCK: 'ranch',
76
+ FARMERS_MARKET: 'farmers market',
77
+ GROWER_NETWORK: 'grower network',
78
+ VENDOR: 'vendor',
79
+ },
80
+
81
+ type_active: {
82
+ ARABLE: 'Farming',
83
+ LIVESTOCK: 'Ranching',
84
+ FARMERS_MARKET: 'Market',
85
+ GROWER_NETWORK: 'Grower network',
86
+ VENDOR: 'Vendor',
87
+ },
88
+
89
+ type_detailed: {
90
+ ARABLE: 'Arable farm (produce)',
91
+ LIVESTOCK: 'Livestock ranch (livestock)',
92
+ FARMERS_MARKET: 'Farmers market',
93
+ GROWER_NETWORK: 'Grower network',
94
+ VENDOR: 'Vendor (customer or supplier)',
95
+ },
96
+
97
+ operation_desc: {
98
+ ARABLE: 'Crop production (%{commodities})',
99
+ LIVESTOCK: 'Livestock production (%{commodities})',
100
+
101
+ ARABLE_default: 'Crop production (produce)',
102
+ LIVESTOCK_default: 'Livestock production',
103
+
104
+ // ..
105
+ // Other operations will defaults to "Unknown"
106
+ },
107
+
108
+ cert_scope: {
109
+ ARABLE: 'Crop production',
110
+ LIVESTOCK: 'Livestock production',
111
+ // Defaults to "Unknown"
112
+ },
113
+
114
+ product: {
115
+ ARABLE: 'produce',
116
+ LIVESTOCK: 'livestock',
117
+ FARMERS_MARKET: 'product',
118
+ GROWER_NETWORK: 'product',
119
+ VENDOR: 'product',
120
+ },
121
+
122
+ children: {
123
+ GROWER_NETWORK: 'Farms',
124
+ FARMERS_MARKET: 'Vendors',
125
+ },
126
+
127
+ edit: {
128
+ ARABLE: 'Edit farm',
129
+ LIVESTOCK: 'Edit ranch',
130
+ FARMERS_MARKET: 'Edit farmers market',
131
+ GROWER_NETWORK: 'Edit organization',
132
+ VENDOR: 'Edit vendor',
133
+ },
134
+
135
+ delete: {
136
+ ARABLE: 'Delete farm',
137
+ LIVESTOCK: 'Delete ranch',
138
+ FARMERS_MARKET: 'Delete farmers market',
139
+ GROWER_NETWORK: 'Delete organization',
140
+ VENDOR: 'Delete vendor',
141
+ },
142
+
143
+ contact_department: {
144
+ PRIMARY_CONTACT: 'General inquiries',
145
+ ACCOUNTS_RECEIVABLE: 'Accounts receivable',
146
+ SALES: 'Sales',
147
+ CUSTOMER_SERVICE: 'Customer service',
148
+ SHIPPING_RECEIVING: 'Shipping & receiving',
149
+ OTHER: 'Other inquiries',
150
+ },
151
+
152
+ 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',
159
+ },
160
+
161
+ event_type: {
162
+ FARMERS_MARKET: 'Market',
163
+ },
164
+ },
165
+ };