@jsb188/app 1.1.6 → 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.
- package/package.json +31 -29
- package/{constants → src/constants}/app.ts +10 -4
- package/src/constants/storage.ts +4 -0
- package/{i18n → src/i18n}/account.ts +8 -0
- package/src/i18n/ai_agent.ts +88 -0
- package/{i18n → src/i18n}/app.ts +3 -0
- package/{i18n → src/i18n}/billing.ts +1 -1
- package/src/i18n/country.ts +249 -0
- package/{i18n → src/i18n}/error.ts +7 -3
- package/{i18n → src/i18n}/form.ts +35 -6
- package/src/i18n/index.ts +35 -0
- package/src/i18n/log.ts +484 -0
- package/src/i18n/message.ts +11 -0
- package/src/i18n/org.ts +165 -0
- package/src/i18n/product.ts +75 -0
- package/{main.ts → src/main.ts} +20 -29
- package/{types → src/types}/app.d.ts +2 -1
- package/{types → src/types}/auth.d.ts +1 -1
- package/{types → src/types}/other.d.ts +2 -19
- package/src/types/storage.d.ts +70 -0
- package/{utils/user.ts → src/utils/account.ts} +7 -64
- package/{utils → src/utils}/api.ts +3 -3
- package/{utils → src/utils}/billing.ts +1 -1
- package/{utils → src/utils}/datetime.ts +3 -3
- package/{utils → src/utils}/object.ts +11 -6
- package/{utils → src/utils}/string.ts +2 -2
- package/tsconfig.json +13 -0
- package/i18n/index.ts +0 -5
- package/utils/action.ts +0 -28
- /package/{constants → src/constants}/billing.ts +0 -0
- /package/{constants → src/constants}/emoji.ts +0 -0
- /package/{constants → src/constants}/other.ts +0 -0
- /package/{constants → src/constants}/user.ts +0 -0
- /package/{constants → src/constants}/wsActions.ts +0 -0
- /package/{i18n → src/i18n}/auth.ts +0 -0
- /package/{i18n → src/i18n}/datetime.ts +0 -0
- /package/{platform.ts → src/platform.ts} +0 -0
- /package/{types → src/types}/account.d.ts +0 -0
- /package/{types → src/types}/ai.d.ts +0 -0
- /package/{types → src/types}/form.d.ts +0 -0
- /package/{types.d.ts → src/types.d.ts} +0 -0
- /package/{utils → src/utils}/emoji.ts +0 -0
- /package/{utils → src/utils}/logic.ts +0 -0
- /package/{utils → src/utils}/number.ts +0 -0
- /package/{utils → src/utils}/timeZone.ts +0 -0
- /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.
|
|
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/other": "./constants/other.ts",
|
|
18
|
-
"./constants/
|
|
19
|
-
"./constants/
|
|
20
|
-
"./
|
|
21
|
-
"./utils/
|
|
22
|
-
"./utils/
|
|
23
|
-
"./utils/
|
|
24
|
-
"./utils/
|
|
25
|
-
"./utils/
|
|
26
|
-
"./utils/
|
|
27
|
-
"./utils/
|
|
28
|
-
"./utils/
|
|
29
|
-
"./utils/
|
|
30
|
-
"./utils/
|
|
31
|
-
"./
|
|
32
|
-
"./types/
|
|
33
|
-
"./types/
|
|
34
|
-
"./types/
|
|
35
|
-
"./types/
|
|
36
|
-
"./types/
|
|
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 = 10 * 1024 * 1024; // 10 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',
|
|
@@ -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
|
+
};
|
package/{i18n → src/i18n}/app.ts
RENAMED
|
@@ -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,11 @@ export default {
|
|
|
3
3
|
error: 'Error',
|
|
4
4
|
invalid: 'Invalid',
|
|
5
5
|
network_error_title: 'Network error',
|
|
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.',
|
|
6
8
|
unknown_error: 'An unknown error occured.',
|
|
7
9
|
network_error: 'Failed to connect to server.\nPlease try again in a moment.',
|
|
8
|
-
|
|
10
|
+
network_error_msg: 'Failed to connect to server. Please check if your\n internet connection is stable.',
|
|
9
11
|
app_error_title: 'App crashed',
|
|
10
12
|
app_error: 'Uh-oh, please refresh the page and tell someone.',
|
|
11
13
|
not_allowed: 'Not allowed',
|
|
@@ -103,6 +105,7 @@ export default {
|
|
|
103
105
|
20061: 'You do not have permissions to perform this action. Please contact your administrator.',
|
|
104
106
|
20062: '"%{value}" is not a valid e-mail address.',
|
|
105
107
|
20063: 'You cannot change your e-mail to the same e-mail address.',
|
|
108
|
+
20064: 'Your file is too large. Please try again with a smaller file.',
|
|
106
109
|
|
|
107
110
|
'29999_title': 'Not ready',
|
|
108
111
|
29999: 'AI chat is not ready right now.',
|
|
@@ -129,6 +132,7 @@ export default {
|
|
|
129
132
|
30024: 'Stripe customer and payment method was mismatched.',
|
|
130
133
|
30025: 'E-mail server is experiencing an outage. Please try again in a moment.',
|
|
131
134
|
30028: 'You cannot send an empty message.',
|
|
135
|
+
30031: 'There was an issue while uploading your file.',
|
|
132
136
|
|
|
133
137
|
// Form errors
|
|
134
138
|
|
|
@@ -150,8 +154,8 @@ export default {
|
|
|
150
154
|
|
|
151
155
|
// File errors
|
|
152
156
|
|
|
153
|
-
|
|
154
|
-
|
|
157
|
+
file_too_large: 'File too large',
|
|
158
|
+
file_too_large_msg: 'Your file is too large.\n It must be less than %{maxFileSize}.',
|
|
155
159
|
// file_must_be_photo: 'That is an invalid file. It must be a picture.',
|
|
156
160
|
img_processing_failed: "Your file couldn't be processed. Please upload a valid image file.",
|
|
157
161
|
// 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',
|
|
@@ -38,6 +39,9 @@ export default {
|
|
|
38
39
|
show: 'Show',
|
|
39
40
|
deleted: 'Deleted',
|
|
40
41
|
delete: 'Delete',
|
|
42
|
+
delete_file: 'Delete file',
|
|
43
|
+
delete_file_msg: 'Are you sure you want to delete this file<br /><span class=\"em_text\">"%{fileName}"</span>?',
|
|
44
|
+
yes_delete_file: 'Yes, delete this file',
|
|
41
45
|
balance: 'Balance',
|
|
42
46
|
number: 'Number',
|
|
43
47
|
livestock: 'Livestock',
|
|
@@ -67,6 +71,7 @@ export default {
|
|
|
67
71
|
loading_: 'Loading...',
|
|
68
72
|
save: 'Save',
|
|
69
73
|
saving_: 'Saving...',
|
|
74
|
+
uploading_: 'Uploading...',
|
|
70
75
|
undo_changes: 'Undo changes',
|
|
71
76
|
save_changes: 'Save changes',
|
|
72
77
|
unsaved_changes_msg: 'You have unsaved changes.',
|
|
@@ -83,10 +88,9 @@ export default {
|
|
|
83
88
|
join: 'Join',
|
|
84
89
|
change_img: 'Change image',
|
|
85
90
|
upload_img: 'Upload image',
|
|
86
|
-
|
|
91
|
+
upload_file: 'Upload file',
|
|
87
92
|
keep_current_img: 'Keep current image',
|
|
88
93
|
select_file: 'Select file',
|
|
89
|
-
task_: 'Task – %{text}',
|
|
90
94
|
tasks: 'Tasks',
|
|
91
95
|
latest_update: 'Latest update',
|
|
92
96
|
name: 'Name',
|
|
@@ -114,6 +118,7 @@ export default {
|
|
|
114
118
|
country_ph: 'United States, Canada, etc.',
|
|
115
119
|
postalCode: 'Zip code', // USA uses zip code
|
|
116
120
|
postalCode_ph: '12345',
|
|
121
|
+
guide: 'Guide',
|
|
117
122
|
workflows: 'Workflows',
|
|
118
123
|
information: 'Information',
|
|
119
124
|
instructions: 'Instructions',
|
|
@@ -128,6 +133,7 @@ export default {
|
|
|
128
133
|
pin_to_top: 'Pin to top',
|
|
129
134
|
create_new: 'Create new',
|
|
130
135
|
upload: 'Upload',
|
|
136
|
+
uploaded_ct: 'Uploaded %{count}/%{max}',
|
|
131
137
|
create: 'Create',
|
|
132
138
|
invite: 'Invite',
|
|
133
139
|
invited: 'Invited',
|
|
@@ -189,6 +195,9 @@ export default {
|
|
|
189
195
|
success: 'Success',
|
|
190
196
|
success_: 'Success!',
|
|
191
197
|
help: 'Help',
|
|
198
|
+
show_help: 'Show help',
|
|
199
|
+
show_document_guidelines: 'Show document guidelines',
|
|
200
|
+
hide_document_guidelines: 'Hide document guidelines',
|
|
192
201
|
advanced: 'Advanced',
|
|
193
202
|
start: 'Start',
|
|
194
203
|
started: 'Started',
|
|
@@ -244,9 +253,6 @@ export default {
|
|
|
244
253
|
water_unit: 'Unit (water)',
|
|
245
254
|
water_unit_ph: 'gallons, litres',
|
|
246
255
|
|
|
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
256
|
// Day periods
|
|
251
257
|
greet_MORNING: 'Good morning, %{name}.',
|
|
252
258
|
greet_AFTERNOON: 'Good afternoon, %{name}.',
|
|
@@ -261,6 +267,29 @@ export default {
|
|
|
261
267
|
lang: {
|
|
262
268
|
en: 'English',
|
|
263
269
|
es: 'Spanish',
|
|
264
|
-
}
|
|
270
|
+
},
|
|
271
|
+
|
|
272
|
+
_are_required: '%{value} is required.||||%{value} are required.',
|
|
273
|
+
category_: 'Category: %{value}',
|
|
274
|
+
task_: 'Task: %{value}',
|
|
275
|
+
activity_: 'Activity: %{value}',
|
|
276
|
+
details_: 'Details: %{value}',
|
|
277
|
+
location_: 'Location: %{value}',
|
|
278
|
+
date_: 'Date: %{value}',
|
|
279
|
+
scheduled_date_: 'Scheduled date: %{value}',
|
|
280
|
+
effective_date_: 'Effective date: %{value}',
|
|
281
|
+
ended_: 'Ended: %{value}',
|
|
282
|
+
start_: 'Start: %{value}',
|
|
283
|
+
end_: 'End: %{value}',
|
|
284
|
+
worker_: 'Worker: %{value}',
|
|
285
|
+
logged_by_: 'Logged by: %{value}',
|
|
286
|
+
tasked_by_: 'Tasked by: %{value}',
|
|
287
|
+
task: 'Task',
|
|
288
|
+
|
|
289
|
+
log: 'Log',
|
|
290
|
+
task_instructions: 'Task instructions',
|
|
291
|
+
total_price: 'Total price',
|
|
292
|
+
receipt_number: 'Receipt number',
|
|
293
|
+
invoice_number: 'Invoice number',
|
|
265
294
|
},
|
|
266
295
|
};
|
|
@@ -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;
|