@etsoo/appscript 1.4.1 → 1.4.3

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.
@@ -221,7 +221,7 @@ export declare abstract class CoreApp<U extends IUser, S extends IAppSettings, N
221
221
  * @param culture New culture definition
222
222
  * @param onReady On ready callback
223
223
  */
224
- changeCulture(culture: DataTypes.CultureDefinition, onReady?: () => void): void;
224
+ changeCulture(culture: DataTypes.CultureDefinition, onReady?: (resources: DataTypes.StringRecord) => void): void;
225
225
  /**
226
226
  * Update current region label
227
227
  */
@@ -545,13 +545,13 @@ class CoreApp {
545
545
  culture.resources = result;
546
546
  this.updateRegionLabel();
547
547
  if (onReady)
548
- onReady();
548
+ onReady(result);
549
549
  });
550
550
  }
551
551
  else {
552
552
  this.updateRegionLabel();
553
553
  if (onReady)
554
- onReady();
554
+ onReady(culture.resources);
555
555
  }
556
556
  }
557
557
  /**
@@ -161,7 +161,7 @@ export interface IApp {
161
161
  * @param culture New culture definition
162
162
  * @param onReady On ready callback
163
163
  */
164
- changeCulture(culture: DataTypes.CultureDefinition, onReady?: () => void): void;
164
+ changeCulture(culture: DataTypes.CultureDefinition, onReady?: (resources: DataTypes.StringRecord) => void): void;
165
165
  /**
166
166
  * Check the action result is about device invalid
167
167
  * @param result Action result
@@ -1,7 +1,7 @@
1
- import { i18nResource } from './i18nResources';
1
+ import { DataTypes } from '@etsoo/shared';
2
2
  /**
3
3
  * Get en neutral culture
4
4
  * @param localResources Local resources
5
5
  * @returns Full culture
6
6
  */
7
- export declare const en: (resources: i18nResource) => import("@etsoo/shared").DataTypes.CultureDefinition<import("@etsoo/shared").DataTypes.StringRecord>;
7
+ export declare const en: (resources: object | (() => Promise<object>)) => DataTypes.CultureDefinition<DataTypes.StringRecord>;
@@ -1,12 +1,47 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
26
  exports.en = void 0;
4
27
  const shared_1 = require("@etsoo/shared");
5
- const i18nResources_1 = require("./i18nResources");
6
28
  /**
7
29
  * Get en neutral culture
8
30
  * @param localResources Local resources
9
31
  * @returns Full culture
10
32
  */
11
- const en = (resources) => shared_1.DomUtils.en((0, i18nResources_1.i18nResourceCreator)('./en.json', resources));
33
+ const en = (resources) => shared_1.DomUtils.en(async () => {
34
+ const [r1, r2] = await Promise.all([
35
+ Promise.resolve().then(() => __importStar(require('./en.json'))),
36
+ new Promise((resolve) => {
37
+ if (typeof resources === 'object') {
38
+ resolve(resources);
39
+ }
40
+ else {
41
+ resources().then((result) => resolve(result));
42
+ }
43
+ })
44
+ ]);
45
+ return { ...r1, ...r2 };
46
+ });
12
47
  exports.en = en;
