import dadimension_zh_CN from '@locale/lanres/entities/dadimension/dadimension_zh_CN';
import dstsystem_zh_CN from '@locale/lanres/entities/dst-system/dst-system_zh_CN';
import dstapp_zh_CN from '@locale/lanres/entities/dst-app/dst-app_zh_CN';
import dareport_zh_CN from '@locale/lanres/entities/dareport/dareport_zh_CN';
import metadataset_zh_CN from '@locale/lanres/entities/meta-data-set/meta-data-set_zh_CN';
import ruleitem_zh_CN from '@locale/lanres/entities/rule-item/rule-item_zh_CN';
import dachart_zh_CN from '@locale/lanres/entities/dachart/dachart_zh_CN';
import dabuild_zh_CN from '@locale/lanres/entities/dabuild/dabuild_zh_CN';
import dstdatasource_zh_CN from '@locale/lanres/entities/dst-data-source/dst-data-source_zh_CN';
import metafield_zh_CN from '@locale/lanres/entities/meta-field/meta-field_zh_CN';
import execlog_zh_CN from '@locale/lanres/entities/exec-log/exec-log_zh_CN';
import dictcatalog_zh_CN from '@locale/lanres/entities/dict-catalog/dict-catalog_zh_CN';
import execresult_zh_CN from '@locale/lanres/entities/exec-result/exec-result_zh_CN';
import metarelationship_zh_CN from '@locale/lanres/entities/meta-relationship/meta-relationship_zh_CN';
import dametric_zh_CN from '@locale/lanres/entities/dametric/dametric_zh_CN';
import tablesync_zh_CN from '@locale/lanres/entities/table-sync/table-sync_zh_CN';
import ruleengine_zh_CN from '@locale/lanres/entities/rule-engine/rule-engine_zh_CN';
import metaentity_zh_CN from '@locale/lanres/entities/meta-entity/meta-entity_zh_CN';
import dictoption_zh_CN from '@locale/lanres/entities/dict-option/dict-option_zh_CN';
import metamodule_zh_CN from '@locale/lanres/entities/meta-module/meta-module_zh_CN';
import metamodel_zh_CN from '@locale/lanres/entities/meta-model/meta-model_zh_CN';
import components_zh_CN from '@locale/lanres/components/components_zh_CN';
import codelist_zh_CN from '@locale/lanres/codelist/codelist_zh_CN';
import userCustom_zh_CN from '@locale/lanres/userCustom/userCustom_zh_CN';
import commonLogic from '@/locale/logic/common/common-logic';

