@jsb188/app 1.1.11 → 1.1.12

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 (59) hide show
  1. package/package.json +7 -4
  2. package/src/constants/agent.ts +39 -62
  3. package/src/constants/app.ts +17 -0
  4. package/src/constants/wsActions.ts +7 -15
  5. package/src/i18n/account.ts +1 -1
  6. package/src/i18n/agent.ts +326 -88
  7. package/src/i18n/agentToolBusiness.ts +196 -0
  8. package/src/i18n/agentToolGrid.ts +137 -0
  9. package/src/i18n/agentToolWorkflow.ts +101 -0
  10. package/src/i18n/agent_note.ts +109 -0
  11. package/src/i18n/app.ts +23 -17
  12. package/src/i18n/auth.ts +28 -30
  13. package/src/i18n/billing.ts +3 -85
  14. package/src/i18n/c.ts +907 -0
  15. package/src/i18n/campaign.ts +842 -140
  16. package/src/i18n/datetime.ts +6 -0
  17. package/src/i18n/editor.ts +58 -0
  18. package/src/i18n/error.ts +307 -168
  19. package/src/i18n/field_doc_editor.ts +21 -0
  20. package/src/i18n/field_doc_programs.ts +52 -0
  21. package/src/i18n/field_docs.ts +170 -8
  22. package/src/i18n/index.ts +21 -5
  23. package/src/i18n/log.ts +232 -38
  24. package/src/i18n/memory.ts +18 -4
  25. package/src/i18n/note.ts +5 -3
  26. package/src/i18n/org.ts +93 -44
  27. package/src/i18n/schedule.ts +209 -0
  28. package/src/i18n/sheet.ts +102 -145
  29. package/src/i18n/sheet_formula.ts +165 -0
  30. package/src/i18n/workflow.ts +48 -9
  31. package/src/main.ts +2 -2
  32. package/src/platform.ts +89 -49
  33. package/src/types/ai.d.ts +19 -0
  34. package/src/types/app.d.ts +50 -57
  35. package/src/types/other.d.ts +8 -1
  36. package/src/utils/api.ts +46 -0
  37. package/src/utils/clientIP.ts +213 -0
  38. package/src/utils/color.ts +77 -0
  39. package/src/utils/csv.ts +19 -0
  40. package/src/utils/datetime.ts +207 -31
  41. package/src/utils/deferredSave.ts +89 -0
  42. package/src/utils/email.ts +50 -0
  43. package/src/utils/expression.helpers.ts +470 -0
  44. package/src/utils/expression.test.ts +793 -0
  45. package/src/utils/expression.ts +1633 -239
  46. package/src/utils/language.ts +9 -0
  47. package/src/utils/logic.ts +9 -162
  48. package/src/utils/number.ts +30 -11
  49. package/src/utils/object.ts +29 -0
  50. package/src/utils/promise.ts +78 -7
  51. package/src/utils/queryReset.ts +101 -14
  52. package/src/utils/string.test.ts +24 -39
  53. package/src/utils/string.ts +73 -143
  54. package/src/utils/url_client.ts +83 -14
  55. package/src/constants/billing.ts +0 -146
  56. package/src/i18n/agentDoc.ts +0 -110
  57. package/src/i18n/form.ts +0 -496
  58. package/src/types/form.d.ts +0 -101
  59. package/src/utils/billing.ts +0 -141