@@ -0,0 +1,227 @@
1
+ {
2
+ "accountant": "Accountant",
3
+ "actions": "Actions",
4
+ "add": "Add",
5
+ "assignedId": "Assigned ID",
6
+ "audits": "Audits",
7
+ "author": "Author",
8
+ "authorizer": "Authorizer",
9
+ "applicant": "Applicant",
10
+ "approve": "Approve it",
11
+ "back": "Back",
12
+ "cancel": "Cancel",
13
+ "changePassword": "Change password",
14
+ "clickForDetails": "Click for details",
15
+ "city": "City",
16
+ "clear": "Clear",
17
+ "close": "Close",
18
+ "confirm": "Confirm",
19
+ "confirmAction": "Are you sure you want to {0}?",
20
+ "completeTip": "{0} completed",
21
+ "continentAF": "Africa",
22
+ "continentAN": "Antarctica",
23
+ "continentAS": "Asia",
24
+ "continentEU": "Europe",
25
+ "continentNA": "North America",
26
+ "continentOC": "Oceania",
27
+ "continentSA": "South America",
28
+ "copy": "Copy",
29
+ "creation": "Creation",
30
+ "currentPassword": "Current password",
31
+ "currentPasswordRequired": "Please enter your current password",
32
+ "currency": "Currency",
33
+ "currencyAUD": "Australia Dollar",
34
+ "currencyCAD": "Canada Dollar",
35
+ "currencyCNY": "Renminbi(RMB)",
36
+ "currencyEUR": "Euro",
37
+ "currencyGBP": "British Pound",
38
+ "currencyHKD": "Hong Kong Dollar",
39
+ "currencyJPY": "Japan Yen",
40
+ "currencyNZD": "New Zealand Dollar",
41
+ "currencySGD": "Singapore Dollar",
42
+ "currencyUSD": "U.S. Dollar",
43
+ "data": "Data",
44
+ "dataComparison": "Data comparison",
45
+ "dataPrivacy": "Data privacy",
46
+ "dataPrivacyAdmin": "Admins",
47
+ "dataPrivacyCustomer": "Customers",
48
+ "dataPrivacyDept": "Dept users",
49
+ "dataPrivacyInternal": "All users",
50
+ "dataPrivacyPrivate": "Creator only",
51
+ "dataPrivacyPublic": "Full public",
52
+ "default": "Default",
53
+ "delete": "Delete",
54
+ "deleteConfirm": "Are you sure you want to permanently delete this {0}?",
55
+ "description": "Description",
56
+ "district": "District/County",
57
+ "done": "Done",
58
+ "download": "Download",
59
+ "dragIndicator": "Drag indicator",
60
+ "edit": "Edit",
61
+ "email": "Email",
62
+ "emailAddresses": "Email addresses",
63
+ "enabled": "Enabled",
64
+ "entityStatus": "Status",
65
+ "environmentChanged": "The operating environment has changed, please log in again",
66
+ "error": "Error",
67
+ "etsoo": "ETSOO",
68
+ "expiry": "Expiry",
69
+ "exportToPdf": "Export to PDF",
70
+ "failed": "Operation failed",
71
+ "field": "Field",
72
+ "fileDownloaded": "The file has been downloaded",
73
+ "help": "Help",
74
+ "id": "Number#",
75
+ "info": "Info",
76
+ "item": "Item",
77
+ "itemExists": "'{0}' already exists",
78
+ "keywords": "Keywords",
79
+ "loading": "Loading...",
80
+ "login": "Login",
81
+ "me": "ME",
82
+ "menuHome": "Home",
83
+ "message": "Message",
84
+ "mobile": "Mobile number",
85
+ "mobilePhones": "Mobile numbers",
86
+ "monthLabel": "{0} month(s)",
87
+ "months": [
88
+ "Jan.",
89
+ "Feb.",
90
+ "Mar.",
91
+ "Apr.",
92
+ "May.",
93
+ "Jun.",
94
+ "Jul.",
95
+ "Aug.",
96
+ "Sep.",
97
+ "Oct.",
98
+ "Nov.",
99
+ "Dec."
100
+ ],
101
+ "more": "More",
102
+ "moreTag": "{0} more",
103
+ "name": "Name",
104
+ "nameB": "Name",
105
+ "newPassword": "New password",
106
+ "newPasswordRequired": "Please enter your new password",
107
+ "newPasswordTip": "New password should be different",
108
+ "newValue": "New value",
109
+ "nextStep": "Next",
110
+ "no": "No",
111
+ "noChanges": "No changes yet",
112
+ "noData": "No valid data",
113
+ "noMatches": "No matches",
114
+ "none": "None yet",
115
+ "noOptions": "No options",
116
+ "noRows": "No data",
117
+ "ok": "OK",
118
+ "oldValue": "Old value",
119
+ "open": "Open",
120
+ "openMenu": "Open menu",
121
+ "operationSucceeded": "Operation succeeded",
122
+ "others": "Others",
123
+ "pageNotFound": "Page Not Found",
124
+ "passwordChangeSuccess": "Password changed successfully, please sign in again",
125
+ "passwordRepeatError": "The two passwords entered are inconsistent",
126
+ "passwordTip": "The password cannot be less than 6 characters and contains at least one letter and number",
127
+ "pdf": "PDF",
128
+ "pinYin": "Pinyin Initials",
129
+ "previousStep": "Previous",
130
+ "print": "Print",
131
+ "prompt": "Input",
132
+ "pullToRefresh": "Pull down to refresh",
133
+ "quarters": ["Q1", "Q2", "Q3", "Q4"],
134
+ "reactivateTip": "The operation timed out, please click the OK button to reactivate",
135
+ "record": "Record",
136
+ "refresh": "Refresh",
137
+ "refreshing": "Refreshing",
138
+ "releaseToRefresh": "Release to refresh",
139
+ "region": "Country or region",
140
+ "regionAU": "Australia",
141
+ "regionCA": "Canada",
142
+ "regionCN": "Mainland China",
143
+ "regionDE": "Germany",
144
+ "regionFR": "France",
145
+ "regionGB": "United Kingdom",
146
+ "regionHK": "Hong Kong, China",
147
+ "regionIE": "Ireland",
148
+ "regionJP": "Japan",
149
+ "regionNZ": "New Zealand",
150
+ "regionSG": "Singapore",
151
+ "regionUS": "United States",
152
+ "reloginTip": "Please enter your password, resubmit the data after successful login",
153
+ "remove": "Remove",
154
+ "renew": "Renew",
155
+ "repeatPassword": "Repeat the password",
156
+ "repeatPasswordRequired": "Please repeat the new password",
157
+ "reports": "Reports",
158
+ "requiredField": "{0} is a required field",
159
+ "resending": "Resending",
160
+ "reset": "Reset",
161
+ "rotateLeft": "Rotate left 90°",
162
+ "rotateRight": "Rotate right 90°",
163
+ "save": "Save",
164
+ "scrollToTop": "Scroll to top",
165
+ "search": "Search",
166
+ "send": "Send",
167
+ "setAsDefault": "Set as default",
168
+ "settings": "Settings",
169
+ "showIt": "Show it",
170
+ "signout": "Sign out",
171
+ "smartERP": "SmartERP",
172
+ "sortTip": "Drag and drop items to sort",
173
+ "state": "Province/State",
174
+ "status": "Status",
175
+ "statusApproved": "Approved",
176
+ "statusArchived": "Archived",
177
+ "statusAudited": "Audited",
178
+ "statusCompleted": "Completed",
179
+ "statusDeleted": "Deleted",
180
+ "statusDoing": "Doing",
181
+ "statusFlaged": "Flaged",
182
+ "statusNormal": "Normla",
183
+ "statusInactivated": "Inactivated",
184
+ "submit": "Submit",
185
+ "success": "Success",
186
+ "taxId": "Tax ID number",
187
+ "taxIdHelp": "Used for real-name authentication and invoicing",
188
+ "taxCABN": "Business number",
189
+ "taxCNUSCC": "Unified social credit code",
190
+ "taxHKBRN": "Business registration number",
191
+ "taxNZIRD": "IRD",
192
+ "taxUSEIN": "Employer identification number",
193
+ "timeDifferenceInvalid": "The time difference between the device and the server is {0}, which exceeds the limit of {1} seconds. Please adjust the device time. If it is abnormal, please inform the administrator",
194
+ "title": "Title",
195
+ "tokenExpiry": "Your session is about to expire. Click the Cancel button to continue",
196
+ "type": "Type",
197
+ "yes": "Yes",
198
+ "uid": "Universal ID",
199
+ "unknownError": "Unknown Error",
200
+ "unitJoin": "per {0}",
201
+ "unitPC": "PC",
202
+ "unitSET": "SET",
203
+ "unitHOUR": "Hour",
204
+ "unitDAY": "Day",
205
+ "unitYEAR": "Year",
206
+ "unitWEEK": "Week",
207
+ "unitFORTNIGHT": "Fortnight",
208
+ "unitFOURWEEK": "4-week",
209
+ "unitMONEY": "Money",
210
+ "unitMONTH": "Month",
211
+ "unitBIMONTH": "2-month",
212
+ "unitQUATER": "Quater",
213
+ "unitHALFYEAR": "6-month",
214
+ "unitGRAM": "g",
215
+ "unitJIN": "½Kg",
216
+ "unitKILOGRAM": "Kg",
217
+ "unitTIME": "Time",
218
+ "unitTON": "Ton",
219
+ "update": "Update",
220
+ "updateReady": "Update ready",
221
+ "updateTip": "Restart the application to use the latest features",
222
+ "user": "User",
223
+ "users": "Users",
224
+ "view": "View",
225
+ "warning": "Warning",
226
+ "welcome": "{0}, welcome!"
227
+ }
@@ -0,0 +1,227 @@
1
+ {
2
+ "accountant": "会计",
3
+ "actions": "操作",
4
+ "add": "添加",
5
+ "assignedId": "分配的编号",
6
+ "audits": "操作历史",
7
+ "author": "作者",
8
+ "authorizer": "授权人",
9
+ "applicant": "申请人",
10
+ "approve": "批准",
11
+ "back": "后退",
12
+ "cancel": "取消",
13
+ "changePassword": "修改密码",
14
+ "clickForDetails": "点击查看详情",
15
+ "city": "城市",
16
+ "clear": "清除",
17
+ "close": "关闭",
18
+ "confirm": "确认",
19
+ "confirmAction": "确定要{0}吗?",
20
+ "completeTip": "已完成 {0}",
21
+ "continentAF": "非洲",
22
+ "continentAN": "南极洲",
23
+ "continentAS": "亚洲",
24
+ "continentEU": "欧洲",
25
+ "continentNA": "北美洲",
26
+ "continentOC": "大洋洲",
27
+ "continentSA": "南美洲",
28
+ "copy": "复制",
29
+ "creation": "登记时间",
30
+ "currentPassword": "当前密码",
31
+ "currentPasswordRequired": "请输入现在使用的密码",
32
+ "currency": "币种",
33
+ "currencyAUD": "澳元",
34
+ "currencyCAD": "加元",
35
+ "currencyCNY": "人民币",
36
+ "currencyEUR": "欧元",
37
+ "currencyGBP": "英镑",
38
+ "currencyHKD": "港币",
39
+ "currencyJPY": "日元",
40
+ "currencyNZD": "纽币",
41
+ "currencySGD": "新币",
42
+ "currencyUSD": "美元",
43
+ "data": "数据",
44
+ "dataComparison": "数据对比",
45
+ "dataPrivacy": "数据隐私",
46
+ "dataPrivacyAdmin": "管理员可见",
47
+ "dataPrivacyCustomer": "客户可见",
48
+ "dataPrivacyDept": "部门可见",
49
+ "dataPrivacyInternal": "所有用户",
50
+ "dataPrivacyPrivate": "创建者私有",
51
+ "dataPrivacyPublic": "完全公开",
52
+ "default": "默认",
53
+ "delete": "删除",
54
+ "deleteConfirm": "确定要永久删除此{0}吗?",
55
+ "description": "描述",
56
+ "district": "区/县",
57
+ "done": "完成",
58
+ "download": "下载",
59
+ "dragIndicator": "拖动指示",
60
+ "edit": "修改",
61
+ "email": "电子邮箱",
62
+ "emailAddresses": "电子邮箱",
63
+ "enabled": "已启用",
64
+ "entityStatus": "状态",
65
+ "environmentChanged": "运行环境已改变,请重新登录",
66
+ "error": "错误",
67
+ "etsoo": "亿速思维",
68
+ "expiry": "到期时间",
69
+ "exportToPdf": "导出为PDF",
70
+ "failed": "操作失败",
71
+ "field": "字段",
72
+ "fileDownloaded": "文件已下载",
73
+ "help": "帮助",
74
+ "id": "编号",
75
+ "info": "信息",
76
+ "item": "项目",
77
+ "itemExists": "'{0}'已经存在",
78
+ "keywords": "关键词",
79
+ "loading": "正在加载...",
80
+ "login": "登录",
81
+ "me": "我",
82
+ "menuHome": "首页",
83
+ "message": "留言",
84
+ "mobile": "手机号码",
85
+ "mobilePhones": "手机号码",
86
+ "monthLabel": "{0}个月",
87
+ "months": [
88
+ "1月",
89
+ "2月",
90
+ "3月",
91
+ "4月",
92
+ "5月",
93
+ "6月",
94
+ "7月",
95
+ "8月",
96
+ "9月",
97
+ "10月",
98
+ "11月",
99
+ "12月"
100
+ ],
101
+ "more": "更多",
102
+ "moreTag": "({0}+)",
103
+ "name": "姓名",
104
+ "nameB": "名称",
105
+ "newPassword": "新密码",
106
+ "newPasswordRequired": "请输入新密码",
107
+ "newPasswordTip": "请设置一个和现在的密码不一样的新密码",
108
+ "newValue": "新值",
109
+ "nextStep": "下一步",
110
+ "no": "否",
111
+ "noChanges": "还没有任何修改",
112
+ "noData": "没有有效数据",
113
+ "noMatches": "没有匹配项",
114
+ "none": "暂时没有",
115
+ "noOptions": "没有选项",
116
+ "noRows": "没有数据",
117
+ "ok": "确定",
118
+ "oldValue": "旧值",
119
+ "open": "打开",
120
+ "openMenu": "打开菜单",
121
+ "operationSucceeded": "操作成功",
122
+ "others": "其他",
123
+ "pageNotFound": "找不到页面",
124
+ "passwordChangeSuccess": "密码修改成功,请重新登录",
125
+ "passwordRepeatError": "两次输入的密码不一致",
126
+ "passwordTip": "密码不能少于6个字符,且至少包含一个字母和数字",
127
+ "pinYin": "拼音首字母",
128
+ "pdf": "PDF",
129
+ "previousStep": "上一步",
130
+ "print": "打印",
131
+ "prompt": "输入",
132
+ "pullToRefresh": "下拉刷新",
133
+ "quarters": ["一季度", "二季度", "三季度", "四季度"],
134
+ "reactivateTip": "等待超时,请点击确定按钮重新激活",
135
+ "record": "记录",
136
+ "refresh": "刷新",
137
+ "refreshing": "正在刷新",
138
+ "region": "国家或地区",
139
+ "regionAU": "澳大利亚",
140
+ "regionCA": "加拿大",
141
+ "regionCN": "中国大陆",
142
+ "regionDE": "德国",
143
+ "regionFR": "法国",
144
+ "regionGB": "英国",
145
+ "regionHK": "中国香港",
146
+ "regionIE": "爱尔兰",
147
+ "regionJP": "日本",
148
+ "regionNZ": "新西兰",
149
+ "regionSG": "新加坡",
150
+ "regionUS": "美国",
151
+ "releaseToRefresh": "释放刷新",
152
+ "reloginTip": "请输入您的登录密码,登录成功后请重新提交数据",
153
+ "remove": "移除",
154
+ "renew": "续费",
155
+ "repeatPassword": "重复密码",
156
+ "repeatPasswordRequired": "请重复输入新密码",
157
+ "reports": "统计报表",
158
+ "requiredField": "'{0}'不能为空",
159
+ "resending": "重新发送",
160
+ "reset": "重置",
161
+ "rotateLeft": "左旋转90°",
162
+ "rotateRight": "右旋转90°",
163
+ "save": "保存",
164
+ "scrollToTop": "回到顶部",
165
+ "search": "搜索",
166
+ "send": "发送",
167
+ "setAsDefault": "设为默认",
168
+ "settings": "系统设置",
169
+ "showIt": "显示",
170
+ "signout": "退出",
171
+ "smartERP": "司友®云ERP",
172
+ "sortTip": "拖拽项目进行排序",
173
+ "state": "省/州",
174
+ "status": "状态",
175
+ "statusApproved": "已批准",
176
+ "statusArchived": "已归档",
177
+ "statusAudited": "已审核",
178
+ "statusCompleted": "已完成",
179
+ "statusDeleted": "已删除",
180
+ "statusDoing": "处理中",
181
+ "statusFlaged": "已标记",
182
+ "statusNormal": "正常",
183
+ "statusInactivated": "已停用",
184
+ "submit": "提交",
185
+ "success": "成功",
186
+ "taxId": "税号",
187
+ "taxIdHelp": "用于实名认证和开具发票",
188
+ "taxCABN": "营业编号(BN)",
189
+ "taxCNUSCC": "统一信用代码",
190
+ "taxHKBRN": "商业登记号码(BRN)",
191
+ "taxNZIRD": "IRD",
192
+ "taxUSEIN": "雇主识别号码(EIN)",
193
+ "timeDifferenceInvalid": "设备时间和服务器时间差为{0},超过{1}秒的限制,请调整设备时间,如果异常请告知管理员",
194
+ "title": "标题",
195
+ "tokenExpiry": "您的会话即将过期。点击 取消 按钮继续使用",
196
+ "type": "类型",
197
+ "yes": "是",
198
+ "uid": "通用标识",
199
+ "unknownError": "未知错误",
200
+ "unitJoin": "每{0}",
201
+ "unitPC": "件",
202
+ "unitSET": "套",
203
+ "unitHOUR": "小时",
204
+ "unitDAY": "天",
205
+ "unitYEAR": "年",
206
+ "unitWEEK": "周",
207
+ "unitFORTNIGHT": "两周",
208
+ "unitFOURWEEK": "四周",
209
+ "unitMONEY": "储值",
210
+ "unitMONTH": "月",
211
+ "unitBIMONTH": "两月",
212
+ "unitQUATER": "季度",
213
+ "unitHALFYEAR": "半年",
214
+ "unitGRAM": "克",
215
+ "unitJIN": "斤",
216
+ "unitKILOGRAM": "公斤",
217
+ "unitTIME": "次",
218
+ "unitTON": "吨",
219
+ "update": "更新",
220
+ "updateReady": "更新就绪",
221
+ "updateTip": "重新启动应用程序以使用最新功能",
222
+ "user": "用户",
223
+ "users": "用户",
224
+ "view": "查看",
225
+ "warning": "警告",
226
+ "welcome": "{0}, 欢迎光临!"
227
+ }