@jsb188/app 1.1.10 → 1.1.11
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 +54 -45
- package/src/constants/agent.ts +58 -25
- package/src/constants/app.ts +18 -14
- package/src/constants/billing.ts +92 -92
- package/src/constants/emoji.ts +9144 -8936
- package/src/constants/other.ts +1 -5
- package/src/constants/user.ts +16 -25
- package/src/constants/wsActions.ts +35 -0
- package/src/i18n/account.ts +129 -107
- package/src/i18n/agent.ts +63 -43
- package/src/i18n/agentDoc.ts +110 -0
- package/src/i18n/app.ts +101 -91
- package/src/i18n/auth.ts +119 -102
- package/src/i18n/billing.ts +73 -78
- package/src/i18n/campaign.ts +217 -0
- package/src/i18n/country.ts +248 -248
- package/src/i18n/datetime.ts +26 -26
- package/src/i18n/error.ts +428 -182
- package/src/i18n/field_docs.ts +28 -0
- package/src/i18n/form.ts +464 -344
- package/src/i18n/index.ts +25 -18
- package/src/i18n/log.ts +53 -213
- package/src/i18n/memory.ts +39 -0
- package/src/i18n/message.ts +3 -4
- package/src/i18n/note.ts +17 -0
- package/src/i18n/org.ts +115 -109
- package/src/i18n/sheet.ts +376 -4
- package/src/i18n/workflow.ts +70 -23
- package/src/main.ts +66 -62
- package/src/platform.ts +25 -24
- package/src/types/ai.d.ts +33 -23
- package/src/types/app.d.ts +95 -37
- package/src/types/auth.d.ts +66 -40
- package/src/types/console.d.ts +3 -0
- package/src/types/form.d.ts +65 -61
- package/src/types/other.d.ts +6 -6
- package/src/types.d.ts +12 -14
- package/src/utils/account.ts +64 -58
- package/src/utils/api.ts +280 -77
- package/src/utils/authSession.ts +24 -0
- package/src/utils/billing.ts +110 -103
- package/src/utils/color.ts +202 -0
- package/src/utils/cron.ts +49 -18
- package/src/utils/datetime.ts +255 -103
- package/src/utils/emoji.ts +107 -84
- package/src/utils/expression.ts +867 -0
- package/src/utils/interval.ts +80 -0
- package/src/utils/logic.ts +209 -36
- package/src/utils/managedSession.ts +34 -0
- package/src/utils/managedSessionBff.test.ts +60 -0
- package/src/utils/managedSessionBff.ts +117 -0
- package/src/utils/number.ts +60 -32
- package/src/utils/object.ts +198 -30
- package/src/utils/promise.ts +27 -0
- package/src/utils/queryReset.ts +179 -0
- package/src/utils/recurringTask.ts +60 -0
- package/src/utils/schema.ts +293 -0
- package/src/utils/string.test.ts +220 -208
- package/src/utils/string.ts +471 -438
- package/src/utils/timeZone.ts +309 -851
- package/src/utils/url_client.ts +73 -69
- package/tsconfig.json +10 -10
- package/src/i18n/product.ts +0 -76
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
en: {
|
|
3
|
+
// Route meta
|
|
4
|
+
meta_forms_desc:
|
|
5
|
+
'Create and publish web forms your growers and customers fill out.',
|
|
6
|
+
meta_emails_desc: 'Create and send email campaigns your contacts reply to.',
|
|
7
|
+
|
|
8
|
+
// Nav + page titles
|
|
9
|
+
campaigns: 'Campaigns',
|
|
10
|
+
templates: 'Templates',
|
|
11
|
+
web_forms: 'Web forms',
|
|
12
|
+
emails: 'Emails',
|
|
13
|
+
published_forms: 'Web forms',
|
|
14
|
+
email_campaigns: 'Email campaigns',
|
|
15
|
+
|
|
16
|
+
// Template lifecycle (keys are lowercased status values)
|
|
17
|
+
status_generating: 'Generating…',
|
|
18
|
+
status_active: 'Ready',
|
|
19
|
+
status_archived: 'Archived',
|
|
20
|
+
status_error: 'Generation failed',
|
|
21
|
+
|
|
22
|
+
// Published campaign lifecycle
|
|
23
|
+
campaign_status_scheduled: 'Scheduled',
|
|
24
|
+
campaign_status_active: 'Open',
|
|
25
|
+
campaign_status_sending: 'Sending',
|
|
26
|
+
campaign_status_completed: 'Completed',
|
|
27
|
+
campaign_status_closed: 'Closed',
|
|
28
|
+
campaign_status_cancelled: 'Cancelled',
|
|
29
|
+
campaign_status_failed: 'Failed',
|
|
30
|
+
|
|
31
|
+
// Audiences (keys are lowercased audience values)
|
|
32
|
+
audience: 'Audience',
|
|
33
|
+
audience_anyone: 'Anyone with the link',
|
|
34
|
+
audience_child_orgs: 'Growers',
|
|
35
|
+
audience_inbound_contacts: 'Selected contacts',
|
|
36
|
+
published: 'Published',
|
|
37
|
+
template_generating_title: 'Generating...',
|
|
38
|
+
preparing_to_generate_msg: 'Preparing to generate your form...',
|
|
39
|
+
generation_failed_msg:
|
|
40
|
+
'We could not generate this form. Try again, or edit the instructions.',
|
|
41
|
+
|
|
42
|
+
// Transient generation progress lines, pushed by the generation job as it
|
|
43
|
+
// moves between phases. Nothing here is ever stored; each one is replaced
|
|
44
|
+
// by the next, and the finished template replaces the last.
|
|
45
|
+
generation_progress_reading_files: 'Reading your files…',
|
|
46
|
+
generation_progress_writing: 'Generating form content…',
|
|
47
|
+
generation_progress_saving: 'Saving your form…',
|
|
48
|
+
retry_generation: 'Try again',
|
|
49
|
+
archive_template: 'Archive',
|
|
50
|
+
archived_msg:
|
|
51
|
+
'This template is archived. Campaigns already published from it keep working.',
|
|
52
|
+
delete_template: 'Delete template',
|
|
53
|
+
delete_template_msg:
|
|
54
|
+
'Are you sure you want to delete “%{title}”? Campaigns already published from this template will keep working.',
|
|
55
|
+
yes_delete_template: 'Yes, delete template',
|
|
56
|
+
|
|
57
|
+
// Creating
|
|
58
|
+
create_template: 'New campaign',
|
|
59
|
+
create_form: 'New form',
|
|
60
|
+
create_email: 'New email',
|
|
61
|
+
instructions_label: 'What should this ask?',
|
|
62
|
+
instructions_placeholder:
|
|
63
|
+
'Describe the form you want, or attach a photo or document to copy it from.',
|
|
64
|
+
instructions_required: 'Add instructions or attach a file.',
|
|
65
|
+
attach_files: 'Attach files',
|
|
66
|
+
|
|
67
|
+
// Publishing
|
|
68
|
+
publish: 'Publish',
|
|
69
|
+
close_campaign: 'Close',
|
|
70
|
+
cancel_campaign: 'Cancel',
|
|
71
|
+
closed_title: 'This form is closed',
|
|
72
|
+
closed_msg: 'This form is no longer accepting responses.',
|
|
73
|
+
|
|
74
|
+
// Filling
|
|
75
|
+
submit: 'Submit',
|
|
76
|
+
submitted_title: 'Thank you',
|
|
77
|
+
submitted_msg: 'Your response has been recorded.',
|
|
78
|
+
submit_error_title: 'Could not submit',
|
|
79
|
+
file_upload_unavailable: 'File answers are not available yet.',
|
|
80
|
+
|
|
81
|
+
// Shared actions
|
|
82
|
+
save_campaign: 'Save Campaign',
|
|
83
|
+
save_template: 'Save Template',
|
|
84
|
+
|
|
85
|
+
// Editor
|
|
86
|
+
edit_template: 'Edit form',
|
|
87
|
+
sidebar_access: 'Access',
|
|
88
|
+
sidebar_create_campaign: 'Create campaign',
|
|
89
|
+
sidebar_dashboard: 'Dashboard',
|
|
90
|
+
sidebar_default_settings: 'Default settings',
|
|
91
|
+
sidebar_edit_template: 'Edit template',
|
|
92
|
+
sidebar_form_editor: 'Form editor',
|
|
93
|
+
sidebar_form_responses: 'Form responses',
|
|
94
|
+
sidebar_respondents: 'Respondents',
|
|
95
|
+
sidebar_test_note: 'Test message',
|
|
96
|
+
editor_questions: 'Questions',
|
|
97
|
+
editor_question_number: 'Question %{number}',
|
|
98
|
+
editor_settings: 'Settings',
|
|
99
|
+
editor_theme: 'Theme',
|
|
100
|
+
editor_title_description: 'Title/Description',
|
|
101
|
+
section: 'Section',
|
|
102
|
+
add_section: 'Add section',
|
|
103
|
+
add_question: 'Add question',
|
|
104
|
+
add_content: 'Add text',
|
|
105
|
+
required: 'Required',
|
|
106
|
+
element_question: 'Question',
|
|
107
|
+
element_content: 'Text',
|
|
108
|
+
section_label_placeholder: 'Section title (optional)',
|
|
109
|
+
question_label_placeholder: 'Question',
|
|
110
|
+
content_label_placeholder: 'Heading',
|
|
111
|
+
description_placeholder: 'Description (optional)',
|
|
112
|
+
options_placeholder: 'One choice per line',
|
|
113
|
+
draft_invalid_msg:
|
|
114
|
+
'Every question needs a label, and a choice question needs at least two choices.',
|
|
115
|
+
|
|
116
|
+
// Answer types (keys are lowercased type values)
|
|
117
|
+
type_short_text: 'Short text',
|
|
118
|
+
type_long_text: 'Paragraph',
|
|
119
|
+
type_single_choice: 'Choose one',
|
|
120
|
+
type_multi_choice: 'Choose many',
|
|
121
|
+
type_number: 'Number',
|
|
122
|
+
type_date: 'Date',
|
|
123
|
+
type_email: 'Email',
|
|
124
|
+
type_phone: 'Phone',
|
|
125
|
+
type_file: 'File upload',
|
|
126
|
+
|
|
127
|
+
response_draft: 'Not submitted',
|
|
128
|
+
|
|
129
|
+
// Create-template modal
|
|
130
|
+
outbound_forms_selector: 'Form builder',
|
|
131
|
+
outbound_emails_selector: 'Email campaigns',
|
|
132
|
+
create_new: 'Create New',
|
|
133
|
+
untitled_template: 'Untitled template',
|
|
134
|
+
no_templates_msg: "There aren't any templates yet.",
|
|
135
|
+
add_more_files: 'Add more files',
|
|
136
|
+
too_many_generation_files:
|
|
137
|
+
'You selected too many files. Please select up to %{value} files.',
|
|
138
|
+
form_template_content_name: 'form',
|
|
139
|
+
email_template_content_name: 'email campaign',
|
|
140
|
+
campaign_ai_instructions: 'Describe the form template you want to create.',
|
|
141
|
+
email_campaign_ai_instructions:
|
|
142
|
+
'Describe the email template you want to create.',
|
|
143
|
+
generate_form: 'Generate form',
|
|
144
|
+
generate_form_tooltip:
|
|
145
|
+
'You can continue editing after the AI generates the form.',
|
|
146
|
+
generate_email_campaign: 'Generate email',
|
|
147
|
+
|
|
148
|
+
// Definition editor
|
|
149
|
+
edit_public_form: 'Edit form',
|
|
150
|
+
form_definition_notice:
|
|
151
|
+
'These questions belong to this template only. Already published campaigns keep the snapshot they were published with.',
|
|
152
|
+
published_form_definition_notice:
|
|
153
|
+
'These changes update this published form without changing responses that were already submitted.',
|
|
154
|
+
form_title: 'Form title',
|
|
155
|
+
form_description: 'Form description',
|
|
156
|
+
form_section_number: 'Section %{number}',
|
|
157
|
+
form_section_title: 'Section title',
|
|
158
|
+
form_section_description: 'Section description',
|
|
159
|
+
form_section_empty: 'This section does not have any form elements yet.',
|
|
160
|
+
form_editor_empty: 'Add a section to start building this form.',
|
|
161
|
+
form_element_number: 'Element %{number}',
|
|
162
|
+
form_element_label: 'Label or question',
|
|
163
|
+
form_element_type: 'Element type',
|
|
164
|
+
form_element_type_question: 'Question',
|
|
165
|
+
form_element_type_content: 'Content block',
|
|
166
|
+
form_placeholder: 'Placeholder',
|
|
167
|
+
form_options: 'Options',
|
|
168
|
+
form_option_number: 'Option %{number}',
|
|
169
|
+
add_form_option: 'Add option',
|
|
170
|
+
remove_form_option: 'Remove option',
|
|
171
|
+
add_form_section: 'Add section',
|
|
172
|
+
add_form_element: 'Add form element',
|
|
173
|
+
delete_form_section: 'Delete section',
|
|
174
|
+
delete_form_element: 'Delete form element',
|
|
175
|
+
move_form_section_up: 'Move section up',
|
|
176
|
+
move_form_section_down: 'Move section down',
|
|
177
|
+
move_form_element_up: 'Move element up',
|
|
178
|
+
move_form_element_down: 'Move element down',
|
|
179
|
+
drag_form_section: 'Drag to reorder section',
|
|
180
|
+
drag_form_element: 'Drag to reorder form element',
|
|
181
|
+
drop_form_element_here: 'Drop element at the end of this section',
|
|
182
|
+
require_form_answer: 'Required answer',
|
|
183
|
+
form_editor_invalid:
|
|
184
|
+
'Add a question label, and give every choice question at least two complete, unique options before saving.',
|
|
185
|
+
form_editor_saved: 'Form changes saved.',
|
|
186
|
+
form_editor_load_error: 'This form could not be loaded for editing.',
|
|
187
|
+
form_editor_stale:
|
|
188
|
+
'A newer version of this form was saved elsewhere. Your unsaved changes are still here, but you must reload the latest version before saving.',
|
|
189
|
+
form_editor_stale_short: 'A newer form version is available.',
|
|
190
|
+
reload_form: 'Reload latest form',
|
|
191
|
+
|
|
192
|
+
// Answer types (keys are lowercased CampaignElementType values)
|
|
193
|
+
answer_type: 'Answer type',
|
|
194
|
+
answer_type_short_text: 'Short text',
|
|
195
|
+
answer_type_long_text: 'Long text',
|
|
196
|
+
answer_type_single_choice: 'Single choice',
|
|
197
|
+
answer_type_multi_choice: 'Multiple choice',
|
|
198
|
+
answer_type_number: 'Number',
|
|
199
|
+
answer_type_date: 'Date',
|
|
200
|
+
answer_type_email: 'Email',
|
|
201
|
+
answer_type_phone: 'Phone',
|
|
202
|
+
answer_type_file: 'File upload',
|
|
203
|
+
|
|
204
|
+
// Responses
|
|
205
|
+
responses: 'Responses',
|
|
206
|
+
no_responses: 'No responses yet.',
|
|
207
|
+
respondent: 'Respondent',
|
|
208
|
+
submitted_at: 'Submitted',
|
|
209
|
+
recipients: 'Recipients',
|
|
210
|
+
no_recipients: 'No recipients yet.',
|
|
211
|
+
invited_at: 'Invited',
|
|
212
|
+
responded_at: 'Responded',
|
|
213
|
+
campaign_missing: 'Campaign unavailable',
|
|
214
|
+
campaign_missing_msg:
|
|
215
|
+
'This campaign could not be loaded or you no longer have access to it.',
|
|
216
|
+
},
|
|
217
|
+
};
|