function getAppLocale(){
    const data:any = {
        app: {
            commonWords:{
                error: "失败",
                success: "成功",
                ok: "确认",
                cancel: "取消",
                save: "保存",
                codeNotExist: "代码表不存在",
                reqException: "请求异常",
                sysException: "系统异常",
                warning: "警告",
                wrong: "错误",
                rulesException: "值规则校验异常",
                saveSuccess: "保存成功",
                saveFailed: "保存失败",
                deleteSuccess: "删除成功",
                deleteError: "删除失败",
                delDataFail: "删除数据失败",
                noData: "暂无数据",
                startsuccess:"启动成功",
                loadmore:"加载更多",
                nomore:"没有更多了",
                other:"其他",
                valueNotEmpty:"值不能为空",
                createFailed:"创建失败",
                isExist:"已存在",
            },
            local:{
                new: "新建",
                add: "增加",
            },
            gridpage: {
                choicecolumns: "选择列",
                saveconfig: "保存当前配置",
                resetconfig: "恢复默认配置",
                refresh: "刷新",
                show: "显示",
                records: "条",
                totle: "共",
                valueVail: "值不能为空",
                group:"分组",
                other:"其他",
                notConfig: {
                    fetchAction: "视图表格fetchAction参数未配置",
                    removeAction: "视图表格removeAction参数未配置",
                    createAction: "视图表格createAction参数未配置",
                    updateAction: "视图表格updateAction参数未配置",
                    loaddraftAction: "视图表格loaddraftAction参数未配置",
                },
                message: {
                  saveconfigsuccess: "保存配置成功！",
                  saveconfigerror: "保存配置失败！",
                  resetconfigsuccess: "重置配置成功！",
                  resetconfigerror: "重置配置失败！",
                },
                data: "数据",
                delDataFail: "删除数据失败",
                delSuccess: "删除成功!",
                confirmDel: "确认要删除",
                notRecoverable: "删除操作将不可恢复？",
                notBatch: "批量添加未实现",
                grid: "表",
                exportFail: "数据导出失败",
                sum: "合计",
                formitemFailed: "表单项更新失败",
            },
            list: {
                notConfig: {
                    fetchAction: "视图列表fetchAction参数未配置",
                    removeAction: "视图表格removeAction参数未配置",
                    createAction: "视图列表createAction参数未配置",
                    updateAction: "视图列表updateAction参数未配置",
                },
                confirmDel: "确认要删除",
                notRecoverable: "删除操作将不可恢复？",
            },
            listExpBar: {
                title: "列表导航栏",
            },
            wfExpBar: {
                title: "流程导航栏",
            },
            calendarExpBar:{
                title: "日历导航栏",
            },
            treeExpBar: {
                title: "树视图导航栏",
            },
            portlet: {
                noExtensions: "无扩展插件",
            },
            tabpage: {
                sureclosetip: {
                    title: "关闭提醒",
                    content: "表单数据已经修改，确定要关闭？",
                },
                closeall: "关闭所有",
                closeother: "关闭其他",
            },
            fileUpload: {
                caption: "上传",
            },
            searchButton: {
                search: "搜索",
                reset: "重置",
            },
            calendar:{
            today: "今天",
            month: "月",
            week: "周",
            day: "天",
            list: "列",
            dateSelectModalTitle: "选择要跳转的时间",
            gotoDate: "跳转",
            from: "从",
            to: "至",
            },
            // 非实体视图
            views: {
                dstindex: {
                    caption: commonLogic.appcommonhandle("ibizlab",null),
                    title: commonLogic.appcommonhandle("DST",null),
                },
            },
            utilview:{
                importview:"导入数据",
                warning:"警告",
                info:"请配置数据导入项" 
            },
            menus: {
                dstindex: {
                    menuitem3: commonLogic.appcommonhandle("模型",null),
                    menuitem2: commonLogic.appcommonhandle("数据源",null),
                    menuitem14: commonLogic.appcommonhandle("系统",null),
                    menuitem1: commonLogic.appcommonhandle("实体",null),
                    menuitem9: commonLogic.appcommonhandle("模型",null),
                    menuitem15: commonLogic.appcommonhandle("同步",null),
                    menuitem16: commonLogic.appcommonhandle("字典",null),
                    menuitem4: commonLogic.appcommonhandle("规则",null),
                    menuitem10: commonLogic.appcommonhandle("规则",null),
                    menuitem11: commonLogic.appcommonhandle("引擎",null),
                    menuitem12: commonLogic.appcommonhandle("结果",null),
                    menuitem13: commonLogic.appcommonhandle("日志",null),
                    menuitem5: commonLogic.appcommonhandle("分析",null),
                    menuitem6: commonLogic.appcommonhandle("构建",null),
                    menuitem7: commonLogic.appcommonhandle("报表",null),
                    menuitem8: commonLogic.appcommonhandle("图表",null),
                },
            },
            formpage:{
                desc1: "操作失败,未能找到当前表单项",
                desc2: "无法继续操作",
                notconfig: {
                    loadaction: "视图表单loadAction参数未配置",
                    loaddraftaction: "视图表单loaddraftAction参数未配置",
                    actionname: "视图表单'+actionName+'参数未配置",
                    removeaction: "视图表单removeAction参数未配置",
                },
                saveerror: "保存数据发生错误",
                savecontent: "数据不一致，可能后台数据已经被修改,是否要重新加载数据？",
                valuecheckex: "值规则校验异常",
                savesuccess: "保存成功！",
                deletesuccess: "删除成功！",  
                workflow: {
                    starterror: "工作流启动失败",
                    startsuccess: "工作流启动成功",
                    submiterror: "工作流提交失败",
                    submitsuccess: "工作流提交成功",
                },
                updateerror: "表单项更新失败",     
            },
            gridBar: {
                title: "表格导航栏",
            },
            multiEditView: {
                notConfig: {
                    fetchAction: "视图多编辑视图面板fetchAction参数未配置",
                    loaddraftAction: "视图多编辑视图面板loaddraftAction参数未配置",
                },
            },
            dataViewExpBar: {
                title: "卡片视图导航栏",
            },
            kanban: {
                notConfig: {
                    fetchAction: "视图列表fetchAction参数未配置",
                    removeAction: "视图表格removeAction参数未配置",
                },
                delete1: "确认要删除 ",
                delete2: "删除操作将不可恢复？",
                fold: "折叠",
                unfold: "展开",
            },
            dashBoard: {
                handleClick: {
                    title: "面板设计",
                },
            },
            dataView: {
                sum: "共",
                data: "条数据",
            },
            chart: {
                undefined: "未定义",
                quarter: "季度",   
                year: "年",
            },
            searchForm: {
                notConfig: {
                    loadAction: "视图搜索表单loadAction参数未配置",
                    loaddraftAction: "视图搜索表单loaddraftAction参数未配置",
                },
                custom: "存储自定义查询",
                title: "名称",
            },
            wizardPanel: {
                back: "上一步",
                next: "下一步",
                complete: "完成",
                preactionmessage:"未配置计算上一步行为"
            },
            viewLayoutPanel: {
                appLogoutView: {
                    prompt1: "尊敬的客户您好，您已成功退出系统，将在",
                    prompt2: "秒后跳转至",
                    logingPage: "登录页",
                },
                appWfstepTraceView: {
                    title: "应用流程处理记录视图",
                },
                appWfstepDataView: {
                    title: "应用流程跟踪视图",
                },
                appLoginView: {
                    username: "用户名",
                    password: "密码",
                    login: "登录",
                },
            },
        },
        entities: {
            dadimension: dadimension_zh_CN(),
            dstsystem: dstsystem_zh_CN(),
            dstapp: dstapp_zh_CN(),
            dareport: dareport_zh_CN(),
            metadataset: metadataset_zh_CN(),
            ruleitem: ruleitem_zh_CN(),
            dachart: dachart_zh_CN(),
            dabuild: dabuild_zh_CN(),
            dstdatasource: dstdatasource_zh_CN(),
            metafield: metafield_zh_CN(),
            execlog: execlog_zh_CN(),
            dictcatalog: dictcatalog_zh_CN(),
            execresult: execresult_zh_CN(),
            metarelationship: metarelationship_zh_CN(),
            dametric: dametric_zh_CN(),
            tablesync: tablesync_zh_CN(),
            ruleengine: ruleengine_zh_CN(),
            metaentity: metaentity_zh_CN(),
            dictoption: dictoption_zh_CN(),
            metamodule: metamodule_zh_CN(),
            metamodel: metamodel_zh_CN(),
        },
        components: components_zh_CN(),
        codelist: codelist_zh_CN(),
        userCustom: userCustom_zh_CN(),
    };
    return data;
}
export default getAppLocale;