@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
package/src/i18n/sheet.ts
CHANGED
|
@@ -1,10 +1,382 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
en: {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
sheets: 'Spreadsheets',
|
|
4
|
+
open_spreadsheet: 'Open spreadsheet',
|
|
5
|
+
access_settings: 'Access settings',
|
|
6
|
+
access_settings_msg: 'Choose who can view and edit this spreadsheet.',
|
|
7
|
+
access_level_team: 'Team',
|
|
8
|
+
access_level_team_msg: 'Everyone in your team can access this spreadsheet.',
|
|
9
|
+
access_level_restricted: 'Restricted',
|
|
10
|
+
access_level_restricted_msg:
|
|
11
|
+
'Only people and organizations you add can access this spreadsheet.',
|
|
12
|
+
access_level_public: 'Public',
|
|
13
|
+
access_level_public_msg:
|
|
14
|
+
'Everyone with the link can view this spreadsheet.',
|
|
15
|
+
access_team_permission_title: 'Team permission',
|
|
16
|
+
access_team_everyone_views: 'Everyone in team can view',
|
|
17
|
+
access_team_everyone_edits: 'Everyone in team can view & edit',
|
|
18
|
+
access_public_permission_title: 'Public permission',
|
|
19
|
+
access_public_anyone_views: 'Anyone with the link can view',
|
|
20
|
+
access_public_anyone_edits: 'Anyone with an account can edit',
|
|
21
|
+
access_people_title: 'People with access',
|
|
22
|
+
access_organizations_title: 'Organizations with access',
|
|
23
|
+
access_anyone_with_link: 'Anyone with link',
|
|
24
|
+
access_can_view: 'Can view',
|
|
25
|
+
access_can_edit: 'Can edit',
|
|
26
|
+
access_general_title: 'General access',
|
|
27
|
+
access_network_orgs: 'Network organizations',
|
|
28
|
+
access_no_network_orgs_found: 'No network organizations found.',
|
|
29
|
+
access_no_access: 'No access',
|
|
30
|
+
access_only_invites: 'Only with invites',
|
|
31
|
+
access_no_team_members_found: 'No team members found.',
|
|
32
|
+
access_team_members: 'Team members',
|
|
33
|
+
access_admin_owner_msg: 'Admins/Owners always have full access.',
|
|
34
|
+
access_copy_link: 'Copy link',
|
|
35
|
+
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.',
|
|
40
|
+
access_custom_member_permission_org_permission_msg:
|
|
41
|
+
'There are [cl_primary##%{membersCount} custom member] permission and [cl_primary##%{orgsCount} custom network] permission.',
|
|
42
|
+
access_custom_member_permission_org_permissions_msg:
|
|
43
|
+
'There are [cl_primary##%{membersCount} custom member] permission and [cl_primary##%{orgsCount} custom network] permissions.',
|
|
44
|
+
access_custom_member_permissions_org_permission_msg:
|
|
45
|
+
'There are [cl_primary##%{membersCount} custom member] permissions and [cl_primary##%{orgsCount} custom network] permission.',
|
|
46
|
+
access_custom_member_permissions_org_permissions_msg:
|
|
47
|
+
'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.',
|
|
52
|
+
access_anyone_with_link_msg: 'Anyone with the link can view.',
|
|
53
|
+
access_network_view_msg: 'Other network organizations can view.',
|
|
54
|
+
access_network_edit_msg: 'Other network organizations can view and edit.',
|
|
55
|
+
access_only_invites_msg: 'Invites are required to gain access.',
|
|
56
|
+
access_team_view_msg: 'Your team can view by default, but not edit.',
|
|
57
|
+
access_team_edit_msg: 'Your team can view and edit by default.',
|
|
58
|
+
access_team_none_msg: 'Your team cannot view unless they were invited.',
|
|
59
|
+
access_saved_msg: 'Access settings were saved.',
|
|
60
|
+
access_no_permission_msg:
|
|
61
|
+
'You do not have permission to change access settings.',
|
|
62
|
+
access_sign_in_required_msg: 'You must sign in to view this spreadsheet.',
|
|
63
|
+
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
|
+
custom_currency_title: 'Custom currency formats',
|
|
69
|
+
custom_currency_template_placeholder: 'Enter a currency format',
|
|
70
|
+
custom_currency_column_currency: 'Currency',
|
|
71
|
+
custom_date_time_title: 'Custom date and time formats',
|
|
72
|
+
custom_date_time_template_placeholder: 'Enter a date format',
|
|
73
|
+
custom_format_column_preview: 'Preview',
|
|
74
|
+
custom_format_column_template: 'Template',
|
|
75
|
+
custom_format_invalid: 'Invalid format',
|
|
76
|
+
built_in_tables: 'Built-in tables',
|
|
77
|
+
bold: 'Bold',
|
|
78
|
+
border_outline_all_cells: 'Outline all cells',
|
|
79
|
+
border_outline_all_sides: 'Outline all sides',
|
|
80
|
+
border_outline_bottom: 'Outline bottom side',
|
|
81
|
+
border_outline_inner_cells: 'Outline in between cells',
|
|
82
|
+
border_outline_inner_horizontal: 'Outline in between cells top to bottom',
|
|
83
|
+
border_outline_inner_vertical: 'Outline in between cells left to right',
|
|
84
|
+
border_outline_left: 'Outline left side',
|
|
85
|
+
border_outline_none: 'Outline nothing',
|
|
86
|
+
border_outline_right: 'Outline right side',
|
|
87
|
+
border_outline_top: 'Outline top side',
|
|
88
|
+
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',
|
|
94
|
+
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
|
+
create_sheet: 'New spreadsheet',
|
|
100
|
+
create_sheet_description: 'Create a new spreadsheet',
|
|
101
|
+
create_sheet_modal_msg:
|
|
102
|
+
'Create a new spreadsheet with AI controlled views.',
|
|
103
|
+
create_new_spreadsheet: 'Create a new spreadsheet',
|
|
104
|
+
create_new_sheet: 'Create a new sheet',
|
|
105
|
+
new_sheet: 'New sheet',
|
|
106
|
+
new_sheet_title_: 'Spreadsheet %{number}',
|
|
107
|
+
data_table: 'View',
|
|
108
|
+
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',
|
|
112
|
+
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?',
|
|
121
|
+
delete_column: 'Delete column',
|
|
122
|
+
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.',
|
|
131
|
+
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}".',
|
|
135
|
+
delete_sheet_tab: 'Delete sheet',
|
|
136
|
+
delete_sheet_tab_msg: '[hl]%{title}[/hl] sheet will be deleted.',
|
|
137
|
+
edit_cell: 'Edit',
|
|
138
|
+
edit_data_table_view: 'Edit data table',
|
|
139
|
+
editing_temporarily_disabled_msg:
|
|
140
|
+
'Editing this cell is temporarily disabled.',
|
|
141
|
+
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.',
|
|
5
187
|
fill_color: 'Fill color',
|
|
6
|
-
|
|
188
|
+
font_size: 'Font size',
|
|
189
|
+
check_to_include_all: 'Check to include all',
|
|
190
|
+
format_cells: 'Stylize cells',
|
|
191
|
+
format_value: 'Format cells',
|
|
192
|
+
freeze_1_column: 'Freeze 1 column',
|
|
193
|
+
freeze_1_row: 'Freeze 1 row',
|
|
194
|
+
freeze_n_columns: 'Freeze %{count} columns',
|
|
195
|
+
freeze_n_rows: 'Freeze %{count} rows',
|
|
196
|
+
import_sheet: 'Import file',
|
|
197
|
+
import_sheet_modal_msg:
|
|
198
|
+
'Import a spreadsheet file, including files exported from Google Sheets.',
|
|
199
|
+
import_sheet_choose_file: 'Choose a file',
|
|
200
|
+
import_sheet_file_types_hint:
|
|
201
|
+
'Supported files: .csv, .tsv, .xlsx, .xls, .ods',
|
|
202
|
+
import_sheet_mode_create: 'Create new spreadsheet',
|
|
203
|
+
import_sheet_mode_insert: 'Insert new sheet(s)',
|
|
204
|
+
import_sheet_mode_replace: 'Replace spreadsheet',
|
|
205
|
+
import_sheet_confirm: 'Import',
|
|
206
|
+
import_sheet_importing:
|
|
207
|
+
'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
|
+
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.',
|
|
213
|
+
insert_1_column_left: 'Insert 1 column left',
|
|
214
|
+
insert_1_column_right: 'Insert 1 column right',
|
|
215
|
+
insert_1_row_above: 'Insert 1 row above',
|
|
216
|
+
insert_1_row_below: 'Insert 1 row below',
|
|
217
|
+
italic: 'Italic',
|
|
218
|
+
markdown: 'Markdown',
|
|
219
|
+
merge_all: 'Merge all',
|
|
220
|
+
merge_cells: 'Merge cells',
|
|
221
|
+
merge_horizontally: 'Merge horizontally',
|
|
222
|
+
merge_vertically: 'Merge vertically',
|
|
223
|
+
move_sheet_tab_left: 'Move left',
|
|
224
|
+
move_sheet_tab_right: 'Move right',
|
|
225
|
+
move_selection_coordinate_range_msg:
|
|
226
|
+
'This row or column could not be repositioned because a saved cell or named range would need to move or split.',
|
|
227
|
+
move_selection_formula_dependency_msg:
|
|
228
|
+
'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.',
|
|
231
|
+
move_selection_merged_source_column_msg:
|
|
232
|
+
'This column could not be repositioned because your selection contains a merged cell. Please unmerge your cells and try again.',
|
|
233
|
+
move_selection_merged_source_msg:
|
|
234
|
+
'This selection could not be repositioned because it contains a merged cell. Please unmerge your cells and try again.',
|
|
235
|
+
move_selection_merged_target_msg:
|
|
236
|
+
'You cannot move a column to a position that contains a merged cell. Please unmerge your cells and try again.',
|
|
237
|
+
move_selection_merged_title: 'Repositioning Error',
|
|
238
|
+
more_cell_actions: 'More cell actions',
|
|
239
|
+
more_sheet_tab_actions: 'More sheet actions',
|
|
240
|
+
rename_sheet_tab: 'Rename sheet',
|
|
241
|
+
sheet_tab_name: 'Sheet name',
|
|
242
|
+
unmerge_all: 'Unmerge all',
|
|
243
|
+
unfreeze_columns: 'Unfreeze columns',
|
|
244
|
+
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
|
+
data_table_login_change_required_msg:
|
|
249
|
+
"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
|
+
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}',
|
|
269
|
+
sheet_login_change_required_msg:
|
|
270
|
+
"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
|
+
sync_cells: 'Sync cells',
|
|
276
|
+
paste: 'Paste',
|
|
277
|
+
insert_from_data_table: 'Insert data table',
|
|
278
|
+
remove_data_table: 'Remove data table',
|
|
279
|
+
strikethrough: 'Strikethrough',
|
|
7
280
|
text_color: 'Text color',
|
|
8
|
-
|
|
281
|
+
text_style: 'Text style',
|
|
282
|
+
this_row: 'this row',
|
|
283
|
+
toolbar_edit: 'Edit',
|
|
284
|
+
toolbar_edit_clear: 'Clear',
|
|
285
|
+
toolbar_edit_clear_all: 'All',
|
|
286
|
+
toolbar_edit_clear_formatting: 'Formatting',
|
|
287
|
+
toolbar_edit_clear_values: 'Values',
|
|
288
|
+
toolbar_edit_copy: 'Copy',
|
|
289
|
+
toolbar_edit_cut: 'Cut',
|
|
290
|
+
toolbar_edit_find_replace: 'Find and replace',
|
|
291
|
+
toolbar_edit_paste: 'Paste',
|
|
292
|
+
toolbar_edit_redo: 'Redo',
|
|
293
|
+
toolbar_edit_undo: 'Undo',
|
|
294
|
+
toolbar_file: 'File',
|
|
295
|
+
toolbar_file_export: 'Export',
|
|
296
|
+
toolbar_file_export_csv: 'Comma-separated values (.csv)',
|
|
297
|
+
toolbar_file_export_pdf: 'PDF document (.pdf)',
|
|
298
|
+
toolbar_file_export_tsv: 'Tab-separated values (.tsv)',
|
|
299
|
+
toolbar_file_export_xlsx: 'Microsoft Excel (.xlsx)',
|
|
300
|
+
toolbar_file_import: 'Import',
|
|
301
|
+
toolbar_file_make_copy: 'Make a copy',
|
|
302
|
+
toolbar_file_new: 'New',
|
|
303
|
+
toolbar_file_new_sheet: 'Sheet',
|
|
304
|
+
toolbar_file_new_spreadsheet: 'Spreadsheet',
|
|
305
|
+
toolbar_file_open: 'Open',
|
|
306
|
+
toolbar_file_print: 'Print',
|
|
307
|
+
toolbar_file_rename: 'Rename',
|
|
308
|
+
toolbar_file_settings: 'Settings',
|
|
309
|
+
toolbar_format: 'Format',
|
|
310
|
+
toolbar_format_alignment: 'Alignment',
|
|
311
|
+
toolbar_format_alignment_bottom: 'Bottom',
|
|
312
|
+
toolbar_format_alignment_center: 'Center',
|
|
313
|
+
toolbar_format_alignment_left: 'Left',
|
|
314
|
+
toolbar_format_alignment_middle: 'Middle',
|
|
315
|
+
toolbar_format_alignment_right: 'Right',
|
|
316
|
+
toolbar_format_alignment_top: 'Top',
|
|
317
|
+
toolbar_format_number: 'Number',
|
|
318
|
+
toolbar_format_number_accounting: 'Accounting',
|
|
319
|
+
toolbar_format_number_automatic: 'Automatic',
|
|
320
|
+
toolbar_format_number_currency: 'Currency',
|
|
321
|
+
toolbar_format_number_currency_rounded: 'Currency rounded',
|
|
322
|
+
toolbar_format_number_custom_currency: 'Custom currency',
|
|
323
|
+
toolbar_format_number_custom_date_time: 'Custom date/time',
|
|
324
|
+
toolbar_format_number_custom_number: 'Custom number format',
|
|
325
|
+
toolbar_format_number_date: 'Date',
|
|
326
|
+
toolbar_format_number_date_time: 'Date time',
|
|
327
|
+
toolbar_format_number_duration: 'Duration',
|
|
328
|
+
toolbar_format_number_financial: 'Financial',
|
|
329
|
+
toolbar_format_number_number: 'Number',
|
|
330
|
+
toolbar_format_number_percent: 'Percent',
|
|
331
|
+
toolbar_format_number_plain_text: 'Plain text',
|
|
332
|
+
toolbar_format_number_scientific: 'Scientific',
|
|
333
|
+
toolbar_format_number_time: 'Time',
|
|
334
|
+
toolbar_format_rotation: 'Rotation',
|
|
335
|
+
toolbar_format_text: 'Text',
|
|
336
|
+
toolbar_format_text_wrap: 'Text wrap',
|
|
337
|
+
toolbar_format_text_wrap_clip: 'Clip',
|
|
338
|
+
toolbar_format_text_wrap_overflow: 'Overflow',
|
|
339
|
+
toolbar_format_text_wrap_wrap: 'Wrap',
|
|
340
|
+
toolbar_insert: 'Insert',
|
|
341
|
+
toolbar_insert_columns: 'Columns',
|
|
342
|
+
toolbar_insert_column_left: 'Column left',
|
|
343
|
+
toolbar_insert_column_right: 'Column right',
|
|
344
|
+
toolbar_insert_function: 'Function',
|
|
345
|
+
toolbar_insert_function_average: 'AVERAGE',
|
|
346
|
+
toolbar_insert_function_count: 'COUNT',
|
|
347
|
+
toolbar_insert_function_max: 'MAX',
|
|
348
|
+
toolbar_insert_function_min: 'MIN',
|
|
349
|
+
toolbar_insert_function_sum: 'SUM',
|
|
350
|
+
toolbar_insert_row_above: 'Row above',
|
|
351
|
+
toolbar_insert_row_below: 'Row below',
|
|
352
|
+
toolbar_insert_rows: 'Rows',
|
|
353
|
+
toolbar_insert_sheet: 'Sheet',
|
|
354
|
+
toolbar_view: 'View',
|
|
355
|
+
toolbar_view_freeze: 'Freeze',
|
|
356
|
+
toolbar_view_freeze_1_column: '1 column',
|
|
357
|
+
toolbar_view_freeze_1_row: '1 row',
|
|
358
|
+
toolbar_view_freeze_2_columns: '2 columns',
|
|
359
|
+
toolbar_view_freeze_2_rows: '2 rows',
|
|
360
|
+
toolbar_view_freeze_no_rows: 'No rows',
|
|
361
|
+
toolbar_view_show: 'Show',
|
|
362
|
+
toolbar_view_show_formula_bar: 'Formula bar',
|
|
363
|
+
toolbar_view_show_gridlines: 'Gridlines',
|
|
364
|
+
toolbar_view_zoom: 'Zoom',
|
|
365
|
+
toolbar_view_zoom_100: '100%',
|
|
366
|
+
toolbar_view_zoom_125: '125%',
|
|
367
|
+
toolbar_view_zoom_150: '150%',
|
|
368
|
+
toolbar_view_zoom_50: '50%',
|
|
369
|
+
toolbar_view_zoom_75: '75%',
|
|
370
|
+
underline: 'Underline',
|
|
371
|
+
unsupported_link_msg: 'This link cannot be opened yet.',
|
|
372
|
+
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
|
+
yes_delete_sheet_axis: 'Yes, delete it',
|
|
378
|
+
yes_delete_data_table: 'Yes, delete data table',
|
|
379
|
+
yes_delete_sheet: 'Yes, delete spreadsheet',
|
|
380
|
+
yes_delete_sheet_tab: 'Yes, delete sheet',
|
|
9
381
|
},
|
|
10
382
|
};
|
package/src/i18n/workflow.ts
CHANGED
|
@@ -1,25 +1,72 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
en: {
|
|
3
|
+
workflow_missing: 'Workflow is missing',
|
|
4
|
+
workflow_missing_msg: "The workflow you're looking for could not be found.",
|
|
5
|
+
not_active_msg: 'Not active – no upcoming jobs',
|
|
6
|
+
active_msg: 'Active – waiting for %{logType} logs',
|
|
7
|
+
|
|
8
|
+
// Reminders
|
|
9
|
+
reminders: 'Reminders',
|
|
10
|
+
reminder_missing: 'Reminder is missing',
|
|
11
|
+
reminder_missing_msg: "The reminder you're looking for could not be found.",
|
|
12
|
+
one_time: 'One-time',
|
|
13
|
+
in_progress_msg: 'In progress – waiting on a reply or follow-up',
|
|
14
|
+
completed_msg: 'Completed – no further follow-ups',
|
|
15
|
+
completed: 'Completed',
|
|
16
|
+
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
|
+
canceled: 'Canceled',
|
|
20
|
+
run_history: 'Run history',
|
|
21
|
+
progress_report: 'Progress report',
|
|
22
|
+
no_runs_msg: 'This reminder has not run yet.',
|
|
23
|
+
sent_message: 'Sent message',
|
|
24
|
+
waiting_for_reply_msg: 'Waiting for a reply from %{name} until %{until}',
|
|
25
|
+
follow_up_at_msg: 'Next follow-up: %{followUpAt}',
|
|
26
|
+
created_by: 'Created by %{name}',
|
|
27
|
+
recipients: 'Recipients',
|
|
28
|
+
|
|
29
|
+
run_status: {
|
|
30
|
+
STARTED: 'In progress',
|
|
31
|
+
COMPLETED: 'Completed',
|
|
32
|
+
COMPLETED_PARTIAL: 'Partially completed',
|
|
33
|
+
ERRORED: 'Failed',
|
|
34
|
+
QUEUED: 'Queued',
|
|
35
|
+
CANCELED: 'Canceled',
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
// Workflow runs page
|
|
39
|
+
workflow_runs: 'Workflow runs',
|
|
40
|
+
view_runs: 'View workflow runs',
|
|
41
|
+
run_missing: 'Run is missing',
|
|
42
|
+
run_missing_msg: "The workflow run you're looking for could not be found.",
|
|
43
|
+
no_runs_found_msg: 'No workflow runs found.',
|
|
44
|
+
|
|
45
|
+
// Workflow kind filter
|
|
46
|
+
filter_by_kind: 'Filter by type',
|
|
47
|
+
all_kinds: 'Workflows + reminders',
|
|
48
|
+
workflows_only: 'Workflows only',
|
|
49
|
+
reminders_only: 'Reminders only',
|
|
50
|
+
|
|
51
|
+
kind: {
|
|
52
|
+
WORKFLOW: 'Workflow',
|
|
53
|
+
REMINDER: 'Reminder',
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
// Below is old but some may be useful
|
|
57
|
+
|
|
58
|
+
// Actions related
|
|
59
|
+
not_started_msg: "Tasks haven't started",
|
|
60
|
+
waiting_for_task_msg: 'Waiting for the task to start...',
|
|
61
|
+
waiting_for_tasks_to_be_created: 'Waiting for tasks to be created...',
|
|
62
|
+
view_workflow: 'View workflow',
|
|
63
|
+
delete_workflow: 'Delete workflow',
|
|
64
|
+
workflows_empty_msg:
|
|
65
|
+
'Please email us at hello@marketday.ai to create workflows for your %{orgType}.',
|
|
66
|
+
|
|
67
|
+
for_operation: {
|
|
68
|
+
FARMERS_MARKET: 'Vendor',
|
|
69
|
+
GROWER_NETWORK: 'Grower',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
25
72
|
};
|
package/src/main.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference path="./types/console.d.ts" />
|
|
2
|
+
|
|
1
3
|
import i18n, { i18nTranslations } from './i18n/index.ts';
|
|
2
4
|
|
|
3
5
|
// Get the correct type for ENV
|
|
@@ -8,78 +10,80 @@ let ENV: Map<string, string | boolean | number> = new Map();
|
|
|
8
10
|
*/
|
|
9
11
|
|
|
10
12
|
export function configI18n(texts?: Record<string, any>) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
};
|
|
13
|
+
// Locale support for later
|
|
14
|
+
const locale = 'en';
|
|
15
|
+
|
|
16
|
+
const extendedObj: Record<string, any> = {};
|
|
17
|
+
|
|
18
|
+
for (const key in i18nTranslations) {
|
|
19
|
+
extendedObj[key] = i18nTranslations[key][locale];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (texts) {
|
|
23
|
+
for (const key in texts) {
|
|
24
|
+
const obj = texts[key][locale];
|
|
25
|
+
|
|
26
|
+
if (extendedObj[key]) {
|
|
27
|
+
extendedObj[key] = {
|
|
28
|
+
...extendedObj[key],
|
|
29
|
+
...obj,
|
|
30
|
+
};
|
|
31
|
+
} else {
|
|
32
|
+
extendedObj[key] = obj;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
i18n.extend(extendedObj);
|
|
38
|
+
}
|
|
38
39
|
|
|
39
40
|
/**
|
|
40
41
|
* Register environment variables so the package may use it
|
|
41
42
|
*/
|
|
42
43
|
|
|
43
44
|
export function registerENV(env: Record<string, string>) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
45
|
+
// Do not use process.env; because this package is used in client + server
|
|
46
|
+
|
|
47
|
+
for (const key in env) {
|
|
48
|
+
if (
|
|
49
|
+
typeof key !== 'undefined' &&
|
|
50
|
+
Object.prototype.hasOwnProperty.call(env, key)
|
|
51
|
+
) {
|
|
52
|
+
ENV.set(key, env[key]);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Shim some development commands
|
|
57
|
+
console.dev = (str: string, ...args: any[]) => {
|
|
58
|
+
if (ENV.get('NODE_ENV') === 'development') {
|
|
59
|
+
const [preset, ...otherArgs] = args;
|
|
60
|
+
|
|
61
|
+
let style;
|
|
62
|
+
switch (preset) {
|
|
63
|
+
case 'em':
|
|
64
|
+
style = 'background: #FFF380;';
|
|
65
|
+
break;
|
|
66
|
+
case 'warning':
|
|
67
|
+
style = 'background: #E64545; color: #FFF;';
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
console.log(
|
|
73
|
+
`%c${str}`,
|
|
74
|
+
`${style || 'background: #F2F0DA;'} padding: 3px 5px;`,
|
|
75
|
+
...(style ? otherArgs : args),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
/**
|
|
80
82
|
* Get environment variables
|
|
81
83
|
*/
|
|
82
84
|
|
|
83
|
-
export function getENVVariable(
|
|
84
|
-
|
|
85
|
+
export function getENVVariable(
|
|
86
|
+
namespace: string,
|
|
87
|
+
): string | boolean | number | undefined {
|
|
88
|
+
return ENV.get(namespace);
|
|
85
89
|
}
|