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 }