package/src/i18n/sheet.ts CHANGED
@@ -7,11 +7,9 @@ export default {
7
7
  access_level_team: 'Team',
8
8
  access_level_team_msg: 'Everyone in your team can access this spreadsheet.',
9
9
  access_level_restricted: 'Restricted',
10
- access_level_restricted_msg:
11
- 'Only people and organizations you add can access this spreadsheet.',
10
+ access_level_restricted_msg: 'Only people and organizations you add can access this spreadsheet.',
12
11
  access_level_public: 'Public',
13
- access_level_public_msg:
14
- 'Everyone with the link can view this spreadsheet.',
12
+ access_level_public_msg: 'Everyone with the link can view this spreadsheet.',
15
13
  access_team_permission_title: 'Team permission',
16
14
  access_team_everyone_views: 'Everyone in team can view',
17
15
  access_team_everyone_edits: 'Everyone in team can view & edit',
@@ -33,10 +31,8 @@ export default {
33
31
  access_admin_owner_msg: 'Admins/Owners always have full access.',
34
32
  access_copy_link: 'Copy link',
35
33
  access_link_copied: 'Link copied!',
36
- access_custom_member_permission_msg:
37
- 'There is [cl_primary##%{membersCount} custom member] permission.',
38
- access_custom_member_permissions_msg:
39
- 'There are [cl_primary##%{membersCount} custom member] permissions.',
34
+ access_custom_member_permission_msg: 'There is [cl_primary##%{membersCount} custom member] permission.',
35
+ access_custom_member_permissions_msg: 'There are [cl_primary##%{membersCount} custom member] permissions.',
40
36
  access_custom_member_permission_org_permission_msg:
41
37
  'There are [cl_primary##%{membersCount} custom member] permission and [cl_primary##%{orgsCount} custom network] permission.',
42
38
  access_custom_member_permission_org_permissions_msg:
@@ -45,10 +41,8 @@ export default {
45
41
  'There are [cl_primary##%{membersCount} custom member] permissions and [cl_primary##%{orgsCount} custom network] permission.',
46
42
  access_custom_member_permissions_org_permissions_msg:
47
43
  'There are [cl_primary##%{membersCount} custom member] permissions and [cl_primary##%{orgsCount} custom network] permissions.',
48
- access_custom_org_permission_msg:
49
- 'There is [cl_primary##%{orgsCount} custom network] permission.',
50
- access_custom_org_permissions_msg:
51
- 'There are [cl_primary##%{orgsCount} custom network] permissions.',
44
+ access_custom_org_permission_msg: 'There is [cl_primary##%{orgsCount} custom network] permission.',
45
+ access_custom_org_permissions_msg: 'There are [cl_primary##%{orgsCount} custom network] permissions.',
52
46
  access_anyone_with_link_msg: 'Anyone with the link can view.',
53
47
  access_network_view_msg: 'Other network organizations can view.',
54
48
  access_network_edit_msg: 'Other network organizations can view and edit.',
@@ -57,14 +51,9 @@ export default {
57
51
  access_team_edit_msg: 'Your team can view and edit by default.',
58
52
  access_team_none_msg: 'Your team cannot view unless they were invited.',
59
53
  access_saved_msg: 'Access settings were saved.',
60
- access_no_permission_msg:
61
- 'You do not have permission to change access settings.',
54
+ access_no_permission_msg: 'You do not have permission to change access settings.',
62
55
  access_sign_in_required_msg: 'You must sign in to view this spreadsheet.',
63
56
  access_who_can_access: 'Who can access',
64
- choose_data_table: 'Choose a data table',
65
- choose_data_table_first_msg: 'You must choose a data table first.',
66
- choose_data_table_msg:
67
- 'Create an AI controlled view from a data table\n and insert it anywhere onto this sheet.',
68
57
  custom_currency_title: 'Custom currency formats',
69
58
  custom_currency_template_placeholder: 'Enter a currency format',
70
59
  custom_currency_column_currency: 'Currency',
@@ -73,7 +62,6 @@ export default {
73
62
  custom_format_column_preview: 'Preview',
74
63
  custom_format_column_template: 'Template',
75
64
  custom_format_invalid: 'Invalid format',
76
- built_in_tables: 'Built-in tables',
77
65
  bold: 'Bold',
78
66
  border_outline_all_cells: 'Outline all cells',
79
67
  border_outline_all_sides: 'Outline all sides',
@@ -86,107 +74,106 @@ export default {
86
74
  border_outline_right: 'Outline right side',
87
75
  border_outline_top: 'Outline top side',
88
76
  border_styles: 'Border style',
89
- cell_save_failed_msg:
90
- 'Some cell changes could not be saved and were reverted.',
91
- context_menu_copy_cell_value: 'Copy cell value',
92
- context_menu_edit_cell: 'Edit cell',
93
- context_menu_open_cell: 'Open',
77
+ command_dropped: 'The sheet changed under one of your edits before it could be saved, so it was not applied. Please re-enter it.',
78
+ command_failed: 'A change could not be saved and was reverted.',
79
+ command_save_delayed: 'Some changes are not saved yet. The sheet keeps retrying; keep this page open.',
80
+ command_too_large: 'This change is too large to save at once and was reverted. Try a smaller range.',
81
+ command_access_lost: 'Changes could not be saved because this sheet is no longer available to you, and they were reverted.',
82
+ command_restore_failed: 'Some unsaved edits from a closed tab could not be restored because the sheet changed since.',
83
+ command_overridden: 'A more recent change already covers one of your edits, so it was not applied.',
84
+ local_durability_unavailable_msg:
85
+ 'Changes will sync while this page stays open, but this browser cannot keep an offline recovery copy.',
94
86
  copy_cell_value: 'Copy',
95
- create_data_table: 'New data table',
96
- create_data_table_description: 'Create a new data table',
97
- create_data_table_modal_msg: 'Create a new data table, controlled by AI.',
98
- create_new_data_table: 'Create a new data table',
99
87
  create_sheet: 'New spreadsheet',
100
88
  create_sheet_description: 'Create a new spreadsheet',
101
- create_sheet_modal_msg:
102
- 'Create a new spreadsheet with AI controlled views.',
89
+ create_sheet_modal_msg: 'Create a new spreadsheet.',
103
90
  create_new_spreadsheet: 'Create a new spreadsheet',
104
91
  create_new_sheet: 'Create a new sheet',
105
92
  new_sheet: 'New sheet',
106
93
  new_sheet_title_: 'Spreadsheet %{number}',
107
- data_table: 'View',
94
+ data_table_ai_columns: 'AI columns',
95
+ data_table_ai_columns_paused: 'Paused',
96
+ data_table_ai_columns_paused_owner: 'Paused (AI note archived)',
97
+ data_table_ask_agent: 'Ask agent',
98
+ data_table_ask_owner_note_: 'Ask the AI note "%{title}" about this table',
99
+ data_table_coverage_gaps: 'Coverage gaps',
100
+ data_table_data_as_of: 'Data as of',
101
+ data_table_derive_failed: 'AI failed',
102
+ data_table_derive_pending: 'AI pending',
103
+ data_table_details: 'Table details',
104
+ data_table_kind_AGENT: 'Agent table',
105
+ data_table_kind_SOURCE: 'Synced table',
108
106
  data_table_missing: 'Data table is missing',
109
- data_table_missing_msg:
110
- 'The data table you are looking for could not be found.',
111
- data_tables: 'Data Tables',
107
+ data_table_missing_msg: 'The data table you are looking for could not be found.',
108
+ data_table_no_changes: 'No changes recorded yet',
109
+ data_table_origin_AGENT: 'Agent',
110
+ data_table_origin_AGENT_msg: 'Written by agents and workflows',
111
+ data_table_origin_DERIVED: 'AI',
112
+ data_table_origin_DERIVED_msg: 'Filled by AI from other columns',
113
+ data_table_origin_SOURCE: 'Source',
114
+ data_table_origin_SOURCE_msg: 'Filled from the source records',
115
+ data_table_owner_badge: 'AI note',
116
+ data_table_owner_note: 'AI note',
117
+ data_table_owner_note_msg:
118
+ 'This table belongs to the AI note. If the note is deleted, the table stays as a standalone table. To delete both, ask the agent.',
119
+ data_table_recent_changes: 'Recent changes',
120
+ data_table_rows: 'Rows',
121
+ data_table_rows_empty: 'This table has no rows yet.',
122
+ data_table_rows_end: 'This table has %{smart_count} row.||||This table has %{smart_count} rows.',
123
+ data_table_run_cause_AGENT_WRITE: 'Agent edit',
124
+ data_table_run_cause_BACKFILL: 'Initial load',
125
+ data_table_run_cause_DEFINITION: 'Columns changed',
126
+ data_table_run_cause_DERIVE: 'AI columns',
127
+ data_table_run_cause_MIGRATION: 'Migration',
128
+ data_table_run_cause_RECONCILE: 'Re-sync',
129
+ data_table_run_summary: '%{added} added, %{changed} changed, %{removed} removed',
130
+ data_table_run_summary_derived: '%{added} added, %{changed} changed, %{removed} removed, %{derived} AI-filled',
131
+ data_table_sort_by_: 'Sort by %{label}',
132
+ data_table_source_CAMPAIGN_RECIPIENTS: 'email recipients',
133
+ data_table_source_CAMPAIGN_RESPONSES: 'form responses',
134
+ data_table_source_FIELD_DOC_SUBMISSIONS: 'field doc submissions',
135
+ data_table_source_LOGS: 'logs',
136
+ data_table_sync_state_BACKFILLING: 'Loading source records',
137
+ data_table_sync_state_FAILED: 'Sync failed',
138
+ data_table_sync_state_PAUSED: 'Paused',
139
+ data_table_sync_state_READY: 'Up to date',
140
+ data_table_sync_issue: 'Sync issue',
141
+ data_table_synced_from_: 'Synced from %{source}',
142
+ data_tables: 'Data tables',
112
143
  delete_data_table: 'Delete data table',
113
- delete_data_table_msg: '[hl]%{title}[/hl] data table will be deleted.',
114
- delete_data_table_no_access_msg:
115
- 'You do not have permission to delete "%{title}".',
116
- delete_region: 'Delete view',
117
- delete_region_msg: 'Are you sure you want to delete this\n view?',
118
- delete_views_: 'Delete views?',
119
- delete_views_msg:
120
- 'Your selection includes data table views.\n Should those views also be deleted?',
144
+ delete_data_table_no_access_msg: 'You do not have permission to delete "%{title}".',
121
145
  delete_column: 'Delete column',
122
146
  delete_row: 'Delete row',
123
- delete_rows: 'Delete rows',
124
- delete_row_msg: 'This will permanently delete %{row}.',
125
- delete_row_no_access_msg: 'You do not have permission to delete %{row}.',
126
- delete_rows_msg: 'This will permanently delete %{rowCount} rows.',
127
- delete_rows_no_access_msg:
128
- 'You do not have permission to delete %{rowCount} rows.',
129
- delete_sheet_axis_msg:
130
- 'This permanently deletes %{axis} %{index}. This action cannot be undone.',
147
+ delete_sheet_axis_msg: 'This permanently deletes %{axis} %{index}. This action cannot be undone.',
131
148
  delete_sheet: 'Delete spreadsheet',
132
- delete_sheet_msg: '[hl]%{title}[/hl] spreadsheet will be deleted.',
133
- delete_sheet_no_access_msg:
134
- 'You do not have permission to delete "%{title}".',
149
+ delete_sheet_no_access_msg: 'You do not have permission to delete "%{title}".',
135
150
  delete_sheet_tab: 'Delete sheet',
136
151
  delete_sheet_tab_msg: '[hl]%{title}[/hl] sheet will be deleted.',
137
152
  edit_cell: 'Edit',
138
- edit_data_table_view: 'Edit data table',
139
- editing_temporarily_disabled_msg:
140
- 'Editing this cell is temporarily disabled.',
141
153
  export_preparing_msg: 'Preparing download…',
142
- formula_circular_reference_msg:
143
- 'Some formulas reference each other in a loop and could not be calculated.',
144
- history_region_redo_confirm: 'Yes, redo view change',
145
- history_region_redo_msg:
146
- 'Redoing this change will modify a data table view.\n Do you want to continue?',
147
- history_region_title: 'Change data table view?',
148
- history_region_undo_confirm: 'Yes, undo view change',
149
- history_region_undo_msg:
150
- 'Undoing this change will modify a data table view.\n Do you want to continue?',
151
- formula_function_if_arg_condition_description:
152
- 'Condition to test. Comparisons, TRUE/FALSE, and 0/1 values are supported.',
153
- formula_function_if_arg_value_if_false_description:
154
- 'Value returned when the condition is FALSE.',
155
- formula_function_if_arg_value_if_true_description:
156
- 'Value returned when the condition is TRUE.',
157
- formula_function_if_description:
158
- 'Returns one value when the condition is TRUE and another when it is FALSE.',
159
- formula_function_iferror_arg_fallback_description:
160
- 'Value returned only when the first argument returns any formula error.',
161
- formula_function_iferror_arg_value_description:
162
- 'Value to try first. The fallback is skipped when this value succeeds.',
163
- formula_function_iferror_description:
164
- 'Returns a fallback value only when the first value has a formula error.',
165
- formula_function_ifna_arg_fallback_description:
166
- 'Value returned only when the first argument cannot find a referenced value.',
167
- formula_function_ifna_arg_value_description:
168
- 'Value to try first. The fallback is skipped unless this returns #N/A.',
169
- formula_function_ifna_description:
170
- 'Returns a fallback value only when the first value returns #N/A.',
171
- formula_function_includes_arg_needle_description:
172
- 'Value to look for inside the range.',
173
- formula_function_includes_arg_range_description:
174
- 'Cell range to search for the value.',
175
- formula_function_includes_arg_value_if_false_description:
176
- 'Value returned when the range does not contain the value.',
177
- formula_function_includes_arg_value_if_true_description:
178
- 'Value returned when the range contains the value.',
179
- formula_function_includes_description:
180
- 'Returns whether a range contains a value, or picks one of two values based on that.',
181
- formula_function_regexmatch_arg_pattern_description:
182
- 'Text or regular expression to match. The first matching cell is returned.',
183
- formula_function_regexmatch_arg_range_description:
184
- 'Cell range to search, from top to bottom.',
185
- formula_function_regexmatch_description:
186
- 'Returns the first cell value in a range that matches a text or regex pattern.',
154
+ formula_circular_reference_msg: 'Some formulas reference each other in a loop and could not be calculated.',
155
+ hide_hidden_sheet_tabs: 'Hide hidden tabs',
156
+ hide_sheet_tab: 'Hide sheet',
157
+ formula_function_if_arg_condition_description: 'Condition to test. Comparisons, TRUE/FALSE, and 0/1 values are supported.',
158
+ formula_function_if_arg_value_if_false_description: 'Value returned when the condition is FALSE.',
159
+ formula_function_if_arg_value_if_true_description: 'Value returned when the condition is TRUE.',
160
+ formula_function_if_description: 'Returns one value when the condition is TRUE and another when it is FALSE.',
161
+ formula_function_iferror_arg_fallback_description: 'Value returned only when the first argument returns any formula error.',
162
+ formula_function_iferror_arg_value_description: 'Value to try first. The fallback is skipped when this value succeeds.',
163
+ formula_function_iferror_description: 'Returns a fallback value only when the first value has a formula error.',
164
+ formula_function_ifna_arg_fallback_description: 'Value returned only when the first argument cannot find a referenced value.',
165
+ formula_function_ifna_arg_value_description: 'Value to try first. The fallback is skipped unless this returns #N/A.',
166
+ formula_function_ifna_description: 'Returns a fallback value only when the first value returns #N/A.',
167
+ formula_function_includes_arg_needle_description: 'Value to look for inside the range.',
168
+ formula_function_includes_arg_range_description: 'Cell range to search for the value.',
169
+ formula_function_includes_arg_value_if_false_description: 'Value returned when the range does not contain the value.',
170
+ formula_function_includes_arg_value_if_true_description: 'Value returned when the range contains the value.',
171
+ formula_function_includes_description: 'Returns whether a range contains a value, or picks one of two values based on that.',
172
+ formula_function_regexmatch_arg_pattern_description: 'Text or regular expression to match. The first matching cell is returned.',
173
+ formula_function_regexmatch_arg_range_description: 'Cell range to search, from top to bottom.',
174
+ formula_function_regexmatch_description: 'Returns the first cell value in a range that matches a text or regex pattern.',
187
175
  fill_color: 'Fill color',
188
176
  font_size: 'Font size',
189
- check_to_include_all: 'Check to include all',
190
177
  format_cells: 'Stylize cells',
191
178
  format_value: 'Format cells',
192
179
  freeze_1_column: 'Freeze 1 column',
@@ -194,11 +181,9 @@ export default {
194
181
  freeze_n_columns: 'Freeze %{count} columns',
195
182
  freeze_n_rows: 'Freeze %{count} rows',
196
183
  import_sheet: 'Import file',
197
- import_sheet_modal_msg:
198
- 'Import a spreadsheet file, including files exported from Google Sheets.',
184
+ import_sheet_modal_msg: 'Import a spreadsheet file, including files exported from Google Sheets.',
199
185
  import_sheet_choose_file: 'Choose a file',
200
- import_sheet_file_types_hint:
201
- 'Supported files: .csv, .tsv, .xlsx, .xls, .ods',
186
+ import_sheet_file_types_hint: 'Supported files: .csv, .tsv, .xlsx, .xls, .ods',
202
187
  import_sheet_mode_create: 'Create new spreadsheet',
203
188
  import_sheet_mode_insert: 'Insert new sheet(s)',
204
189
  import_sheet_mode_replace: 'Replace spreadsheet',
@@ -206,10 +191,8 @@ export default {
206
191
  import_sheet_importing:
207
192
  'Importing your file. Large files can take a few minutes; you can close this window and keep working. You will be notified when the import finishes.',
208
193
  import_sheet_done: 'Your spreadsheet import finished.',
209
- import_sheet_done_formula_warning:
210
- 'Your spreadsheet import finished, but some formulas could not be computed.',
211
- import_sheet_failed:
212
- 'Your spreadsheet import failed. The uploaded file was kept so you can try again.',
194
+ import_sheet_done_formula_warning: 'Your spreadsheet import finished, but some formulas could not be computed.',
195
+ import_sheet_failed: 'Your spreadsheet import failed. The uploaded file was kept so you can try again.',
213
196
  insert_1_column_left: 'Insert 1 column left',
214
197
  insert_1_column_right: 'Insert 1 column right',
215
198
  insert_1_row_above: 'Insert 1 row above',
@@ -222,12 +205,11 @@ export default {
222
205
  merge_vertically: 'Merge vertically',
223
206
  move_sheet_tab_left: 'Move left',
224
207
  move_sheet_tab_right: 'Move right',
225
- move_selection_coordinate_range_msg:
208
+ move_selection_design_projection_split_msg:
226
209
  'This row or column could not be repositioned because a saved cell or named range would need to move or split.',
227
210
  move_selection_formula_dependency_msg:
228
211
  'This row or column could not be repositioned because one or more formulas depend on cells whose coordinates would change.',
229
- move_selection_formula_loading_msg:
230
- 'This row or column cannot be repositioned until the other sheets finish loading.',
212
+ move_selection_formula_loading_msg: 'This row or column cannot be repositioned until the other sheets finish loading.',
231
213
  move_selection_merged_source_column_msg:
232
214
  'This column could not be repositioned because your selection contains a merged cell. Please unmerge your cells and try again.',
233
215
  move_selection_merged_source_msg:
@@ -238,48 +220,25 @@ export default {
238
220
  more_cell_actions: 'More cell actions',
239
221
  more_sheet_tab_actions: 'More sheet actions',
240
222
  rename_sheet_tab: 'Rename sheet',
223
+ show_hidden_sheet_tabs: 'Show hidden tabs',
241
224
  sheet_tab_name: 'Sheet name',
225
+ unhide_sheet_tab: 'Unhide sheet',
242
226
  unmerge_all: 'Unmerge all',
243
227
  unfreeze_columns: 'Unfreeze columns',
244
228
  unfreeze_rows: 'Unfreeze rows',
245
- no_keep_data_table_views: 'No, keep views',
246
- include_this_column_: 'Include this column?',
247
- insert_rows_from_data_table_rearrange: 'Drag this cell to rearrange',
248
229
  data_table_login_change_required_msg:
249
230
  "This data table doesn't belong to [em_text##%{orgName}].\n Change your login to access this data table.",
250
- login_change_required_msg:
251
- "This data table doesn't belong to [em_text##%{orgName}].\n Change your login to access this data table.",
252
231
  open_data_table: 'Open data table',
253
- populate_column_limit: '%{count}/%{max} columns',
254
- populate_columns: 'Columns',
255
- populate_data: 'Insert rows',
256
- populate_no_columns: 'No columns available',
257
- populate_no_data_tables: 'No views available',
258
- populate_row_count: 'Rows',
259
- populate_row_limit: '%{count} rows',
260
- populate_row_limit_unbounded: 'Up to %{count} rows',
261
- populate_source_table: 'View',
262
- region_filter: 'Filter',
263
- region_projection_edit_blocked_msg:
264
- 'This area cannot be edited while its data table is loading or needs recovery.',
265
- region_limit: 'Limit',
266
- region_projection_failed_msg: 'This data table could not be loaded.',
267
- region_sort: 'Sort',
268
- row_number: 'row %{rowNumber}',
232
+ redo_unavailable: 'This change can no longer be redone.',
233
+ undo_history_cleared: 'Undo history was cleared because the sheet changed.',
234
+ structure_insert_grid_full_msg: 'The sheet is full. Empty its last row or column before inserting another one.',
269
235
  sheet_login_change_required_msg:
270
236
  "This spreadsheet doesn't belong to [em_text##%{orgName}].\n Change your login to access this spreadsheet.",
271
- shortcut_clear_summary:
272
- 'Cleared %{savedCount} cells, skipped %{skippedCount}, failed %{failedCount}.',
273
- shortcut_paste_summary:
274
- 'Pasted %{savedCount} cells, skipped %{skippedCount}, failed %{failedCount}.',
275
237
  sync_cells: 'Sync cells',
276
238
  paste: 'Paste',
277
- insert_from_data_table: 'Insert data table',
278
- remove_data_table: 'Remove data table',
279
239
  strikethrough: 'Strikethrough',
280
240
  text_color: 'Text color',
281
241
  text_style: 'Text style',
282
- this_row: 'this row',
283
242
  toolbar_edit: 'Edit',
284
243
  toolbar_edit_clear: 'Clear',
285
244
  toolbar_edit_clear_all: 'All',
@@ -290,7 +249,9 @@ export default {
290
249
  toolbar_edit_find_replace: 'Find and replace',
291
250
  toolbar_edit_paste: 'Paste',
292
251
  toolbar_edit_redo: 'Redo',
252
+ toolbar_edit_redo_shortcut: 'Redo (%{shortcut})',
293
253
  toolbar_edit_undo: 'Undo',
254
+ toolbar_edit_undo_shortcut: 'Undo (%{shortcut})',
294
255
  toolbar_file: 'File',
295
256
  toolbar_file_export: 'Export',
296
257
  toolbar_file_export_csv: 'Comma-separated values (.csv)',
@@ -370,10 +331,6 @@ export default {
370
331
  underline: 'Underline',
371
332
  unsupported_link_msg: 'This link cannot be opened yet.',
372
333
  untitled_data_table: 'Untitled data table',
373
- yes_delete_region: 'Yes, delete view',
374
- yes_delete_data_table_views: 'Yes, delete views',
375
- yes_delete_row: 'Yes, delete row',
376
- yes_delete_rows: 'Yes, delete rows',
377
334
  yes_delete_sheet_axis: 'Yes, delete it',
378
335
  yes_delete_data_table: 'Yes, delete data table',
379
336
  yes_delete_sheet: 'Yes, delete spreadsheet',
@@ -0,0 +1,165 @@
1
+ /* English UI copy for the formula editor guide of the shared formula
2
+ * functions (descriptions and argument hints). Keys mirror the
3
+ * descriptionI18nKey values in @jsb188/mday sheetFormulaReference*.ts. */
4
+ export default {
5
+ en: {
6
+ function_name_guide_description:
7
+ 'Choose a function to insert it with its opening parenthesis.',
8
+ function_name_guide_title: 'Formula functions',
9
+ and_description: 'Returns TRUE when every argument is TRUE.',
10
+ arg_criteria_range: 'Range tested against the criterion that follows it.',
11
+ arg_criterion:
12
+ 'Value, or text such as ">5", "<>x", "ap*" or ">="&A1, that each cell must match.',
13
+ arg_date: 'Date to inspect.',
14
+ arg_end_date: 'Date to end at.',
15
+ arg_holidays: 'Optional dates to skip as non-working days.',
16
+ arg_info_value: 'Value, cell, or formula to test.',
17
+ arg_is_sorted:
18
+ 'TRUE (default, as in Excel) for an approximate match on sorted keys; pass FALSE for an exact match.',
19
+ arg_join_value: 'Values or ranges to join; ranges are read row by row.',
20
+ arg_logical:
21
+ 'Condition, TRUE/FALSE value, number, or range; additional arguments are allowed.',
22
+ arg_months: 'Months to move; negative moves back.',
23
+ arg_number: 'Number to calculate.',
24
+ arg_number_of_characters: 'How many characters to return; defaults to 1.',
25
+ arg_search_for: 'Text to look for.',
26
+ arg_search_key: 'Value to look for.',
27
+ arg_start_date: 'Date to start from.',
28
+ arg_starting_at: 'Position to start searching from; defaults to 1.',
29
+ arg_text: 'Text, or a number or TRUE/FALSE read as text.',
30
+ arg_text_to_search: 'Text to search in.',
31
+ arg_week_type: 'Numbering system; defaults to 1 (weeks start on Sunday).',
32
+ averageif_arg_average_range:
33
+ 'Same-size range whose values are averaged; defaults to range.',
34
+ averageif_arg_range: 'Range tested by the criterion.',
35
+ averageif_description:
36
+ 'Averages the values whose cells meet one criterion.',
37
+ averageifs_arg_average_range: 'Range whose values are averaged.',
38
+ averageifs_description:
39
+ 'Averages the values whose rows meet every criterion.',
40
+ concat_description: 'Joins values and ranges into one text.',
41
+ concatenate_description: 'Joins values into one text; the same as CONCAT.',
42
+ countblank_arg_range: 'Range to inspect.',
43
+ countblank_description: 'Counts the empty cells in a range.',
44
+ countif_arg_range: 'Range to test.',
45
+ countif_description: 'Counts the cells in a range that meet one criterion.',
46
+ countifs_description: 'Counts the rows that meet every criterion.',
47
+ datedif_arg_unit:
48
+ '"Y" years, "M" months, "D" days, "YM" months after whole years, "YD" days after whole years, "MD" days after whole months.',
49
+ datedif_description:
50
+ 'Returns the whole years, months or days between two dates.',
51
+ days_description: 'Returns the number of days between two dates.',
52
+ edate_description: 'Returns the same day a number of months away.',
53
+ eomonth_description:
54
+ 'Returns the last day of the month a number of months away.',
55
+ find_description: 'Returns the position of text inside another text.',
56
+ hlookup_arg_index: '1-based row of the range to return.',
57
+ hlookup_arg_range: 'Range whose first row holds the keys.',
58
+ hlookup_description:
59
+ 'Finds a key in the first row of a range and returns the value from another row of the same column.',
60
+ ifs_arg_condition: 'Condition checked in order.',
61
+ ifs_arg_value:
62
+ 'Value returned, and evaluated, only when its condition is the first TRUE one.',
63
+ ifs_description: 'Returns the value paired with the first TRUE condition.',
64
+ index_arg_column:
65
+ '1-based column; required when the range has several rows and columns.',
66
+ index_arg_range: 'Range or UNIQUE result to read.',
67
+ index_arg_row:
68
+ '1-based row; for a one-row range, a single index is the column.',
69
+ index_description:
70
+ 'Returns the value at a row and column position of a range.',
71
+ int_description: 'Rounds a number down to the nearest integer.',
72
+ isblank_description: 'Returns TRUE when a value is empty.',
73
+ iserror_description: 'Returns TRUE when a value is any formula error.',
74
+ isna_description:
75
+ 'Returns TRUE when a value is the #N/A (not found) error.',
76
+ isnumber_description: 'Returns TRUE when a value is a number.',
77
+ istext_description: 'Returns TRUE when a value is nonempty text.',
78
+ left_description: 'Returns characters from the start of a text.',
79
+ len_description: 'Returns the number of characters in a text.',
80
+ lower_description: 'Converts a text to lowercase.',
81
+ match_arg_match_type:
82
+ '1 (default): largest value <= key in ascending data; 0: exact; -1: smallest value >= key in descending data.',
83
+ match_arg_range: 'One-row or one-column range to search.',
84
+ match_description:
85
+ 'Returns the 1-based position of a key in a one-row or one-column range.',
86
+ mid_arg_extract_length: 'How many characters to return.',
87
+ mid_arg_starting_at: '1-based position of the first character.',
88
+ mid_description: 'Returns characters from the middle of a text.',
89
+ networkdays_description: 'Counts the working days between two dates.',
90
+ not_arg_logical: 'Condition or TRUE/FALSE value to reverse.',
91
+ not_description: 'Reverses a TRUE/FALSE value.',
92
+ or_description: 'Returns TRUE when any argument is TRUE.',
93
+ proper_description: 'Capitalizes the first letter of each word.',
94
+ replace_arg_length: 'How many characters to replace.',
95
+ replace_arg_new_text: 'Text inserted in their place.',
96
+ replace_arg_position: '1-based position where the replacement starts.',
97
+ replace_description: 'Replaces part of a text by position.',
98
+ right_description: 'Returns characters from the end of a text.',
99
+ search_description:
100
+ 'Returns the position of text inside another text, ignoring case.',
101
+ sign_description:
102
+ 'Returns -1, 0 or 1 for a negative, zero or positive number.',
103
+ sqrt_description: 'Returns the positive square root of a number.',
104
+ substitute_arg_occurrence_number:
105
+ 'Replace only this occurrence; omit to replace all.',
106
+ substitute_arg_replace_with: 'Replacement text.',
107
+ substitute_arg_search_for: 'Text to replace (case-sensitive).',
108
+ substitute_arg_text_to_search: 'Text to change.',
109
+ substitute_description: 'Replaces text by content.',
110
+ sumif_arg_range: 'Range tested by the criterion.',
111
+ sumif_arg_sum_range:
112
+ 'Same-size range whose values are added; defaults to range.',
113
+ sumif_description: 'Adds the values whose cells meet one criterion.',
114
+ sumifs_arg_sum_range: 'Range whose values are added.',
115
+ sumifs_description: 'Adds the values whose rows meet every criterion.',
116
+ sumproduct_arg_range:
117
+ 'Same-size ranges whose values are multiplied position by position.',
118
+ sumproduct_description:
119
+ 'Multiplies same-position values of ranges and adds the products.',
120
+ switch_arg_case: 'Value to compare with the expression.',
121
+ switch_arg_expression: 'Value compared with each case.',
122
+ switch_arg_value:
123
+ 'Result for its case; a lone final argument is the default.',
124
+ switch_description:
125
+ 'Returns the value of the first case equal to the expression, or the default.',
126
+ text_arg_format: 'Number format pattern such as "#,##0.00" or "mmm d".',
127
+ text_arg_value: 'Number or date to format.',
128
+ text_description: 'Formats a number or date as text with a format pattern.',
129
+ textjoin_arg_delimiter: 'Text placed between the values, such as ", ".',
130
+ textjoin_arg_ignore_empty: 'TRUE skips empty cells and empty text.',
131
+ textjoin_description: 'Joins values and ranges with a delimiter.',
132
+ trim_description: 'Removes extra spaces from a text.',
133
+ trunc_arg_places:
134
+ 'Decimal places to keep; defaults to 0. Negative places zero out tens, hundreds, and so on.',
135
+ trunc_description: 'Cuts off digits of a number toward zero.',
136
+ unique_arg_by_column:
137
+ 'TRUE compares columns instead of rows. Defaults to FALSE.',
138
+ unique_arg_exactly_once:
139
+ 'TRUE keeps only rows that appear once. Defaults to FALSE.',
140
+ unique_arg_range: 'Range whose distinct rows are kept.',
141
+ unique_description:
142
+ 'Returns the distinct rows of a range as a list for COUNTA, INDEX, SUM, or other functions that read ranges.',
143
+ upper_description: 'Converts a text to uppercase.',
144
+ value_arg_text: 'Text that reads as a number, such as "1,234.50".',
145
+ value_description: 'Converts text that looks like a number into a number.',
146
+ vlookup_arg_index: '1-based column of the range to return.',
147
+ vlookup_arg_range: 'Range whose first column holds the keys.',
148
+ vlookup_description:
149
+ 'Finds a key in the first column of a range and returns the value from another column of the same row.',
150
+ weekday_description: 'Returns the day of the week as a number.',
151
+ weeknum_description: 'Returns the week number of a date within its year.',
152
+ workday_arg_num_days: 'Working days to move; negative moves back.',
153
+ workday_description: 'Returns the date a number of working days away.',
154
+ xlookup_arg_if_not_found:
155
+ 'Evaluated and returned only when nothing matches.',
156
+ xlookup_arg_lookup_range: 'One-row or one-column range to search.',
157
+ xlookup_arg_match_mode:
158
+ '0 exact (default), -1 or next smaller, 1 or next larger, 2 wildcard.',
159
+ xlookup_arg_result_range: 'Same-size range to return from.',
160
+ xlookup_arg_search_mode: '1 first to last (default), -1 last to first.',
161
+ xlookup_description:
162
+ 'Finds a key in one range and returns the value at the same position of another range.',
163
+ xor_description: 'Returns TRUE when an odd number of arguments are TRUE.',
164
+ },
165
+ };
@@ -1,12 +1,14 @@
1
1
  export default {
2
2
  en: {
3
+ active_only: 'Active only',
4
+ operation_workflows: 'Operation workflows',
3
5
  workflow_missing: 'Workflow is missing',
4
6
  workflow_missing_msg: "The workflow you're looking for could not be found.",
5
7
  not_active_msg: 'Not active – no upcoming jobs',
6
8
  active_msg: 'Active – waiting for %{logType} logs',
7
9
 
8
10
  // Reminders
9
- reminders: 'Reminders',
11
+ reminders: 'Scheduled',
10
12
  reminder_missing: 'Reminder is missing',
11
13
  reminder_missing_msg: "The reminder you're looking for could not be found.",
12
14
  one_time: 'One-time',
@@ -14,8 +16,9 @@ export default {
14
16
  completed_msg: 'Completed – no further follow-ups',
15
17
  completed: 'Completed',
16
18
  cancel_reminder: 'Cancel reminder',
17
- cancel_reminder_confirm_msg:
18
- 'This reminder will not be delivered and any in-progress runs will be stopped. Cancel this reminder?',
19
+ delete_scheduled_task: 'Delete scheduled task',
20
+ delete_scheduled_task_failed: 'The scheduled task could not be deleted. Try again.',
21
+ cancel_reminder_confirm_msg: 'This reminder will not be delivered and any in-progress runs will be stopped. Cancel this reminder?',
19
22
  canceled: 'Canceled',
20
23
  run_history: 'Run history',
21
24
  progress_report: 'Progress report',
@@ -29,7 +32,7 @@ export default {
29
32
  run_status: {
30
33
  STARTED: 'In progress',
31
34
  COMPLETED: 'Completed',
32
- COMPLETED_PARTIAL: 'Partially completed',
35
+ COMPLETED_PARTIAL: 'Partial',
33
36
  ERRORED: 'Failed',
34
37
  QUEUED: 'Queued',
35
38
  CANCELED: 'Canceled',
@@ -37,6 +40,15 @@ export default {
37
40
 
38
41
  // Workflow runs page
39
42
  workflow_runs: 'Workflow runs',
43
+ workflows_end:
44
+ 'There is %{smart_count} workflow for this organization.||||' + 'There are %{smart_count} workflows for this organization.',
45
+ workflows_empty: "There aren't any workflows for this organization.",
46
+ workflow_runs_end:
47
+ 'There is %{smart_count} workflow run for this organization.||||' +
48
+ 'There are %{smart_count} workflow runs for this organization.',
49
+ workflow_runs_empty: "There aren't any workflow runs for this organization.",
50
+ runs_end: 'There is %{smart_count} run for this workflow.||||' + 'There are %{smart_count} runs for this workflow.',
51
+ runs_empty: "There aren't any runs for this workflow.",
40
52
  view_runs: 'View workflow runs',
41
53
  run_missing: 'Run is missing',
42
54
  run_missing_msg: "The workflow run you're looking for could not be found.",
@@ -44,15 +56,41 @@ export default {
44
56
 
45
57
  // Workflow kind filter
46
58
  filter_by_kind: 'Filter by type',
47
- all_kinds: 'Workflows + reminders',
59
+ all_kinds: 'Workflows + Scheduled',
48
60
  workflows_only: 'Workflows only',
49
- reminders_only: 'Reminders only',
61
+ reminders_only: 'Scheduled only',
50
62
 
51
63
  kind: {
52
64
  WORKFLOW: 'Workflow',
53
- REMINDER: 'Reminder',
65
+ REMINDER: 'Scheduled',
54
66
  },
55
67
 
68
+ // Program-managed workflows
69
+ program_managed: 'Managed by %{program}',
70
+ program_managed_msg:
71
+ 'This workflow comes with the %{program} program and stays up to date with it. You can pause it or add your own instructions.',
72
+ program_workflow: 'Program workflow',
73
+ program_trigger_msg: 'When a log is added to this document',
74
+ program_active_msg: 'Active – waiting for logs added to this document',
75
+ program_unenrolled_msg:
76
+ "This workflow's program was removed from your organization. Restore the program in App Settings → Programs to resume it.",
77
+ program_restore_expired_msg:
78
+ "This workflow's program was removed from your organization more than 90 days ago and can no longer be restored, so this workflow can't be resumed. It will be deleted soon.",
79
+ program_removed_paused_msg:
80
+ 'Paused when the %{program} program was removed. Restore the program in App Settings → Programs to resume this workflow.',
81
+ pause_workflow: 'Pause workflow',
82
+ resume_workflow: 'Resume workflow',
83
+ user_instructions: 'User instructions',
84
+ user_instructions_ph: 'Instructions for your organization (optional)',
85
+ user_instructions_empty: 'No user instructions yet.',
86
+ edit_user_instructions: 'Edit instructions',
87
+ user_instructions_msg: 'Your instructions are added after the program instructions each time this workflow runs.',
88
+ user_instructions_max: 'Use at most %{smart_count} character.||||Use at most %{smart_count} characters.',
89
+ catalog_instructions: 'Program instructions',
90
+ composed_instructions: 'What AI reads',
91
+ save_user_instructions: 'Save instructions',
92
+ user_instructions_saved: 'User instructions saved.',
93
+
56
94
  // Below is old but some may be useful
57
95
 
58
96
  // Actions related
@@ -61,8 +99,9 @@ export default {
61
99
  waiting_for_tasks_to_be_created: 'Waiting for tasks to be created...',
62
100
  view_workflow: 'View workflow',
63
101
  delete_workflow: 'Delete workflow',
64
- workflows_empty_msg:
65
- 'Please email us at hello@marketday.ai to create workflows for your %{orgType}.',
102
+ yes_delete_workflow: 'Yes, delete workflow',
103
+ delete_workflow_failed: 'The workflow could not be deleted. Try again.',
104
+ workflows_empty_msg: 'Please email us at hello@marketday.ai to create workflows for your %{orgType}.',
66
105
 
67
106
  for_operation: {
68
107
  FARMERS_MARKET: 'Vendor',