@jsb188/app 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +31 -30
- package/src/constants/app.ts +367 -0
- package/src/constants/other.ts +17 -0
- package/src/constants/storage.ts +4 -0
- package/src/constants/wsActions.ts +21 -0
- package/{i18n → src/i18n}/account.ts +19 -6
- package/src/i18n/ai_agent.ts +88 -0
- package/{i18n → src/i18n}/app.ts +4 -18
- package/{i18n → src/i18n}/auth.ts +18 -8
- package/{i18n → src/i18n}/billing.ts +2 -2
- package/src/i18n/country.ts +249 -0
- package/src/i18n/datetime.ts +60 -0
- package/{i18n → src/i18n}/error.ts +18 -7
- package/src/i18n/form.ts +295 -0
- package/src/i18n/index.ts +35 -0
- package/src/i18n/log.ts +484 -0
- package/src/i18n/message.ts +11 -0
- package/src/i18n/org.ts +165 -0
- package/src/i18n/product.ts +75 -0
- package/{main.ts → src/main.ts} +20 -29
- package/{types → src/types}/account.d.ts +9 -8
- package/src/types/app.d.ts +74 -0
- package/{types → src/types}/auth.d.ts +1 -2
- package/{types → src/types}/form.d.ts +1 -1
- package/src/types/other.d.ts +44 -0
- package/src/types/storage.d.ts +70 -0
- package/{utils/user.ts → src/utils/account.ts} +7 -84
- package/{utils → src/utils}/api.ts +4 -4
- package/{utils → src/utils}/billing.ts +1 -1
- package/{utils → src/utils}/datetime.ts +295 -33
- package/{utils → src/utils}/logic.ts +42 -5
- package/{utils → src/utils}/number.ts +89 -16
- package/{utils → src/utils}/object.ts +164 -11
- package/{utils → src/utils}/string.ts +165 -34
- package/{utils → src/utils}/timeZone.ts +168 -13
- package/{utils → src/utils}/url_client.ts +1 -1
- package/tsconfig.json +13 -0
- package/constants/app.ts +0 -80
- package/constants/organization.ts +0 -12
- package/constants/ws.ts +0 -47
- package/i18n/datetime.ts +0 -21
- package/i18n/form.ts +0 -115
- package/i18n/index.ts +0 -5
- package/types/app.d.ts +0 -49
- package/types/organization.d.ts +0 -94
- package/utils/organization.ts +0 -102
- /package/{constants → src/constants}/billing.ts +0 -0
- /package/{constants → src/constants}/emoji.ts +0 -0
- /package/{constants → src/constants}/user.ts +0 -0
- /package/{platform.ts → src/platform.ts} +0 -0
- /package/{types → src/types}/ai.d.ts +0 -0
- /package/{types.d.ts → src/types.d.ts} +0 -0
- /package/{utils → src/utils}/emoji.ts +0 -0
package/src/i18n/form.ts
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
en: {
|
|
3
|
+
yes: 'Yes',
|
|
4
|
+
no: 'No',
|
|
5
|
+
no_nevermind: 'No, nevermind',
|
|
6
|
+
ok: 'OK',
|
|
7
|
+
or: 'or',
|
|
8
|
+
n_a: 'N/A',
|
|
9
|
+
unknown: 'Unknown',
|
|
10
|
+
void: 'Void', // Use uppercase if needed
|
|
11
|
+
location: 'Location',
|
|
12
|
+
warning: 'Warning',
|
|
13
|
+
cancel: 'Cancel',
|
|
14
|
+
continue: 'Continue',
|
|
15
|
+
continue_editing: 'Continue editing',
|
|
16
|
+
class: 'Class',
|
|
17
|
+
classification: 'Classification',
|
|
18
|
+
overview: 'Overview',
|
|
19
|
+
latest: 'Latest',
|
|
20
|
+
latest_activity: 'Latest Activity',
|
|
21
|
+
dob: 'DOB',
|
|
22
|
+
date_of_birth: 'Date of birth',
|
|
23
|
+
deceased: 'Deceased',
|
|
24
|
+
confirmation: 'Confirmation',
|
|
25
|
+
primary: 'Primary',
|
|
26
|
+
id: 'ID',
|
|
27
|
+
for: 'For',
|
|
28
|
+
sort_by: 'Sort by',
|
|
29
|
+
sort_list: 'Sort list',
|
|
30
|
+
apply: 'Apply',
|
|
31
|
+
apply_filters: 'Apply filters',
|
|
32
|
+
missing: 'Missing',
|
|
33
|
+
content_missing: 'Content missing',
|
|
34
|
+
content_not_found_msg: 'The content you are looking for could not be found.',
|
|
35
|
+
reports: 'Reports',
|
|
36
|
+
section: 'Section',
|
|
37
|
+
title: 'Title',
|
|
38
|
+
hide: 'Hide',
|
|
39
|
+
show: 'Show',
|
|
40
|
+
deleted: 'Deleted',
|
|
41
|
+
delete: 'Delete',
|
|
42
|
+
delete_file: 'Delete file',
|
|
43
|
+
delete_file_msg: 'Are you sure you want to delete this file<br /><span class=\"em_text\">"%{fileName}"</span>?',
|
|
44
|
+
yes_delete_file: 'Yes, delete this file',
|
|
45
|
+
balance: 'Balance',
|
|
46
|
+
number: 'Number',
|
|
47
|
+
livestock: 'Livestock',
|
|
48
|
+
frequency: 'Frequency',
|
|
49
|
+
expiration: 'Expiration',
|
|
50
|
+
expiration_date: 'Expiration date',
|
|
51
|
+
document: 'Document',
|
|
52
|
+
documents: 'Documents',
|
|
53
|
+
document_type: 'Document type',
|
|
54
|
+
untitled_document: 'Untitled document',
|
|
55
|
+
try_again: 'Try again',
|
|
56
|
+
refresh_page: 'Refresh page',
|
|
57
|
+
authenticate: 'Authenticate',
|
|
58
|
+
please_verify: 'Please verify',
|
|
59
|
+
check_email: 'Check your e-mail',
|
|
60
|
+
request_will_complete_once_verified_msg: 'Your request will be completed once the verification is complete.',
|
|
61
|
+
your_request_is_completed_msg: 'Your request is completed.',
|
|
62
|
+
page_of: 'Page %{number} of %{total}',
|
|
63
|
+
subtotal: 'Subtotal',
|
|
64
|
+
total: 'Total',
|
|
65
|
+
receipts: 'Receipts',
|
|
66
|
+
market_receipts: 'Market receipts',
|
|
67
|
+
search: 'Search',
|
|
68
|
+
submitted: 'Submitted',
|
|
69
|
+
no_results: 'No results',
|
|
70
|
+
change: 'Change',
|
|
71
|
+
loading_: 'Loading...',
|
|
72
|
+
save: 'Save',
|
|
73
|
+
saving_: 'Saving...',
|
|
74
|
+
uploading_: 'Uploading...',
|
|
75
|
+
undo_changes: 'Undo changes',
|
|
76
|
+
save_changes: 'Save changes',
|
|
77
|
+
unsaved_changes_msg: 'You have unsaved changes.',
|
|
78
|
+
table_of_contents: 'Table of contents',
|
|
79
|
+
copy_to_clipboard: 'Copy to clipboard',
|
|
80
|
+
ai: 'AI',
|
|
81
|
+
you: 'You',
|
|
82
|
+
copied_: 'Copied!',
|
|
83
|
+
copied_text_: 'Copied "%{text}"',
|
|
84
|
+
go_back: 'Go back',
|
|
85
|
+
read_more: 'Read more',
|
|
86
|
+
search_: 'Search: "%{query}"',
|
|
87
|
+
close: 'Close',
|
|
88
|
+
join: 'Join',
|
|
89
|
+
change_img: 'Change image',
|
|
90
|
+
upload_img: 'Upload image',
|
|
91
|
+
upload_file: 'Upload file',
|
|
92
|
+
keep_current_img: 'Keep current image',
|
|
93
|
+
select_file: 'Select file',
|
|
94
|
+
tasks: 'Tasks',
|
|
95
|
+
latest_update: 'Latest update',
|
|
96
|
+
name: 'Name',
|
|
97
|
+
item: 'Item',
|
|
98
|
+
items: 'Items',
|
|
99
|
+
tax: 'Tax',
|
|
100
|
+
price: 'Price',
|
|
101
|
+
unit: 'Unit',
|
|
102
|
+
unit_price: 'Unit Price',
|
|
103
|
+
price_ph: '1000.50',
|
|
104
|
+
tax_ph: '78.20',
|
|
105
|
+
purchase_summary: 'Purchase summary',
|
|
106
|
+
amount: 'Amount',
|
|
107
|
+
address: 'Address',
|
|
108
|
+
unknown_address: 'Unknown address',
|
|
109
|
+
line1: 'Line 1',
|
|
110
|
+
line1_ph: '1234 Main St.',
|
|
111
|
+
line2_optional: 'Line 2 (optional)',
|
|
112
|
+
line2_ph: 'Apartment, suite, unit, building, floor, etc.',
|
|
113
|
+
city: 'City',
|
|
114
|
+
city_ph: 'Some City',
|
|
115
|
+
state: 'State',
|
|
116
|
+
state_ph: 'CA',
|
|
117
|
+
country: 'Country',
|
|
118
|
+
country_ph: 'United States, Canada, etc.',
|
|
119
|
+
postalCode: 'Zip code', // USA uses zip code
|
|
120
|
+
postalCode_ph: '12345',
|
|
121
|
+
guide: 'Guide',
|
|
122
|
+
workflows: 'Workflows',
|
|
123
|
+
information: 'Information',
|
|
124
|
+
instructions: 'Instructions',
|
|
125
|
+
metadata: 'Metadata',
|
|
126
|
+
summary: 'Summary',
|
|
127
|
+
instructions_summary: 'Instructions summary',
|
|
128
|
+
status: 'Status',
|
|
129
|
+
orders: 'Orders',
|
|
130
|
+
'order_#': 'Order #',
|
|
131
|
+
order_details: 'Order details',
|
|
132
|
+
type: 'Type',
|
|
133
|
+
pin_to_top: 'Pin to top',
|
|
134
|
+
create_new: 'Create new',
|
|
135
|
+
upload: 'Upload',
|
|
136
|
+
uploaded_ct: 'Uploaded %{count}/%{max}',
|
|
137
|
+
create: 'Create',
|
|
138
|
+
invite: 'Invite',
|
|
139
|
+
invited: 'Invited',
|
|
140
|
+
invoice_date: 'Invoice date',
|
|
141
|
+
sales: 'Sales',
|
|
142
|
+
sales_orders: 'Sales & orders',
|
|
143
|
+
actions: 'Actions',
|
|
144
|
+
ai_tasks: 'AI tasks',
|
|
145
|
+
ai_workflows: 'AI workflows',
|
|
146
|
+
add: 'Add',
|
|
147
|
+
remove: 'Remove',
|
|
148
|
+
removed: 'Removed',
|
|
149
|
+
history: 'History',
|
|
150
|
+
edit: 'Edit',
|
|
151
|
+
enter: 'Enter',
|
|
152
|
+
accept: 'Accept',
|
|
153
|
+
decline: 'Decline',
|
|
154
|
+
dismiss: 'Dismiss',
|
|
155
|
+
description: 'Description',
|
|
156
|
+
no_desc: 'No description.',
|
|
157
|
+
no_additional_notes: 'No additional notes.',
|
|
158
|
+
use_default: 'Use default',
|
|
159
|
+
use_personal: 'Use personal',
|
|
160
|
+
learn_more: 'Learn more',
|
|
161
|
+
department: 'Department',
|
|
162
|
+
email: 'E-mail',
|
|
163
|
+
phone: 'Phone',
|
|
164
|
+
phone_number: 'Phone number',
|
|
165
|
+
partners: 'Partners',
|
|
166
|
+
partner: 'Partner',
|
|
167
|
+
contact_person: 'Contact person',
|
|
168
|
+
farms: 'Farms',
|
|
169
|
+
region: 'Region',
|
|
170
|
+
commodities: 'Commodities',
|
|
171
|
+
fsvp: 'FSVP',
|
|
172
|
+
risk: 'Risk',
|
|
173
|
+
operation: 'Operation',
|
|
174
|
+
grower: 'Grower',
|
|
175
|
+
growers: 'Growers',
|
|
176
|
+
domestic_growers: 'Domestic growers',
|
|
177
|
+
foreign_growers: 'Foreign growers',
|
|
178
|
+
vendors: 'Vendors',
|
|
179
|
+
'vendors_#': 'Vendors #',
|
|
180
|
+
vendor: 'Vendor',
|
|
181
|
+
vendor_info: 'Vendor information',
|
|
182
|
+
vendor_name: 'Vendor name',
|
|
183
|
+
markets: 'Markets',
|
|
184
|
+
market: 'Market',
|
|
185
|
+
organization: 'Organization',
|
|
186
|
+
coordinator: 'Co-ordinator',
|
|
187
|
+
contact: 'Contact',
|
|
188
|
+
profile: 'Profile',
|
|
189
|
+
compliance: 'Compliance',
|
|
190
|
+
requirement: 'Requirement',
|
|
191
|
+
person_name: 'Person name',
|
|
192
|
+
primary_contact: 'Primary contact',
|
|
193
|
+
thank_you: 'Thank you',
|
|
194
|
+
click_here: 'Click here',
|
|
195
|
+
success: 'Success',
|
|
196
|
+
success_: 'Success!',
|
|
197
|
+
help: 'Help',
|
|
198
|
+
show_help: 'Show help',
|
|
199
|
+
show_document_guidelines: 'Show document guidelines',
|
|
200
|
+
hide_document_guidelines: 'Hide document guidelines',
|
|
201
|
+
advanced: 'Advanced',
|
|
202
|
+
start: 'Start',
|
|
203
|
+
started: 'Started',
|
|
204
|
+
end: 'End',
|
|
205
|
+
time: 'Time',
|
|
206
|
+
start_time: 'Start time',
|
|
207
|
+
end_time: 'End time',
|
|
208
|
+
time_with_zone: 'Time (%{timeZone})',
|
|
209
|
+
time_zone_: 'Time zone: %{timeZone}',
|
|
210
|
+
not_specified: 'Not specified',
|
|
211
|
+
attendance: 'Attendance',
|
|
212
|
+
attended_: 'Attended?',
|
|
213
|
+
ct_attending: '%{count} / %{total} attending',
|
|
214
|
+
ct_attended: '%{count} / %{total} attended',
|
|
215
|
+
day: 'Day',
|
|
216
|
+
all_day: 'All day',
|
|
217
|
+
date: 'Date',
|
|
218
|
+
daily: 'Daily',
|
|
219
|
+
weekly: 'Weekly',
|
|
220
|
+
monthly: 'Monthly',
|
|
221
|
+
schedule: 'Schedule',
|
|
222
|
+
scheduled: 'Scheduled',
|
|
223
|
+
created_by: 'Created by',
|
|
224
|
+
tasked_by: 'Tasked by',
|
|
225
|
+
updated: 'Updated',
|
|
226
|
+
next_due: 'Next due',
|
|
227
|
+
recurring: 'Recurring',
|
|
228
|
+
start_date: 'Start date',
|
|
229
|
+
end_date: 'End date',
|
|
230
|
+
event: 'Event',
|
|
231
|
+
esc: 'ESC',
|
|
232
|
+
settings: 'Settings',
|
|
233
|
+
note: 'Note',
|
|
234
|
+
notes: 'Notes',
|
|
235
|
+
details: 'Details',
|
|
236
|
+
temperature: 'Temperature',
|
|
237
|
+
water: 'Water',
|
|
238
|
+
quantity: 'Quantity',
|
|
239
|
+
quantity_ph: '7.5',
|
|
240
|
+
cropId: 'Crop',
|
|
241
|
+
logged_edited_at: 'Logged %{logDate}. Updated %{editDate}.',
|
|
242
|
+
logged_at: 'Logged %{logDate}.',
|
|
243
|
+
category: 'Category',
|
|
244
|
+
activity: 'Activity',
|
|
245
|
+
activity_ph: 'Type of activity',
|
|
246
|
+
crop: 'Crop',
|
|
247
|
+
crop_ph: 'Select crop',
|
|
248
|
+
concentration: 'Concentration',
|
|
249
|
+
concentration_ph: '0.5',
|
|
250
|
+
concentration_unit: 'Concentration unit',
|
|
251
|
+
concentration_unit_ph: 'mg/L',
|
|
252
|
+
water_quantity: 'Quantity (water)',
|
|
253
|
+
water_unit: 'Unit (water)',
|
|
254
|
+
water_unit_ph: 'gallons, litres',
|
|
255
|
+
|
|
256
|
+
// Day periods
|
|
257
|
+
greet_MORNING: 'Good morning, %{name}.',
|
|
258
|
+
greet_AFTERNOON: 'Good afternoon, %{name}.',
|
|
259
|
+
greet_EVENING: 'Good evening, %{name}.',
|
|
260
|
+
greet_NIGHT: 'Good evening, %{name}.',
|
|
261
|
+
|
|
262
|
+
// Communication types
|
|
263
|
+
comm_type_EMAIL: 'E-mail',
|
|
264
|
+
comm_type_SMS: 'SMS',
|
|
265
|
+
|
|
266
|
+
// Languages
|
|
267
|
+
lang: {
|
|
268
|
+
en: 'English',
|
|
269
|
+
es: 'Spanish',
|
|
270
|
+
},
|
|
271
|
+
|
|
272
|
+
_are_required: '%{value} is required.||||%{value} are required.',
|
|
273
|
+
category_: 'Category: %{value}',
|
|
274
|
+
task_: 'Task: %{value}',
|
|
275
|
+
activity_: 'Activity: %{value}',
|
|
276
|
+
details_: 'Details: %{value}',
|
|
277
|
+
location_: 'Location: %{value}',
|
|
278
|
+
date_: 'Date: %{value}',
|
|
279
|
+
scheduled_date_: 'Scheduled date: %{value}',
|
|
280
|
+
effective_date_: 'Effective date: %{value}',
|
|
281
|
+
ended_: 'Ended: %{value}',
|
|
282
|
+
start_: 'Start: %{value}',
|
|
283
|
+
end_: 'End: %{value}',
|
|
284
|
+
worker_: 'Worker: %{value}',
|
|
285
|
+
logged_by_: 'Logged by: %{value}',
|
|
286
|
+
tasked_by_: 'Tasked by: %{value}',
|
|
287
|
+
task: 'Task',
|
|
288
|
+
|
|
289
|
+
log: 'Log',
|
|
290
|
+
task_instructions: 'Task instructions',
|
|
291
|
+
total_price: 'Total price',
|
|
292
|
+
receipt_number: 'Receipt number',
|
|
293
|
+
invoice_number: 'Invoice number',
|
|
294
|
+
},
|
|
295
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import Polyglot from 'node-polyglot';
|
|
2
|
+
import type NodePolyglot from '../types.d.ts'
|
|
3
|
+
|
|
4
|
+
import account from './account.ts';
|
|
5
|
+
import ai_agent from './ai_agent.ts';
|
|
6
|
+
import app from './app.ts';
|
|
7
|
+
import auth from './auth.ts';
|
|
8
|
+
import billing from './billing.ts';
|
|
9
|
+
import country from './country.ts';
|
|
10
|
+
import datetime from './datetime.ts';
|
|
11
|
+
import error from './error.ts';
|
|
12
|
+
import form from './form.ts';
|
|
13
|
+
import log from './log.ts';
|
|
14
|
+
import message from './message.ts';
|
|
15
|
+
import org from './org.ts';
|
|
16
|
+
import product from './product.ts';
|
|
17
|
+
|
|
18
|
+
export const i18nTranslations = {
|
|
19
|
+
account,
|
|
20
|
+
ai_agent,
|
|
21
|
+
app,
|
|
22
|
+
auth,
|
|
23
|
+
billing,
|
|
24
|
+
country,
|
|
25
|
+
datetime,
|
|
26
|
+
error,
|
|
27
|
+
form,
|
|
28
|
+
log,
|
|
29
|
+
message,
|
|
30
|
+
org,
|
|
31
|
+
product,
|
|
32
|
+
} as Record<string, any>;
|
|
33
|
+
|
|
34
|
+
const i18n = new Polyglot();
|
|
35
|
+
export default i18n as NodePolyglot;
|