@jsb188/app 1.1.6 → 1.1.8

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 (46) hide show
  1. package/package.json +31 -29
  2. package/{constants → src/constants}/app.ts +10 -4
  3. package/src/constants/storage.ts +4 -0
  4. package/{i18n → src/i18n}/account.ts +8 -0
  5. package/src/i18n/ai_agent.ts +88 -0
  6. package/{i18n → src/i18n}/app.ts +3 -0
  7. package/{i18n → src/i18n}/billing.ts +1 -1
  8. package/src/i18n/country.ts +249 -0
  9. package/{i18n → src/i18n}/error.ts +10 -4
  10. package/{i18n → src/i18n}/form.ts +36 -6
  11. package/src/i18n/index.ts +35 -0
  12. package/src/i18n/log.ts +484 -0
  13. package/src/i18n/message.ts +11 -0
  14. package/src/i18n/org.ts +165 -0
  15. package/src/i18n/product.ts +75 -0
  16. package/{main.ts → src/main.ts} +20 -29
  17. package/{types → src/types}/app.d.ts +2 -1
  18. package/{types → src/types}/auth.d.ts +1 -1
  19. package/{types → src/types}/other.d.ts +2 -19
  20. package/src/types/storage.d.ts +70 -0
  21. package/{utils/user.ts → src/utils/account.ts} +7 -64
  22. package/{utils → src/utils}/api.ts +5 -5
  23. package/{utils → src/utils}/billing.ts +1 -1
  24. package/{utils → src/utils}/datetime.ts +3 -3
  25. package/{utils → src/utils}/object.ts +11 -6
  26. package/{utils → src/utils}/string.ts +2 -2
  27. package/tsconfig.json +13 -0
  28. package/i18n/index.ts +0 -5
  29. package/utils/action.ts +0 -28
  30. /package/{constants → src/constants}/billing.ts +0 -0
  31. /package/{constants → src/constants}/emoji.ts +0 -0
  32. /package/{constants → src/constants}/other.ts +0 -0
  33. /package/{constants → src/constants}/user.ts +0 -0
  34. /package/{constants → src/constants}/wsActions.ts +0 -0
  35. /package/{i18n → src/i18n}/auth.ts +0 -0
  36. /package/{i18n → src/i18n}/datetime.ts +0 -0
  37. /package/{platform.ts → src/platform.ts} +0 -0
  38. /package/{types → src/types}/account.d.ts +0 -0
  39. /package/{types → src/types}/ai.d.ts +0 -0
  40. /package/{types → src/types}/form.d.ts +0 -0
  41. /package/{types.d.ts → src/types.d.ts} +0 -0
  42. /package/{utils → src/utils}/emoji.ts +0 -0
  43. /package/{utils → src/utils}/logic.ts +0 -0
  44. /package/{utils → src/utils}/number.ts +0 -0
  45. /package/{utils → src/utils}/timeZone.ts +0 -0
  46. /package/{utils → src/utils}/url_client.ts +0 -0
package/package.json CHANGED
@@ -1,39 +1,41 @@
1
1
  {
2
2
  "name": "@jsb188/app",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
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/other": "./constants/other.ts",
18
- "./constants/user": "./constants/user.ts",
19
- "./constants/wsActions": "./constants/wsActions.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/string": "./utils/string.ts",
28
- "./utils/timeZone": "./utils/timeZone.ts",
29
- "./utils/url_client": "./utils/url_client.ts",
30
- "./utils/user": "./utils/user.ts",
31
- "./types/account.d": "./types/account.d.ts",
32
- "./types/ai.d": "./types/ai.d.ts",
33
- "./types/app.d": "./types/app.d.ts",
34
- "./types/auth.d": "./types/auth.d.ts",
35
- "./types/form.d": "./types/form.d.ts",
36
- "./types/other.d": "./types/other.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"
37
39
  },
