@jsb188/app 1.1.7 → 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 +52 -22
- package/src/i18n/form.ts +87 -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 +32 -21
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsb188/app",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Contains all the basic requirements for all @jsb188 apps.",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "jsb188",
|
|
@@ -9,37 +9,37 @@
|
|
|
9
9
|
"types": "src/types.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": "./src/main.ts",
|
|
12
|
-
"./platform": "./src/platform.ts",
|
|
13
|
-
"./i18n": "./src/i18n/index.ts",
|
|
14
|
-
"./constants/
|
|
15
|
-
"./constants/
|
|
16
|
-
"./constants/
|
|
17
|
-
"./constants/
|
|
18
|
-
"./constants/
|
|
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/
|
|
27
|
-
"./utils/
|
|
28
|
-
"./utils/
|
|
29
|
-
"./utils/
|
|
30
|
-
"./utils/
|
|
31
|
-
"./utils/
|
|
32
|
-
"./
|
|
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"
|
|
12
|
+
"./platform.ts": "./src/platform.ts",
|
|
13
|
+
"./i18n/index.ts": "./src/i18n/index.ts",
|
|
14
|
+
"./constants/agent.ts": "./src/constants/agent.ts",
|
|
15
|
+
"./constants/app.ts": "./src/constants/app.ts",
|
|
16
|
+
"./constants/billing.ts": "./src/constants/billing.ts",
|
|
17
|
+
"./constants/emoji.ts": "./src/constants/emoji.ts",
|
|
18
|
+
"./constants/other.ts": "./src/constants/other.ts",
|
|
19
|
+
"./constants/user.ts": "./src/constants/user.ts",
|
|
20
|
+
"./constants/wsActions.ts": "./src/constants/wsActions.ts",
|
|
21
|
+
"./utils/account.ts": "./src/utils/account.ts",
|
|
22
|
+
"./utils/api.ts": "./src/utils/api.ts",
|
|
23
|
+
"./utils/billing.ts": "./src/utils/billing.ts",
|
|
24
|
+
"./utils/datetime.ts": "./src/utils/datetime.ts",
|
|
25
|
+
"./utils/emoji.ts": "./src/utils/emoji.ts",
|
|
26
|
+
"./utils/cron.ts": "./src/utils/cron.ts",
|
|
27
|
+
"./utils/logic.ts": "./src/utils/logic.ts",
|
|
28
|
+
"./utils/number.ts": "./src/utils/number.ts",
|
|
29
|
+
"./utils/object.ts": "./src/utils/object.ts",
|
|
30
|
+
"./utils/string.ts": "./src/utils/string.ts",
|
|
31
|
+
"./utils/timeZone.ts": "./src/utils/timeZone.ts",
|
|
32
|
+
"./utils/url_client.ts": "./src/utils/url_client.ts",
|
|
33
|
+
"./types/ai.d.ts": "./src/types/ai.d.ts",
|
|
34
|
+
"./types/app.d.ts": "./src/types/app.d.ts",
|
|
35
|
+
"./types/auth.d.ts": "./src/types/auth.d.ts",
|
|
36
|
+
"./types/form.d.ts": "./src/types/form.d.ts",
|
|
37
|
+
"./types/other.d.ts": "./src/types/other.d.ts"
|
|
39
38
|
},
|
|
40
39
|
"dependencies": {
|
|
41
40
|
"node-polyglot": "^2.6.0",
|
|
42
|
-
"luxon": "^3.6.1"
|
|
41
|
+
"luxon": "^3.6.1",
|
|
42
|
+
"cron-parser": "^5.5.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
// AI agent inboxes
|
|
3
|
+
|
|
4
|
+
const GROUP_TO_INBOX_DOMAINS = {
|
|
5
|
+
vendor: [
|
|
6
|
+
'orders.marketday.ai',
|
|
7
|
+
// 'agent.marketday.ai', // enable when ready
|
|
8
|
+
],
|
|
9
|
+
default: [
|
|
10
|
+
// 'agent.marketday.ai', // enable when ready
|
|
11
|
+
]
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const OPERATION_INBOX_DOMAINS = {
|
|
15
|
+
ARABLE: GROUP_TO_INBOX_DOMAINS.vendor,
|
|
16
|
+
RESTAURANT: GROUP_TO_INBOX_DOMAINS.vendor,
|
|
17
|
+
DEFAULT: GROUP_TO_INBOX_DOMAINS.default,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export const DOMAIN_TO_INBOX = {
|
|
22
|
+
// Assistant
|
|
23
|
+
'agent.marketday.ai': 'ASSISTANT',
|
|
24
|
+
'assistant.marketday.ai': 'ASSISTANT',
|
|
25
|
+
|
|
26
|
+
// General inquiry
|
|
27
|
+
'general.marketday.ai': 'GENERAL_INQUIRY',
|
|
28
|
+
'info.marketday.ai': 'GENERAL_INQUIRY',
|
|
29
|
+
'inquiry.marketday.ai': 'GENERAL_INQUIRY',
|
|
30
|
+
|
|
31
|
+
// Orders
|
|
32
|
+
'orders.marketday.ai': 'ORDERS',
|
|
33
|
+
} as const;
|
|
34
|
+
|
|
35
|
+
export const REQUEST_SOURCE_ENUMS = [
|
|
36
|
+
'SMS',
|
|
37
|
+
'WEB',
|
|
38
|
+
'EMAIL',
|
|
39
|
+
'WORKFLOW'
|
|
40
|
+
] as const;
|
|
41
|
+
|
|
42
|
+
export const WORKFLOW_RUN_STATUS_ENUMS = [
|
|
43
|
+
'STARTED',
|
|
44
|
+
'COMPLETED',
|
|
45
|
+
'COMPLETED_PARTIAL',
|
|
46
|
+
'ERRORED',
|
|
47
|
+
'QUEUED',
|
|
48
|
+
'CANCELED',
|
|
49
|
+
];
|
package/src/constants/app.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
type IDDocumentType = any; // Server <-> Client match
|
|
2
1
|
|
|
3
2
|
// Max file size (client)
|
|
4
3
|
|
|
5
|
-
export const MAX_FILE_SIZE_CLIENT =
|
|
4
|
+
export const MAX_FILE_SIZE_CLIENT = 20 * 1024 * 1024; // 20 MB
|
|
6
5
|
|
|
7
6
|
// DOM element names (ids)
|
|
8
7
|
|
|
@@ -16,32 +15,22 @@ export const DOM_IDS = {
|
|
|
16
15
|
// Common style variables
|
|
17
16
|
|
|
18
17
|
export const END_BUTTON_WIDTH = '40px';
|
|
19
|
-
export const
|
|
18
|
+
export const DATE_WIDTH = '100px';
|
|
19
|
+
export const DATE_AND_BUTTON_WIDTH = DATE_WIDTH + ' ' + END_BUTTON_WIDTH;
|
|
20
20
|
|
|
21
21
|
// Common, repeatable classnames
|
|
22
22
|
|
|
23
23
|
export const COMMON_CLASSNAMES = {
|
|
24
|
-
listContainer: 'cw lg responsive px_lg pt_md pb_lg',
|
|
25
24
|
listContainerFlushRight: 'cw lg responsive pl_lg pr_10 pt_md pb_lg',
|
|
26
25
|
leftSidebarContainer: 'cw lg pr_md',
|
|
27
|
-
// listContainer: 'cw lg responsive px_lg py_lg',
|
|
28
26
|
modalScreenSplitForm: 'h_top px_lg pb_md gap_lg',
|
|
29
27
|
modalScreenSplitContent: 'h_top px_md pb_md gap_lg',
|
|
30
28
|
modalScreenHeading: 'pt_lg pb_df ft_normal ft_xs cl_darker_2 ls_2',
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
// Encryption & code words used to make IDs more readable for human users
|
|
34
29
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
'sales receipt': ['log', 'inv', 'rec'],
|
|
40
|
-
'market credit receipt': ['log', 'inv', 'rec'],
|
|
41
|
-
'user account': 'acc',
|
|
42
|
-
'ai task': 'task',
|
|
43
|
-
'event': 'event',
|
|
44
|
-
'farmers market day': 'event',
|
|
30
|
+
// These are x-paddings used for consistency around content
|
|
31
|
+
tableRowXPadding: 'px_20',
|
|
32
|
+
contentXPadding: 'px_28',
|
|
33
|
+
contentXMargin: 'mx_28',
|
|
45
34
|
};
|
|
46
35
|
|
|
47
36
|
// Local storage
|
|
@@ -67,7 +56,7 @@ export const COMPANY_ADDRESS = {
|
|
|
67
56
|
country: 'US',
|
|
68
57
|
};
|
|
69
58
|
|
|
70
|
-
// Support
|
|
59
|
+
// Support emails
|
|
71
60
|
|
|
72
61
|
export const APP_EMAILS = {
|
|
73
62
|
support: 'hello@marketday.ai',
|
|
@@ -111,6 +100,18 @@ export const COLORS = [
|
|
|
111
100
|
'stone',
|
|
112
101
|
];
|
|
113
102
|
|
|
103
|
+
// Major colors where limited color options are preferred
|
|
104
|
+
|
|
105
|
+
export const MAJOR_COLORS = [
|
|
106
|
+
'red',
|
|
107
|
+
'amber',
|
|
108
|
+
'yellow',
|
|
109
|
+
'emerald', // Using "emerald" instead of "green" because its closer to brand color
|
|
110
|
+
'blue',
|
|
111
|
+
'purple',
|
|
112
|
+
'stone',
|
|
113
|
+
];
|
|
114
|
+
|
|
114
115
|
// Languages
|
|
115
116
|
|
|
116
117
|
export const SUPPORTED_LANGUAGES = [
|
package/src/i18n/account.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
en: {
|
|
3
|
-
name_ph: 'e.g.
|
|
4
|
-
|
|
5
|
-
pronouns_ph: 'Enter your pronouns',
|
|
3
|
+
name_ph: 'e.g. Jane Doe',
|
|
4
|
+
name_ph2: 'Jane Doe',
|
|
6
5
|
about: 'About me',
|
|
7
6
|
about_ph: 'This text will be displayed on your profile for others to see.',
|
|
8
7
|
username: 'Username',
|
|
9
8
|
username_ph: 'e.g. "@jane_doe"',
|
|
10
|
-
username_info: 'Username, ID, and
|
|
11
|
-
email: '
|
|
9
|
+
username_info: 'Username, ID, and email is used to log in to your account.',
|
|
10
|
+
email: 'Email',
|
|
12
11
|
email_ph: 'e.g. jane_doe@email.com',
|
|
12
|
+
email_ph2: 'jane_doe@email.com',
|
|
13
13
|
phone_ph: 'e.g. 123-444-5555',
|
|
14
|
+
phone_ph2: '123-444-5555',
|
|
14
15
|
password: 'Password',
|
|
15
16
|
password_ph: 'Enter your password',
|
|
16
17
|
passwordRepeat: 'Password (repeat)',
|
|
@@ -20,6 +21,25 @@ export default {
|
|
|
20
21
|
no_one_found: 'No one found with this query.',
|
|
21
22
|
|
|
22
23
|
// App settings
|
|
24
|
+
manage_team: 'Manage team',
|
|
25
|
+
change_role: 'Change role',
|
|
26
|
+
change_role_desc: (
|
|
27
|
+
'Choose [hl]%{name}[/hl]\'s new role in _%{orgName}_. ' +
|
|
28
|
+
'This will change their permissions and access to certain features.'
|
|
29
|
+
),
|
|
30
|
+
edit_note_desc: 'Edit note for [hl]%{name}[/hl].',
|
|
31
|
+
edit_note_fin_msg: 'Note for [hl]%{name}[/hl] in _%{orgName}_ has been updated.',
|
|
32
|
+
edit_note_help: (
|
|
33
|
+
'It\'s useful to write information here such as their job function, ' +
|
|
34
|
+
'dietary preferences, disabilities or anything else to help guide the AI. ' +
|
|
35
|
+
'_AI may update this note when it receives new information._'
|
|
36
|
+
),
|
|
37
|
+
change_role_fin_msg: (
|
|
38
|
+
'[hl]%{name}[/hl]\'s role in _%{orgName}_ has been changed to **%{role}**.'
|
|
39
|
+
),
|
|
40
|
+
remove_member_confirm_msg: 'Are you sure you want to remove\n [hl]%{name}[/hl] from _%{orgName}_?',
|
|
41
|
+
remove_member_fin_msg: '[hl]%{name}[/hl] has been removed from _%{orgName}_.',
|
|
42
|
+
remove_member: 'Remove member',
|
|
23
43
|
account: 'Account',
|
|
24
44
|
fName: 'First name',
|
|
25
45
|
lName: 'Last name',
|
|
@@ -38,9 +58,6 @@ export default {
|
|
|
38
58
|
// personas_desc: 'Manage your roleplay personas. Persona for the chat (your name and photo) can be changed by clicking your photo next to the chat textarea.',
|
|
39
59
|
personas_desc: 'Use personas to easily change your display name and profile photo. You can change your persona by clicking your photo next to the chat textarea.',
|
|
40
60
|
persona_label: 'Roleplay persona',
|
|
41
|
-
persona_ph: 'Persona\'s name',
|
|
42
|
-
upload_photo_desc: 'Change your profile photo.',
|
|
43
|
-
upload_persona_photo_desc: 'Change your persona\'s photo.',
|
|
44
61
|
badge: 'Badge',
|
|
45
62
|
badge_desc: 'Change the badge that appear next to your name in chat.',
|
|
46
63
|
badge_instr: 'This badge will be displayed next to your name:',
|
|
@@ -48,18 +65,24 @@ export default {
|
|
|
48
65
|
// Change sensitive account settings/info
|
|
49
66
|
enter_password: 'Enter password',
|
|
50
67
|
enter_password_msg: 'Confirm your identity before continuing.',
|
|
51
|
-
new_email: 'New
|
|
52
|
-
email_updated: '
|
|
53
|
-
email_updated_msg: 'Your
|
|
54
|
-
change_email: 'Change
|
|
55
|
-
change_email_msg: 'You will receive a confirmation
|
|
56
|
-
change_email_pw_confirm_msg: '
|
|
57
|
-
change_email_verify_msg: 'Follow the instructions in the
|
|
58
|
-
|
|
59
|
-
|
|
68
|
+
new_email: 'New email address',
|
|
69
|
+
email_updated: 'Email updated',
|
|
70
|
+
email_updated_msg: 'Your email address has been updated to:\n %{emailAddress}.',
|
|
71
|
+
change_email: 'Change email',
|
|
72
|
+
change_email_msg: 'You will receive a confirmation email\n to your new address.',
|
|
73
|
+
change_email_pw_confirm_msg: 'Please confirm your identity to\n change your email address.',
|
|
74
|
+
change_email_verify_msg: 'Follow the instructions in the email we sent\n to change your email address.',
|
|
75
|
+
change_password_msg: 'Enter your new password below.',
|
|
76
|
+
change_password_pw_confirm_msg: 'Please confirm your identity to\n change your password.',
|
|
77
|
+
change_phone: 'Change phone',
|
|
78
|
+
change_phone_msg: 'Please confirm your identity to\n change your phone number.',
|
|
79
|
+
change_phone_request_msg: 'Enter your new phone number below.\n We will send you a verification code.',
|
|
80
|
+
change_phone_verify_msg: 'Enter the verification code\n sent to your new phone number.',
|
|
60
81
|
currentPassword: 'Current password',
|
|
61
82
|
newPassword: 'New password',
|
|
62
83
|
newPasswordRepeat: 'New password (repeat)',
|
|
84
|
+
phone_updated: 'Number updated',
|
|
85
|
+
phone_updated_msg: 'Your phone number has been updated to:\n [hl]%{phoneNumber}[/hl].',
|
|
63
86
|
|
|
64
87
|
// Log out
|
|
65
88
|
logout: 'Log out',
|
|
@@ -8,6 +8,7 @@ export default {
|
|
|
8
8
|
// Response texts
|
|
9
9
|
thinking_: '💭 Thinking...',
|
|
10
10
|
processing_request_: '⚙️ Processing your request...',
|
|
11
|
+
creating_link_: '🔗 Creating a link...',
|
|
11
12
|
getting_new_id_: '🆔 Creating new ID number...',
|
|
12
13
|
saving_memories_: '💾 Saving memories...',
|
|
13
14
|
reading_stored_memories_: '🧠 Reading stored memories...',
|
|
@@ -15,6 +16,7 @@ export default {
|
|
|
15
16
|
writing_logs_: '📝 Writing log entries...',
|
|
16
17
|
searching_logs_: '📖 Searching for logs...',
|
|
17
18
|
searching_harvest_logs_: '📖 Searching for harvest logs...',
|
|
19
|
+
searching_avail_forms_: '🗄️ Searching for available forms...',
|
|
18
20
|
getting_file_url_: '📄 Getting file URL...',
|
|
19
21
|
create_reminder_task_: '📅 Creating task(s)...',
|
|
20
22
|
create_recurring_reminder_task_: '📅 Creating recurring task(s)...',
|
|
@@ -25,6 +27,8 @@ export default {
|
|
|
25
27
|
updating_contacts_: '🪪 Updating contacts list...',
|
|
26
28
|
searching_directory_: '🗂️ Searching directory...',
|
|
27
29
|
updating_directory_: '🗂️ Updating directory...',
|
|
30
|
+
searching_site_loc_: '🗺️ Searching for site...',
|
|
31
|
+
updating_site_loc_: '🗺️ Updating site location...',
|
|
28
32
|
creating_report_: '📊 Creating report... ',
|
|
29
33
|
updating_schedule_: '📅 Updating schedule...',
|
|
30
34
|
updating_events_: '📅 Updating events...',
|
|
@@ -38,16 +42,63 @@ export default {
|
|
|
38
42
|
updating_attendance_list_: '🙋 Updating attendance list...',
|
|
39
43
|
updating_database_: '🗄️ Updating database...',
|
|
40
44
|
sending_message_: '✉️ Sending message...',
|
|
41
|
-
schedule_ai_task_: '📋 Scheduling task...',
|
|
42
|
-
schedule_next_ai_task_: '📋 Scheduling next task...',
|
|
43
45
|
saving_load_list_: '📋 Saving load list...',
|
|
44
46
|
searching_for_load_list_: '🔍 Searching for load list...',
|
|
45
47
|
writing_report_: '✍️ Writing report...',
|
|
48
|
+
processing_csv_request_: '⚙️ Processing CSV file request...',
|
|
49
|
+
retrieving_inbound_contact_: '🧠 Retrieving inbound contact information...',
|
|
50
|
+
saving_inbound_contact_: '🧠 Saving inbound contact information...',
|
|
51
|
+
inbound_contact_associated_orgs_auto_create_msg: 'When AI reads incoming emails, it will auto-create associated organizations for the contact, if the information can be found.',
|
|
46
52
|
|
|
47
53
|
// Digests
|
|
48
54
|
digest_for_: 'Digest for %{date}',
|
|
49
55
|
|
|
50
|
-
//
|
|
56
|
+
// AI inbox
|
|
57
|
+
ai_inbox_handle: 'Handle',
|
|
58
|
+
change_ai_inbox: 'AI inbox',
|
|
59
|
+
change_ai_inbox_msg: 'Choose a handle for your organization.\n This will become the address for your AI inbox email.',
|
|
60
|
+
remove_ai_inbox: 'Remove AI inbox',
|
|
61
|
+
ai_inbox_updated: 'AI inbox updated',
|
|
62
|
+
ai_inbox_updated_msg: 'AI inbox handle has been changed to:\n [hl]%{inboundEmail}[/hl].',
|
|
63
|
+
ai_inbox_removed_msg: 'AI inbox for your organization has been removed.',
|
|
64
|
+
ai_inbox_addresses_ready: (
|
|
65
|
+
'Emails sent to any of these addresses will automatically trigger AI workflows.'
|
|
66
|
+
),
|
|
67
|
+
ai_inbox_addresses_empty: (
|
|
68
|
+
'AI inboxes handles requests from emails on your team\'s behalf. Choose a handle to activate AI inboxes.'
|
|
69
|
+
),
|
|
70
|
+
ai_inbox_desc: {
|
|
71
|
+
orders: 'Handle incoming orders from customers.',
|
|
72
|
+
agent: 'Handle general requests.',
|
|
73
|
+
},
|
|
74
|
+
change_handle: 'Change inbox handle',
|
|
75
|
+
inbound_email_from: 'From',
|
|
76
|
+
inbound_email_to: 'To',
|
|
77
|
+
inbound_email_subject: 'Subject',
|
|
78
|
+
inbound_email_received: 'Received',
|
|
79
|
+
inbound_email_summary: 'Summary',
|
|
80
|
+
inbound_email_body: 'Email',
|
|
81
|
+
inbound_email_no_subject: '(No subject)',
|
|
82
|
+
inbound_email_no_body: 'There is no message body for this email.',
|
|
83
|
+
inbound_email_attachment_size: '%{size} bytes',
|
|
84
|
+
inbound_email_status: {
|
|
85
|
+
RECEIVED: 'Received',
|
|
86
|
+
QUEUED: 'Queued',
|
|
87
|
+
SUPERSEDED: 'Superseded',
|
|
88
|
+
PROCESSING: 'Processing',
|
|
89
|
+
COMPLETED: 'Completed',
|
|
90
|
+
IGNORED: 'Ignored',
|
|
91
|
+
ERRORED: 'Errored',
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
// Integrations
|
|
95
|
+
integrations_desc: 'Grant your AI access to third-party apps and services.',
|
|
96
|
+
integrations_read_only_desc: 'You _do not_ have permissions to edit third-party apps and services for this organization.',
|
|
97
|
+
integrations_other_title: 'Looking for a different app connection?',
|
|
98
|
+
integrations_other_desc: '[Send us an e-mail](mailto:hello@marketday.ai). We decide what to build next based on your feedback.',
|
|
99
|
+
integrations_disconnect_msg: 'Are you sure you want to disconnect?\n All related features will be disabled.',
|
|
100
|
+
|
|
101
|
+
// Common errors
|
|
51
102
|
invalid_id: '"%{field}" (%{value}) is not a valid ID.',
|
|
52
103
|
one_is_required: 'One of the following fields is required: %{fields}.',
|
|
53
104
|
|
|
@@ -56,11 +107,17 @@ export default {
|
|
|
56
107
|
ARABLE: 'farming activities',
|
|
57
108
|
LIVESTOCK: 'ranching activities',
|
|
58
109
|
FARMERS_MARKET: 'farmers market operations',
|
|
110
|
+
GROWER_NETWORK: 'network activities',
|
|
111
|
+
WHOLESALE_FOOD: 'wholesale food operations',
|
|
112
|
+
UNKNOWN: 'organization activities',
|
|
59
113
|
},
|
|
60
114
|
operation_farmers: {
|
|
61
115
|
ARABLE: 'farmers',
|
|
62
116
|
LIVESTOCK: 'ranchers',
|
|
63
117
|
FARMERS_MARKET: 'farmers market vendors',
|
|
118
|
+
GROWER_NETWORK: 'growers',
|
|
119
|
+
WHOLESALE_FOOD: 'wholesale food businesses',
|
|
120
|
+
UNKNOWN: 'organizations',
|
|
64
121
|
},
|
|
65
122
|
|
|
66
123
|
// Real time data update messages
|
|
@@ -72,13 +129,6 @@ export default {
|
|
|
72
129
|
attendance_list_updated: 'Attendance list was updated.',
|
|
73
130
|
attendance_logged: 'Attendance record was logged.',
|
|
74
131
|
|
|
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
132
|
// Real-time data update messages
|
|
83
133
|
data_update: {
|
|
84
134
|
moderation_failed_tasks_terminated: "AI's tasks were terminated because it failed our moderation tests.",
|
package/src/i18n/app.ts
CHANGED
|
@@ -2,14 +2,15 @@ export default {
|
|
|
2
2
|
en: {
|
|
3
3
|
|
|
4
4
|
// Site meta
|
|
5
|
-
|
|
5
|
+
schedule_demo: 'Schedule a demo',
|
|
6
|
+
copyright_text: '© %{currentYear} %{companyName}. All rights reserved.',
|
|
6
7
|
privacy: 'Privacy Policy',
|
|
7
8
|
tos: 'Terms of Service',
|
|
8
9
|
|
|
9
10
|
// Routes
|
|
10
11
|
route_: 'App | %{text}',
|
|
11
12
|
route_auth: 'Log in or sign up',
|
|
12
|
-
route_auth_change_email: 'Change
|
|
13
|
+
route_auth_change_email: 'Change email address',
|
|
13
14
|
route_auth_signup: 'Create an account',
|
|
14
15
|
route_not_found: 'Page Not Found',
|
|
15
16
|
route_not_found_desc: 'The page you are looking for does not exist.',
|
|
@@ -17,6 +18,7 @@ export default {
|
|
|
17
18
|
// General
|
|
18
19
|
open_app: 'Open app',
|
|
19
20
|
home: 'Home',
|
|
21
|
+
new_data_click_to_refresh: 'New data available. Click to refresh.',
|
|
20
22
|
timezone_set_to_: 'Time zone is set to: %{timeZone}',
|
|
21
23
|
latest_updates: 'Latest updates',
|
|
22
24
|
update_notes: 'Update notes',
|
|
@@ -30,6 +32,12 @@ export default {
|
|
|
30
32
|
|
|
31
33
|
// Settings
|
|
32
34
|
app: 'App',
|
|
35
|
+
account: 'Account',
|
|
36
|
+
features: 'Features',
|
|
37
|
+
memories: 'Memories',
|
|
38
|
+
connections: 'Connections',
|
|
39
|
+
ai_inbox: 'AI inbox',
|
|
40
|
+
ai_inboxes: 'AI inboxes',
|
|
33
41
|
updates: 'Update notes',
|
|
34
42
|
logout: 'Log out',
|
|
35
43
|
|
|
@@ -75,7 +83,26 @@ export default {
|
|
|
75
83
|
// Subscription related
|
|
76
84
|
sub_needed: 'You need a subscription to use this feature.',
|
|
77
85
|
|
|
78
|
-
//
|
|
79
|
-
|
|
86
|
+
// Square specific
|
|
87
|
+
square_connected: 'Square is connected.',
|
|
88
|
+
square_disconnected: 'Square is not connected.',
|
|
89
|
+
connect_square_title: 'Connect Square',
|
|
90
|
+
connect_square_desc: 'Connect your Square account to\nunlock these features:',
|
|
91
|
+
disconnect_square_title: 'Disconnect Square',
|
|
92
|
+
square_connection_desc: 'Access your data and create payment requests.',
|
|
93
|
+
connect_square_permission_1: 'Access your orders and sales data',
|
|
94
|
+
connect_square_permission_2: 'Create new orders and payment requests',
|
|
95
|
+
connect_square_permission_3: 'Edit an existing order',
|
|
96
|
+
connect_square_permission_4: "Charge a vendor/customer's credit card",
|
|
97
|
+
connect_square_button: 'Continue to Square',
|
|
98
|
+
square_permissions_sales: 'Sales data',
|
|
99
|
+
square_permissions_payments: 'Payment requests',
|
|
100
|
+
|
|
101
|
+
// OAuth results
|
|
102
|
+
oauth_provider_google: 'Google',
|
|
103
|
+
oauth_provider_logo_alt: '%{provider} logo',
|
|
104
|
+
oauth_provider_square: 'Square',
|
|
105
|
+
oauth_success_message: 'You successfully connected your\n organization to %{provider}.',
|
|
106
|
+
oauth_error_message: 'We could not connect your organization to %{provider}. Please try again later.',
|
|
80
107
|
},
|
|
81
108
|
};
|
package/src/i18n/auth.ts
CHANGED
|
@@ -2,31 +2,31 @@ export default {
|
|
|
2
2
|
en: {
|
|
3
3
|
// Login
|
|
4
4
|
welcome_back: 'Welcome back',
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
sign_in: 'Sign in',
|
|
6
|
+
sign_in_again: 'Sign in again',
|
|
7
|
+
sign_in_sign_up: 'Sign in / Sign up',
|
|
8
8
|
open_app: 'Open app',
|
|
9
9
|
continue_with_google: 'Continue with Google',
|
|
10
10
|
continue_with_discord: 'Continue with Discord',
|
|
11
11
|
continue_with_apple: 'Continue with Apple',
|
|
12
12
|
continue_with_phone: 'Continue with Phone',
|
|
13
|
-
login_opts_main: 'Phone number or
|
|
13
|
+
login_opts_main: 'Phone number or email',
|
|
14
14
|
verify_your_acc: 'Verify your account',
|
|
15
15
|
reset_password: 'Reset password',
|
|
16
16
|
forgot_password_: 'Forgot password or username?',
|
|
17
|
-
signup_email: 'Sign up using
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
signup_email: 'Sign up using email',
|
|
18
|
+
sign_in_w_existing: 'Sign in with an existing account',
|
|
19
|
+
sign_in_other_methods: 'Sign in using other methods',
|
|
20
20
|
change_password: 'Change password',
|
|
21
21
|
you_are_verified_: 'You are verified!',
|
|
22
|
-
account_is_verified: 'Thank you for verifying your account with
|
|
22
|
+
account_is_verified: 'Thank you for verifying your account with email address: **%{emailAddress}**. Please log in again using your password.',
|
|
23
23
|
continue_to_login: 'Continue to log in',
|
|
24
24
|
continue_to_app: 'Continue to app',
|
|
25
25
|
back_to_homepage: 'Back to homepage',
|
|
26
|
-
login_changed: '
|
|
26
|
+
login_changed: 'Account changed',
|
|
27
27
|
|
|
28
|
-
// Phone 2FA &
|
|
29
|
-
send_verification_email: 'Send verification
|
|
28
|
+
// Phone 2FA & Email verification
|
|
29
|
+
send_verification_email: 'Send verification email',
|
|
30
30
|
send_verification_code_msg: 'Enter your phone number and we will send you a verification code for authentication.',
|
|
31
31
|
send_verification_code: 'Send verification code',
|
|
32
32
|
confirm_verification_code_instr: 'Enter the verification code sent to your phone. Please wait few minutes if you did not receive it.',
|
|
@@ -39,33 +39,33 @@ export default {
|
|
|
39
39
|
hello_: 'Hello %{name}!',
|
|
40
40
|
you_are_logged_in: 'You are signed in.',
|
|
41
41
|
password_changed_msg: 'Your password has been changed.',
|
|
42
|
-
request_reset_password_instr: 'Enter your
|
|
43
|
-
resend_verification_instr: 'Enter your
|
|
44
|
-
reset_password_instr: 'Choose a new password for your account with\n the
|
|
45
|
-
_verify_your_email: ' to verify your
|
|
42
|
+
request_reset_password_instr: 'Enter your email address and we will send\n you instructions to reset your password.',
|
|
43
|
+
resend_verification_instr: 'Enter your email address and we will send\nyou an email to verify your account.',
|
|
44
|
+
reset_password_instr: 'Choose a new password for your account with\n the email address: %{emailAddress}',
|
|
45
|
+
_verify_your_email: ' to verify your email.',
|
|
46
46
|
_verify_your_phone: ' to verify your phone number.',
|
|
47
47
|
account_secured_: 'Account secured!',
|
|
48
48
|
one_last_step_: 'One last step!',
|
|
49
49
|
add_password: 'Add password',
|
|
50
|
-
|
|
51
|
-
add_email: 'Add
|
|
52
|
-
add_email_to_login_msg: 'Please add an
|
|
50
|
+
add_password_sign_in_msg: 'Please add a password to your account (%{identifier}) for security.',
|
|
51
|
+
add_email: 'Add email address',
|
|
52
|
+
add_email_to_login_msg: 'Please add an email address to your account (%{identifier}) for security.',
|
|
53
53
|
required_auth_fin_msg: 'Your account has been secured. From now on, you may use your password to log in.',
|
|
54
|
-
check_email: 'Check your
|
|
55
|
-
check_email_to_login_msg: 'Please check your
|
|
54
|
+
check_email: 'Check your email',
|
|
55
|
+
check_email_to_login_msg: 'Please check your email for verification instructions. You will be logged in after you verify your email address.',
|
|
56
56
|
|
|
57
57
|
// Auth - check fails
|
|
58
58
|
no_account_with_phone: 'No account was found with that phone number.',
|
|
59
|
-
no_account_with_email: 'No account was found with that
|
|
60
|
-
not_valid_email_or_phone: 'That is not a valid phone number or
|
|
59
|
+
no_account_with_email: 'No account was found with that email address.',
|
|
60
|
+
not_valid_email_or_phone: 'That is not a valid phone number or email address.',
|
|
61
61
|
|
|
62
62
|
// Reset password (requested)
|
|
63
63
|
reset_password_requested_msg: (
|
|
64
|
-
'Check your
|
|
64
|
+
'Check your email, <strong>%{emailAddress}</strong> ' +
|
|
65
65
|
'for instructions to reset your password.'
|
|
66
66
|
),
|
|
67
67
|
reset_password_requested_msg_no_email: (
|
|
68
|
-
'Please check your
|
|
68
|
+
'Please check your email for instructions to reset your password.'
|
|
69
69
|
),
|
|
70
70
|
if_need_more_help_email: (
|
|
71
71
|
'If you need assistance, please contact us at ' +
|
|
@@ -89,21 +89,21 @@ export default {
|
|
|
89
89
|
'[Terms of Service](/tos) and acknowledge the ' +
|
|
90
90
|
'[Privacy Policy](/privacy).'
|
|
91
91
|
),
|
|
92
|
-
email_sent: '
|
|
93
|
-
check_email_msg: 'Please check your
|
|
92
|
+
email_sent: 'Email sent',
|
|
93
|
+
check_email_msg: 'Please check your email for instructions to verify your account.',
|
|
94
94
|
// check_email_3: 'Click "continue" to log in as ',
|
|
95
|
-
// check_email_4: ' or re-send another verification link to your
|
|
96
|
-
not_verified_yet: 'Please verify your
|
|
97
|
-
resend_change_verification: 'Re-send verification link or change
|
|
95
|
+
// check_email_4: ' or re-send another verification link to your email.',
|
|
96
|
+
not_verified_yet: 'Please verify your email and try again.',
|
|
97
|
+
resend_change_verification: 'Re-send verification link or change email',
|
|
98
98
|
verify_account: 'Verify your account',
|
|
99
|
-
verify_email_msg: 'Send a new verification link to your
|
|
100
|
-
resend_verification: 'Send verification
|
|
99
|
+
verify_email_msg: 'Send a new verification link to your email.',
|
|
100
|
+
resend_verification: 'Send verification email',
|
|
101
101
|
|
|
102
102
|
// Sign up success
|
|
103
103
|
account_created: 'Account created',
|
|
104
104
|
account_created_msg: (
|
|
105
105
|
'Your account has been created successfully. Please follow the instructions ' +
|
|
106
|
-
'in the
|
|
106
|
+
'in the email we sent you to verify your account.'
|
|
107
107
|
),
|
|
108
108
|
|
|
109
109
|
// Sign out
|
package/src/i18n/billing.ts
CHANGED