import antdLocale from 'ant-design-vue/es/locale/zh_CN'; import localeBase from './zh_CN_base'; import customLocale from './custom_zh_CN'; import { deepObjectMerge } from '@/core'; const locale = { ...localeBase, antdLocale, // 通用组件 common: { appsearch: { searchcontent: '搜索内容' }, generic: { codelistwarn: '代码表值类型和属性类型不匹配,自动强制转换异常,请修正代码表值类型和属性类型匹配', codenotexist: '代码表不存在', requestexception: '请求异常!', noservice: '服务不存在', miss: '参数不存在', success: '成功', error: '错误', warn: '警告', loadfail: '加载数据失败', codelistcast: '代码表值类型和属性类型不匹配,自动强制转换', codelistnoconfig: '未配置代码表', }, timeline: { index: '序号', node: '节点', author: '办理人员', type: '操作', lasttime: '完成时间', opinion: '审批意见', inhand: '待办理:', }, login: { userplaceholder: '请输入用户名', pwdplaceholder: '请输入密码', login: '登录', reset: '重置', other: '其他登录方式', dingding: '钉钉登录', wxwork: '企业微信登录', loginmsg: '请输入用户名与密码', notsupportdingding: '暂不支持钉钉登录', notsupportqywx: '暂不支持企业微信登录', }, fileupload: { uploadtext: '拖拽文件,或点击上传', uploaderror: '上传失败', filetypeerrortitle: '文件类型错误', filetypeerrorinfo: '请选择图片类型的文件,如JPEG,GIF,PNG,BMP', notpdffiletype: '文件类型错误,请选择pdf文件类型', downloaderror: '下载失败!', caption: '上传', fileoutofsize :"超出最大文件大小,最大值为:", filetypeerrorpleaseselect:"文件类型错误,请选择:", draguploaderror: '不允许拖拽上传', }, datapicker: { error: '错误', miss: '缺少参数', requestexception: '请求异常!', newandedit: '创建并编辑...', systemexception: '系统异常!', valueitemexception: '值项异常!', formdataexception: '表单数据异常!', nosupport: '重定向视图暂未支持', }, datapickerview: { placeholder: '请选择...', }, datepicker: { placeholder: '请选择时间...', }, dropdownlist: { placeholder: '请选择...', valueerror: '下拉列表,值转换失败', }, user: { name: '系统管理员', lock: '应用锁屏', logout: '退出登录', theme: '主题配置', }, theme: { title: '主题配置', }, messagepopover: { loadmore: '加载更多', error: '加载数据错误', mytaskslabel: '待办', mymsgslabel: '消息', mynoticelabel: '通知', notificationlist: '通知列表', messagelist: '消息列表', }, tabpageexp: { more: '更多', closeall: '关闭全部', closeother: '关闭其他', }, groupselect: { groupselect: '分组选择', confirmbuttontext: '确定', cancelbuttontext: '取消', }, aftertime: { minutesago: '分钟前', hoursago: '小时前', dayago: '天前', monthsago: '月前', yearsago: '年前', }, todolist: { caption: '标题', emptytext: '未找到相关数据', createtime: '创建时间', flow: '流程', state: '状态', error: '加载数据错误', skiperror: '参数不足,跳转失败!', }, exportexcel: { current: '导出当前页', all: '导出全部', }, input: { maxlength: '最大内容长度为', }, quicksearch: { placeholder: '请输入搜索内容', }, processlog: { secondarydevtips: '二次开发提示', }, searchform: { shrink: '收起', more: '更多', reset: '重置', search: '搜索', }, mappicker: { title: '请选择地址', submit: '确认', address: "四川省成都市成华区猛追湾街道四川电视塔天府熊猫塔", city: "成都", reset:'重置', searchaddresss:'地址', searchtel:'电话', }, customdropdownlist:{ loadfail:'数据加载失败', nourl:'无数据加载路径' }, sheet: { notxlsxfiletype: '文件类型错误,请选择xlsx类型文件!', importjson: '导入文件', exportjson: '导出Json' } }, // 预制功能视图 function: { generic: { promptInformation: '是否退出系统, 是否继续?', prompt: '提示', loginerror: '登录名或密码错误!', }, lockscren: { label: '设置锁屏密码', message: '锁屏密码不能为空', placeholder: '请输入锁屏密码', placeholder1: '请输入登录密码', message1: '解锁密码错误,请重新输入', confirmbuttontext: '确定', cancelbuttontext: '取消', lock: '应用锁屏', }, '404': { errortext1: '抱歉,您访问的页面不存在!', errortext2: '您要找的页面不存在,请返回', indexpage: '首页', continue: '继续浏览', }, "401": { errortext1: '抱歉,您访问的页面暂无权限!', errortext2: '当前页面暂无权限,请返回', previouspage: '上一页', continue: '继续浏览', }, '500': { errortext1: '抱歉,服务器出错了!', errortext2: '服务器出错了,请返回 ', indexpage: '首页', continue: '继续浏览', }, dataimport: { selectfile: '单击此区域进行上传', uploadserver: '上传数据', datatemplate: '导入数据模板', datatemplatemessage: '下载导入模版,并按要求填写:', read: '读取成功', completed: '导入完成', confirm: '确认', cancel: '取消', nowupload: '当前已经传输', toolarge: '如文件过大,可关闭当前视图到系统消息中心查看进度。', notservice: '未配置实体服务', }, homepage: { welcome: '欢迎使用', promptmessage: '请点击菜单进入各功能页面', }, exportexcel: { valueruleerror: '指定导出结束页必须大于等于开始页!' } }, // 布局组件 layoutElement: { login: { loginfailed: '登录失败', authfailed: '验证失败', phoneplaceholder: '请输入手机号', phonefailed: '手机号不正确', codeplaceholder: '请输入验证码', getcode: '获取验证码', getcodeafter: '后获取验证码', entervercode: '请输入验证码', phoneerror: '电话号码格式错误', }, text: { markdownnotsupport: "MARKDOWN 暂未支持" } }, // 应用 app: { warn: { nofind: '未找到相关数据', }, error: { unknownerror: '发生未知错误!', implementlogicerror: '当前环境无法执行建立数据逻辑[执行行为异常]', deletelogicerror: '当前环境无法执行删除数据逻辑[执行行为异常]', savelogicerror: '当前环境无法执行保存数据逻辑[执行行为异常]', scripterror: '计算脚本代码失败:', }, common: { confirm: '确认', cancel: '取消', nofindredirected: '未查找到重定向视图', noconfigmainview: '未配置主数据视图', noeditview: '编辑视图不存在', noconfignewview: '未配置新建数据视图', nonewview: '新建视图不存在', newlybuild: '新建', closehinttitle: '关闭提示', closehintcontent: '数据已修改,确定要关闭吗?', selectversioning: '选择流程版本' }, notificationtitle: { error: '错误', success: '成功', warn: '警告', }, util: { errorvalue: '内容必须符合值规则', errorlength: '内容长度必须符合范围规则', errorempty: '值为空', errorregular: '值必须符合正则规则', errorscriptcode: '值必须符合脚本规则', errorvaluerange: '值必须符合值范围规则', maxvalue: '内容最大值必须为', minvalue: '内容最小值必须为', maxlength: '内容最大长度必须为', minlength: '内容最小长度必须为', currentlength: '当前长度为', valueprecision: '内容精度必须为', }, helper: { noview: '未找到相关视图', notopenview: '应用功能无打开视图', openhtmlerror: '模态打开html视图失败!', } }, // 视图 view: {}, // 部件 widget: { common: { nofindview: '未找到相关视图', warn: '警告', error: '错误', success: '成功', confirmtodelete: '确认要删除', delnotberecoverable: '删除操作将不可恢复', }, menu: { noconfigmenu: '菜单未配置应用功能', }, md: { notconfig: { fetchaction: 'fetchAction参数未配置', removeaction: 'removeAction参数未配置', createaction: 'createAction参数未配置', updateaction: 'updateAction参数未配置', loaddraftaction: 'loaddraftAction参数未配置', ctrlnotconfig: "未配置多数据部件", }, other: '其他', }, editform: { notconfig: { loadaction: 'loadAction参数未配置', loaddraftaction: 'loadDraftAction参数未配置', updateaction: 'updateAction参数未配置', createaction: 'createAction参数未配置', removeaction: 'removeAction参数未配置', }, workflow: { submitsuccess: '提交成功', submitfailure: '提交失败', startsuccess: '启动成功', startfailure: '启动失败', }, savesuccess: '保存成功', savefailure: '保存失败', removesuccess: '删除成功', removefailure: '删除失败', formvalidate: '表单校验失败', formdruipart: '请先保存主数据', hiddenfields: '隐藏字段', showfilelds: '显示字段', scriptcodecheckerror: '脚本代码校验错误!', mandatory: '必须填写', valueruleabnormal: '值规则异常', }, chart: { customparamerror: '自定义参数格式不正确', nogroupfield: '没有分组属性', undefined: '未定义', quarter: '季度', year: '年', noindicator: '雷达图indicator不存在,无法转换数据集!', }, calendar: { today: '今天', month: '月', week: '周', day: '天', list: '列', allday: '全天', }, wizardpanel: { finish: '完成', prev: '上一步', next: '下一步', }, multieditviewpanel: { add: '增加', }, grid: { show: '显示', piece: '条数据', total: '共', page: '条 / 页', mandatory: '必须填写', totalvalue: '合计', averagevalue: '平均值', maxvalue: '最大值', minvalue: '最小值', notconfigaggregation: '未配置聚合实体或聚合行为', editupdatefail: '表格编辑项更新失败', ruleverifyerror: '值规则校验错误', notconfignewaction: '未配置新建行为', notconfigupdateaction: '未配置更新行为', notconfigdelaction: '未配置删除行为', successmsg: '保存成功', failmsg: '保存失败', check: '选中', deletefail: '删除数据失败', deletesuccess: '删除数据成功', pleaseconfigdataimport: '请配置数据导入项', dataimport: '导入数据', gridvaluerulevarifyerror: '表格值规则校验错误', }, dataview: { other: '其他', nodeleteaction: '未配置删除行为', piece: '条数据', total: '共', check: '选中', deletefail: '删除数据失败', deletesuccess: '删除数据成功', loadmore: '加载更多', nodata: '暂无数据' }, kanban: { notconfig: { notconfigsaveaction: '未配置保存行为', notconfigdeleteaction: '未配置删除行为', }, nodata: '暂无数据', piece: '条数据', total: '共', check: '选中', deletefail: '删除数据失败', deletesuccess: '删除数据成功', }, list: { other: '其他', notconfig: { notconfigsaveaction: '未配置保存行为', notconfigdeleteaction: '未配置删除行为', }, piece: '条数据', total: '共', check: '选中', deletefail: '删除数据失败', deletesuccess: '删除数据成功', loadmore: '加载更多', nodata: '暂无数据' }, multiedit: { draftnew: '草稿-新建', }, panel: { notconfigfetch: "未配置加载行为", } }, }; if (customLocale) { deepObjectMerge(locale, customLocale); } export default locale;