1
2
3
4
5
6
7
8
9
10
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
38
39
40
41
42
43
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
77
78
79
80
| import statusCode from "./en-code"
|
| // placeholder 和 validate
| const FormPlaceHolderAndValidate = {
| placeHolder: {
| // 表单国际化
| input: "place input",
| inputField: "please input {field}"
| },
| validate: {
| // 校验国际化
| notAllowedRepeat: "{field} can not repeat"
| }
| }
|
| // Nav Menu Button
| const NavMenuAndButton = {
| nav: {
| KHGL: "Account", // 客户管理
| XSGL: "Sales", // 销售管理
| FWGL: "Service" // 服务管理
| },
| menu: {
| // 菜单国际化
| "KHGL-XSXS": "Leads",
| "KHGL-KHGL": "Accounts",
| "KHGL-LXR": "Contacts",
| "KHGL-YJJL": "Contact Records"
| },
| button: {
| // 按钮
| add: "Add",
| edit: "Edit"
| }
| }
|
| // http状态码
| const HttpStatusCode = {
| businessStatusCode: {
| ...statusCode
| },
| statusCode: {
| newErr: "there's something wrong with the network", // 网络出问题了
| 404: "the request cannot be found, please cantact the administrator", // 请求找不到,请联系管理员
| 500: "server error", // 服务器错误
| 502: "your network is out of date",
| 400: "the request cannot be found, please cantact the administrator",
| 420: "request method failed"
| }
| }
|
| // 其他
| const Others = {
| message: {
| // 本地提示信息
| add: "{field} created successfully"
| },
| title: {
| cancel: "cancel"
| },
| confirm: {
| deleteRow: "are you sure to delete {rowName}?"
| }
| }
|
| // 业务字段
| const Bussiness = {
| // 登录页面
| loginAccountNumber: "account number",
| loginPassword: "password",
| loginBtn: "log on"
| }
|
| export default {
| ...FormPlaceHolderAndValidate,
| ...NavMenuAndButton,
| ...HttpStatusCode,
| ...Others,
| ...Bussiness
| }
|
|