38
40
  "dependencies": {
39
41
  "node-polyglot": "^2.6.0",
@@ -1,5 +1,9 @@
1
1
  type IDDocumentType = any; // Server <-> Client match
2
2
 
3
+ // Max file size (client)
4
+
5
+ export const MAX_FILE_SIZE_CLIENT = 15 * 1024 * 1024; // 15 MB
6
+
3
7
  // DOM element names (ids)
4
8
 
5
9
  export const DOM_IDS = {
@@ -26,12 +30,14 @@ export const COMMON_CLASSNAMES = {
26
30
  modalScreenHeading: 'pt_lg pb_df ft_normal ft_xs cl_darker_2 ls_2',
27
31
  };
28
32
 
29
- // Encryption
33
+ // Encryption & code words used to make IDs more readable for human users
30
34
 
31
35
  export const DOCUMENT_TYPE_TO_PREFIX: Record<string, IDDocumentType | IDDocumentType[]> = {
32
- 'activity log or note': ['log', 'inv'], // I've seen AI mistakenly use "activity log or note" for invoices, so we have to comebine it
33
- 'invoice': ['log', 'inv'],
34
- 'purchase order': ['log', 'inv'],
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'],
35
41
  'user account': 'acc',
36
42
  'ai task': 'task',
37
43
  'event': 'event',
@@ -0,0 +1,4 @@
1
+
2
+ export const STORAGE_INTENT_ENUMS = [
3
+ 'REPORT_SUBMISSION_FILE'
4
+ ];
@@ -82,5 +82,13 @@ export default {
82
82
  report_user: 'Report user',
83
83
  profile_deactivated_desc: 'This account has been deactivated.',
84
84
  phone_numbers: 'Phone numbers',
85
+
86
+ // Roles
87
+ role: {
88
+ MEMBER: 'Employee',
89
+ MANAGER: 'Manager',
90
+ ADMIN: 'Admin',
91
+ OWNER: 'Owner',
92
+ },
85
93
  },
86
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
+ };
@@ -74,5 +74,8 @@ export default {
74
74
 
75
75
  // Subscription related
76
76
  sub_needed: 'You need a subscription to use this feature.',
77
+
78
+ // SMS
79
+ verification_code_sms: 'Your verification code is: %{verificationCode}',
77
80
  },
78
81
  };
@@ -1,4 +1,4 @@
1
- import { SOCIAL_URLS } from "../constants/app";
1
+ import { SOCIAL_URLS } from "../constants/app.ts";
2
2
 
3
3
  // NOTE: Can't use /constants/ here because this file is loaded before all else
4
4
  const PerksSubDays = 14;
@@ -0,0 +1,249 @@
1
+ export default {
2
+ en: {
3
+ from_code: {
4
+ AF: 'Afghanistan',
5
+ AX: 'Åland Islands',
6
+ AL: 'Albania',
7
+ DZ: 'Algeria',
8
+ AS: 'American Samoa',
9
+ AD: 'AndorrA',
10
+ AO: 'Angola',
11
+ AI: 'Anguilla',
12
+ AQ: 'Antarctica',
13
+ AG: 'Antigua and Barbuda',
14
+ AR: 'Argentina',
15
+ AM: 'Armenia',
16
+ AW: 'Aruba',
17
+ AU: 'Australia',
18
+ AT: 'Austria',
19
+ AZ: 'Azerbaijan',
20
+ BS: 'Bahamas',
21
+ BH: 'Bahrain',
22
+ BD: 'Bangladesh',
23
+ BB: 'Barbados',
24
+ BY: 'Belarus',
25
+ BE: 'Belgium',
26
+ BZ: 'Belize',
27
+ BJ: 'Benin',
28
+ BM: 'Bermuda',
29
+ BT: 'Bhutan',
30
+ BO: 'Bolivia',
31
+ BA: 'Bosnia and Herzegovina',
32
+ BW: 'Botswana',
33
+ BV: 'Bouvet Island',
34
+ BR: 'Brazil',
35
+ IO: 'British Indian Ocean Territory',
36
+ BN: 'Brunei Darussalam',
37
+ BG: 'Bulgaria',
38
+ BF: 'Burkina Faso',
39
+ BI: 'Burundi',
40
+ KH: 'Cambodia',
41
+ CM: 'Cameroon',
42
+ CA: 'Canada',
43
+ CV: 'Cape Verde',
44
+ KY: 'Cayman Islands',
45
+ CF: 'Central African Republic',
46
+ TD: 'Chad',
47
+ CL: 'Chile',
48
+ CN: 'China',
49
+ CX: 'Christmas Island',
50
+ CC: 'Cocos (Keeling) Islands',
51
+ CO: 'Colombia',
52
+ KM: 'Comoros',
53
+ CG: 'Congo',
54
+ CD: 'Congo, The Democratic Republic of the',
55
+ CK: 'Cook Islands',
56
+ CR: 'Costa Rica',
57
+ CI: 'Cote D\'Ivoire',
58
+ HR: 'Croatia',
59
+ CU: 'Cuba',
60
+ CY: 'Cyprus',
61
+ CZ: 'Czech Republic',
62
+ DK: 'Denmark',
63
+ DJ: 'Djibouti',
64
+ DM: 'Dominica',
65
+ DO: 'Dominican Republic',
66
+ EC: 'Ecuador',
67
+ EG: 'Egypt',
68
+ SV: 'El Salvador',
69
+ GQ: 'Equatorial Guinea',
70
+ ER: 'Eritrea',
71
+ EE: 'Estonia',
72
+ ET: 'Ethiopia',
73
+ FK: 'Falkland Islands (Malvinas)',
74
+ FO: 'Faroe Islands',
75
+ FJ: 'Fiji',
76
+ FI: 'Finland',
77
+ FR: 'France',
78
+ GF: 'French Guiana',
79
+ PF: 'French Polynesia',
80
+ TF: 'French Southern Territories',
81
+ GA: 'Gabon',
82
+ GM: 'Gambia',
83
+ GE: 'Georgia',
84
+ DE: 'Germany',
85
+ GH: 'Ghana',
86
+ GI: 'Gibraltar',
87
+ GR: 'Greece',
88
+ GL: 'Greenland',
89
+ GD: 'Grenada',
90
+ GP: 'Guadeloupe',
91
+ GU: 'Guam',
92
+ GT: 'Guatemala',
93
+ GG: 'Guernsey',
94
+ GN: 'Guinea',
95
+ GW: 'Guinea-Bissau',
96
+ GY: 'Guyana',
97
+ HT: 'Haiti',
98
+ HM: 'Heard Island and Mcdonald Islands',
99
+ VA: 'Holy See (Vatican City State)',
100
+ HN: 'Honduras',
101
+ HK: 'Hong Kong',
102
+ HU: 'Hungary',
103
+ IS: 'Iceland',
104
+ IN: 'India',
105
+ ID: 'Indonesia',
106
+ IR: 'Iran, Islamic Republic Of',
107
+ IQ: 'Iraq',
108
+ IE: 'Ireland',
109
+ IM: 'Isle of Man',
110
+ IL: 'Israel',
111
+ IT: 'Italy',
112
+ JM: 'Jamaica',
113
+ JP: 'Japan',
114
+ JE: 'Jersey',
115
+ JO: 'Jordan',
116
+ KZ: 'Kazakhstan',
117
+ KE: 'Kenya',
118
+ KI: 'Kiribati',
119
+ KP: 'Korea, Democratic People\'s Republic of',
120
+ KR: 'Korea, Republic of',
121
+ KW: 'Kuwait',
122
+ KG: 'Kyrgyzstan',
123
+ LA: 'Lao People\'s Democratic Republic',
124
+ LV: 'Latvia',
125
+ LB: 'Lebanon',
126
+ LS: 'Lesotho',
127
+ LR: 'Liberia',
128
+ LY: 'Libyan Arab Jamahiriya',
129
+ LI: 'Liechtenstein',
130
+ LT: 'Lithuania',
131
+ LU: 'Luxembourg',
132
+ MO: 'Macao',
133
+ MK: 'Macedonia, The Former Yugoslav Republic of',
134
+ MG: 'Madagascar',
135
+ MW: 'Malawi',
136
+ MY: 'Malaysia',
137
+ MV: 'Maldives',
138
+ ML: 'Mali',
139
+ MT: 'Malta',
140
+ MH: 'Marshall Islands',
141
+ MQ: 'Martinique',
142
+ MR: 'Mauritania',
143
+ MU: 'Mauritius',
144
+ YT: 'Mayotte',
145
+ MX: 'México',
146
+ FM: 'Micronesia, Federated States of',
147
+ MD: 'Moldova, Republic of',
148
+ MC: 'Monaco',
149
+ MN: 'Mongolia',
150
+ MS: 'Montserrat',
151
+ MA: 'Morocco',
152
+ MZ: 'Mozambique',
153
+ MM: 'Myanmar',
154
+ NA: 'Namibia',
155
+ NR: 'Nauru',
156
+ NP: 'Nepal',
157
+ NL: 'Netherlands',
158
+ AN: 'Netherlands Antilles',
159
+ NC: 'New Caledonia',
160
+ NZ: 'New Zealand',
161
+ NI: 'Nicaragua',
162
+ NE: 'Niger',
163
+ NG: 'Nigeria',
164
+ NU: 'Niue',
165
+ NF: 'Norfolk Island',
166
+ MP: 'Northern Mariana Islands',
167
+ NO: 'Norway',
168
+ OM: 'Oman',
169
+ PK: 'Pakistan',
170
+ PW: 'Palau',
171
+ PS: 'Palestinian Territory, Occupied',
172
+ PA: 'Panama',
173
+ PG: 'Papua New Guinea',
174
+ PY: 'Paraguay',
175
+ PE: 'Peru',
176
+ PH: 'Philippines',
177
+ PN: 'Pitcairn',
178
+ PL: 'Poland',
179
+ PT: 'Portugal',
180
+ PR: 'Puerto Rico',
181
+ QA: 'Qatar',
182
+ RE: 'Reunion',
183
+ RO: 'Romania',
184
+ RU: 'Russian Federation',
185
+ RW: 'RWANDA',
186
+ SH: 'Saint Helena',
187
+ KN: 'Saint Kitts and Nevis',
188
+ LC: 'Saint Lucia',
189
+ PM: 'Saint Pierre and Miquelon',
190
+ VC: 'Saint Vincent and the Grenadines',
191
+ WS: 'Samoa',
192
+ SM: 'San Marino',
193
+ ST: 'Sao Tome and Principe',
194
+ SA: 'Saudi Arabia',
195
+ SN: 'Senegal',
196
+ CS: 'Serbia and Montenegro',
197
+ SC: 'Seychelles',
198
+ SL: 'Sierra Leone',
199
+ SG: 'Singapore',
200
+ SK: 'Slovakia',
201
+ SI: 'Slovenia',
202
+ SB: 'Solomon Islands',
203
+ SO: 'Somalia',
204
+ ZA: 'South Africa',
205
+ GS: 'South Georgia and the South Sandwich Islands',
206
+ ES: 'Spain',
207
+ LK: 'Sri Lanka',
208
+ SD: 'Sudan',
209
+ SR: 'Suriname',
210
+ SJ: 'Svalbard and Jan Mayen',
211
+ SZ: 'Swaziland',
212
+ SE: 'Sweden',
213
+ CH: 'Switzerland',
214
+ SY: 'Syrian Arab Republic',
215
+ TW: 'Taiwan',
216
+ TJ: 'Tajikistan',
217
+ TZ: 'Tanzania, United Republic of',
218
+ TH: 'Thailand',
219
+ TL: 'Timor-Leste',
220
+ TG: 'Togo',
221
+ TK: 'Tokelau',
222
+ TO: 'Tonga',
223
+ TT: 'Trinidad and Tobago',
224
+ TN: 'Tunisia',
225
+ TR: 'Turkey',
226
+ TM: 'Turkmenistan',
227
+ TC: 'Turks and Caicos Islands',
228
+ TV: 'Tuvalu',
229
+ UG: 'Uganda',
230
+ UA: 'Ukraine',
231
+ AE: 'United Arab Emirates',
232
+ GB: 'United Kingdom',
233
+ US: 'United States',
234
+ UM: 'United States Minor Outlying Islands',
235
+ UY: 'Uruguay',
236
+ UZ: 'Uzbekistan',
237
+ VU: 'Vanuatu',
238
+ VE: 'Venezuela',
239
+ VN: 'Viet Nam',
240
+ VG: 'Virgin Islands, British',
241
+ VI: 'Virgin Islands, U.S.',
242
+ WF: 'Wallis and Futuna',
243
+ EH: 'Western Sahara',
244
+ YE: 'Yemen',
245
+ ZM: 'Zambia',
246
+ ZW: 'Zimbabwe'
247
+ }
248
+ }
249
+ }
@@ -3,9 +3,12 @@ export default {
3
3
  error: 'Error',
4
4
  invalid: 'Invalid',
5
5
  network_error_title: 'Network error',
6
- unknown_error: 'An unknown error occured.',
6
+ server_outage_title: 'Service disruption',
7
+ server_outage_msg: 'Our servers are experiencing a disruption or we may be deploying an update. Please try again in a moment.',
8
+ unknown_error: 'Unknown error',
9
+ unknown_error_msg: 'An unknown error occured.',
7
10
  network_error: 'Failed to connect to server.\nPlease try again in a moment.',
8
- network_or_outage_error: 'Failed to connect to server. If your internet connection is stable, our servers may be experiencing an outage.',
11
+ network_error_msg: 'Failed to connect to server. Please check if your\n internet connection is stable.',
9
12
  app_error_title: 'App crashed',
10
13
  app_error: 'Uh-oh, please refresh the page and tell someone.',
11
14
  not_allowed: 'Not allowed',
@@ -103,6 +106,7 @@ export default {
103
106
  20061: 'You do not have permissions to perform this action. Please contact your administrator.',
104
107
  20062: '"%{value}" is not a valid e-mail address.',
105
108
  20063: 'You cannot change your e-mail to the same e-mail address.',
109
+ 20064: 'Your file is too large. Please try again with a smaller file.',
106
110
 
107
111
  '29999_title': 'Not ready',
108
112
  29999: 'AI chat is not ready right now.',
@@ -129,6 +133,8 @@ export default {
129
133
  30024: 'Stripe customer and payment method was mismatched.',
130
134
  30025: 'E-mail server is experiencing an outage. Please try again in a moment.',
131
135
  30028: 'You cannot send an empty message.',
136
+ '30031_title': 'Upload failed',
137
+ 30031: 'There was an issue while uploading your file.\n Please try again in a moment.',
132
138
 
133
139
  // Form errors
134
140
 
@@ -150,8 +156,8 @@ export default {
150
156
 
151
157
  // File errors
152
158
 
153
- upload_failed: 'File upload failed.',
154
- file_too_large: 'Your file is too large. It must be less than %{maxFileSize}.',
159
+ file_too_large: 'File too large',
160
+ file_too_large_msg: 'Your file is too large.\n It must be less than %{maxFileSize}.',
155
161
  // file_must_be_photo: 'That is an invalid file. It must be a picture.',
156
162
  img_processing_failed: "Your file couldn't be processed. Please upload a valid image file.",
157
163
  // audio_processing_failed: 'Your file couldn\'t be processed. Please upload a valid audio file.',
@@ -29,6 +29,7 @@ export default {
29
29
  sort_list: 'Sort list',
30
30
  apply: 'Apply',
31
31
  apply_filters: 'Apply filters',
32
+ missing: 'Missing',
32
33
  content_missing: 'Content missing',
33
34
  content_not_found_msg: 'The content you are looking for could not be found.',
34
35
  reports: 'Reports',
@@ -36,8 +37,12 @@ export default {
36
37
  title: 'Title',
37
38
  hide: 'Hide',
38
39
  show: 'Show',
40
+ open: 'Open',
39
41
  deleted: 'Deleted',
40
42
  delete: 'Delete',
43
+ delete_file: 'Delete file',
44
+ delete_file_msg: 'Are you sure you want to delete this file<br /><span class=\"em_text\">"%{fileName}"</span>?',
45
+ yes_delete_file: 'Yes, delete this file',
41
46
  balance: 'Balance',
42
47
  number: 'Number',
43
48
  livestock: 'Livestock',
@@ -67,6 +72,7 @@ export default {
67
72
  loading_: 'Loading...',
68
73
  save: 'Save',
69
74
  saving_: 'Saving...',
75
+ uploading_: 'Uploading...',
70
76
  undo_changes: 'Undo changes',
71
77
  save_changes: 'Save changes',
72
78
  unsaved_changes_msg: 'You have unsaved changes.',
@@ -83,10 +89,9 @@ export default {
83
89
  join: 'Join',
84
90
  change_img: 'Change image',
85
91
  upload_img: 'Upload image',
86
- upload_files: 'Upload files',
92
+ upload_file: 'Upload file',
87
93
  keep_current_img: 'Keep current image',
88
94
  select_file: 'Select file',
89
- task_: 'Task – %{text}',
90
95
  tasks: 'Tasks',
91
96
  latest_update: 'Latest update',
92
97
  name: 'Name',
@@ -114,6 +119,7 @@ export default {
114
119
  country_ph: 'United States, Canada, etc.',
115
120
  postalCode: 'Zip code', // USA uses zip code
116
121
  postalCode_ph: '12345',
122
+ guide: 'Guide',
117
123
  workflows: 'Workflows',
118
124
  information: 'Information',
119
125
  instructions: 'Instructions',
@@ -128,6 +134,7 @@ export default {
128
134
  pin_to_top: 'Pin to top',
129
135
  create_new: 'Create new',
130
136
  upload: 'Upload',
137
+ uploaded_ct: 'Uploaded %{count}/%{max}',
131
138
  create: 'Create',
132
139
  invite: 'Invite',
133
140
  invited: 'Invited',
@@ -189,6 +196,9 @@ export default {
189
196
  success: 'Success',
190
197
  success_: 'Success!',
191
198
  help: 'Help',
199
+ show_help: 'Show help',
200
+ show_document_guidelines: 'Show document guidelines',
201
+ hide_document_guidelines: 'Hide document guidelines',
192
202
  advanced: 'Advanced',
193
203
  start: 'Start',
194
204
  started: 'Started',
@@ -244,9 +254,6 @@ export default {
244
254
  water_unit: 'Unit (water)',
245
255
  water_unit_ph: 'gallons, litres',
246
256
 
247
- // File Browser Plus module
248
- fbp_upload_instructions: 'Click here to upload files, or drag and drop\n your files anywhere on the screen.',
249
-
250
257
  // Day periods
251
258
  greet_MORNING: 'Good morning, %{name}.',
252
259
  greet_AFTERNOON: 'Good afternoon, %{name}.',
@@ -261,6 +268,29 @@ export default {
261
268
  lang: {
262
269
  en: 'English',
263
270
  es: 'Spanish',
264
- }
271
+ },
272
+
273
+ _are_required: '%{value} is required.||||%{value} are required.',
274
+ category_: 'Category: %{value}',
275
+ task_: 'Task: %{value}',
276
+ activity_: 'Activity: %{value}',
277
+ details_: 'Details: %{value}',
278
+ location_: 'Location: %{value}',
279
+ date_: 'Date: %{value}',
280
+ scheduled_date_: 'Scheduled date: %{value}',
281
+ effective_date_: 'Effective date: %{value}',
282
+ ended_: 'Ended: %{value}',
283
+ start_: 'Start: %{value}',
284
+ end_: 'End: %{value}',
285
+ worker_: 'Worker: %{value}',
286
+ logged_by_: 'Logged by: %{value}',
287
+ tasked_by_: 'Tasked by: %{value}',
288
+ task: 'Task',
289
+
290
+ log: 'Log',
291
+ task_instructions: 'Task instructions',
292
+ total_price: 'Total price',
293
+ receipt_number: 'Receipt number',
294
+ invoice_number: 'Invoice number',
265
295
  },
266
296
  };
@@ -0,0 +1,35 @@
1
+ import Polyglot from 'node-polyglot';
2
+ import type NodePolyglot from '../types.d.ts'
3
+
4
+ import account from './account.ts';
5
+ import ai_agent from './ai_agent.ts';
6
+ import app from './app.ts';
7
+ import auth from './auth.ts';
8
+ import billing from './billing.ts';
9
+ import country from './country.ts';
10
+ import datetime from './datetime.ts';
11
+ import error from './error.ts';
12
+ import form from './form.ts';
13
+ import log from './log.ts';
14
+ import message from './message.ts';
15
+ import org from './org.ts';
16
+ import product from './product.ts';
17
+
18
+ export const i18nTranslations = {
19
+ account,
20
+ ai_agent,
21
+ app,
22
+ auth,
23
+ billing,
24
+ country,
25
+ datetime,
26
+ error,
27
+ form,
28
+ log,
29
+ message,
30
+ org,
31
+ product,
32
+ } as Record<string, any>;
33
+
34
+ const i18n = new Polyglot();
35
+ export default i18n as NodePolyglot;