From 33dd397464f947e17e133c0a45920c3b7ca753cc Mon Sep 17 00:00:00 2001 From: hisoka0728 <1399952343@qq.com> Date: Fri, 17 May 2024 19:05:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20core.modelHelper.vue3Util=E5=8C=85?= =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locale/en/index.ts | 108 ++++++++++++++++++++++++++++++++++++++ src/locale/zh-CN/index.ts | 95 +++++++++++++++++++++++++++++++++ 2 files changed, 203 insertions(+) diff --git a/src/locale/en/index.ts b/src/locale/en/index.ts index c1cd3eb1..3959c95e 100644 --- a/src/locale/en/index.ts +++ b/src/locale/en/index.ts @@ -1160,4 +1160,112 @@ export default { firstregister: 'Please register the model loading adapter first', }, }, + // vue3Util + vue3Util: { + common: { + undefined: 'undefined', + onFoundCorrespondingPart: + 'Undefined adapter with no corresponding part found', + noFoundViewModel: 'View model not found', + noSupportLoadingDynamic: + '{codeName}No entity, do not support loading dynamic models at this time', + }, + control: { + unsupportedPanel: 'Unsupported panel items: {id} - {itemType}', + }, + panelComponent: { + noConfiguardDataObject: 'No data object name configured', + noSupportedDataSourceType: + 'The data source type {dataSourceType} is not supported yet.', + noConfiguredEntityLogic: 'No entity logic configured', + noConfiguredEntity: 'No entity configured', + noReturnValue: 'The entity logic {appDELogicId} has no return value', + noAttribute: 'There is no {dataName} attribute in the global variable.', + noConfiguerdEntityBehanior: 'No entity behavior configured', + sessionView: + 'The session to which the view is bound does not exist {dataName}', + viewStateAttribute: 'There is no {dataName} attribute in the view state', + noImplementMethod: 'Method not implemented.', + noProvidedSlot: 'No {id} slot provided', + cannotEmpty: '{caption} cannot be empty', + unadaptedLayout: 'Unadapted layout placeholder {layoutPos}', + placeholderIdentifier: + 'The placeholder identifier for panel member {id} of view {viewCodeName} is:', + }, + plugin: { + failureConfigurationLoad: 'Configuration load failure', + failedRemotePluginLoad: + 'Remote Plugin failed to load, Remote Plugin did not find [default] Default Export', + fileContentFormat: + 'Remote plugin failed to load, file not found or file content format is incorrect', + }, + use: { + control: { + parameterChanges: 'Context or view parameter changes for {id}:', + stateChange: 'Part [{name}] state change', + }, + focusBlur: { + noFocus: 'No focus, no out-of-focus triggering', + }, + view: { + stateChange: 'View [{{name}] state change', + }, + }, + util: { + noInjected: 'The createVueApp method is not injected.', + convertString: 'Failed to convert to string', + viewIdentifiers: 'View identifiers do not exist for {depth} level routes', + noFoundView: 'View not found {viewCodeName}', + routeCorrectly: + 'Cannot get the route correctly, could be a dependency issue.', + }, + view: { + redirectionProgress: 'Redirection in progress', + viewType: 'View type {viewType} is not supported yet.', + noTeleportTag: 'No teleportTag was found for part {name}.', + embeddedRedirectionView: + 'Embedded redirection view does not support url jumping', + insufficientRedirection: 'Insufficient redirection parameters to jump', + toDoList: 'To-Do List Redirection', + }, + }, + core: { + command: { + unregisteredCommand: + 'Unregistered command: {id}, please register the command first', + }, + error: { + networkAbnormality: 'Network abnormality, please try again later', + modelMsg: '「{id}」 model {msg}', + unsupportedModels: 'Unsupported models', + modelConfigurationMissing: 'Model Configuration Missing', + }, + utils: { + powerOfTwo: '{permission} is not a power of two.', + targetElement: 'The target element does not exist', + cannotFindWindow: 'Cannot find window', + unrealized: 'unrealized', + remoteStylesheet: 'Failed to load remote stylesheet', + notMatchLockUnlock: 'The lock and unlock counts do not match!', + multiApplicationMode: + 'Multi-application mode waiting for reimplementation requests', + uploadFailed: '{file}Upload failed', + invalidInputValue: 'Invalid input value, must be >= 0', + }, + noReInstall: 'ibiz already exists, no need to re-install it', + }, + modelHelper: { + utils: { + noFoundEntity: 'Entity not found {id}', + maximumTier: 'Service path calculation exceeds maximum tier 10', + circularRecursive: + 'A circular recursive reference appears in the computational resource relationship path, triggering the entity:', + calculatedEntities: 'Current list of calculated entities. ', + }, + noInitialized: + '[{appId}] is not initialized, please call initModelUtil method to initialize it first', + noFoundEntity: 'Application [{appId}] data entity not found [{tag}]', + noFoundView: 'Application [{appId}] view not found [{tag}]', + noSupported: '[{language}] language not supported', + }, }; diff --git a/src/locale/zh-CN/index.ts b/src/locale/zh-CN/index.ts index 7f316f52..031d424a 100644 --- a/src/locale/zh-CN/index.ts +++ b/src/locale/zh-CN/index.ts @@ -992,4 +992,99 @@ export default { firstregister: '请先注册模型加载适配器', }, }, + vue3Util: { + common: { + undefined: '未定义', + onFoundCorrespondingPart: '未定义未找到对应部件的适配器', + noFoundViewModel: '未找到视图模型', + noSupportLoadingDynamic: '{codeName}无实体,暂不支持加载动态模型', + }, + control: { + unsupportedPanel: '暂未支持的面板项: {id} - {itemType}', + }, + panelComponent: { + noConfiguardDataObject: '没有配置数据对象名称', + noSupportedDataSourceType: '数据源类型{dataSourceType}暂未支持', + noConfiguredEntityLogic: '没有配置实体逻辑', + noConfiguredEntity: '没有配置实体', + noReturnValue: '实体逻辑{appDELogicId}没有返回值', + noAttribute: '全局变量里没有{dataName}属性', + noConfiguerdEntityBehanior: '没有配置实体行为', + sessionView: '绑定视图的会话不存在{dataName}', + viewStateAttribute: '视图state里没有{dataName}属性', + noImplementMethod: '未执行的方法', + noProvidedSlot: '未提供{id}插槽', + cannotEmpty: '{caption} 不能为空', + unadaptedLayout: '未适配的布局占位{layoutPos}', + placeholderIdentifier: '视图{viewCodeName}的面板成员{id}的占位标识是:', + }, + plugin: { + failureConfigurationLoad: '配置加载失败', + failedRemotePluginLoad: + '远程插件加载失败, 远程插件未找到[default]默认导出', + fileContentFormat: '远程插件加载失败, 未找到文件或文件内容格式不正确', + }, + use: { + control: { + parameterChanges: '{id}的上下文或视图参数变更:', + stateChange: '部件 [{name}] state 变更', + }, + focusBlur: { + noFocus: '没有聚焦,不触发失焦', + }, + view: { + stateChange: '视图 [{name}] state 变更', + }, + }, + util: { + noInjected: '没有注入createVueApp方法', + convertString: '转换成字符串失败', + viewIdentifiers: '第{depth}级路由不存在视图标识', + noFoundView: '找不到视图{viewCodeName}', + routeCorrectly: '无法正确获取route,可能是依赖问题', + }, + view: { + redirectionProgress: '重定向跳转中', + viewType: '视图类型{viewType}暂未支持', + noTeleportTag: '没有找到部件{name}的teleportTag', + embeddedRedirectionView: '嵌入重定向视图不支持url跳转', + insufficientRedirection: '重定向参数不足无法跳转', + toDoList: '待办列表重定向', + }, + }, + core: { + command: { + unregisteredCommand: '未注册指令: {id},请先注册指令', + }, + error: { + networkAbnormality: '网络异常,请稍后重试', + modelMsg: '「{id}」模型 {msg}', + unsupportedModels: '未支持的模型', + modelConfigurationMissing: '模型配置缺失', + }, + utils: { + powerOfTwo: '{permission}不是2的幂', + targetElement: 'target元素不存在', + cannotFindWindow: '找不到window', + unrealized: '未实现', + remoteStylesheet: '未实现加载远程样式表失败', + notMatchLockUnlock: 'lock和unlock次数不匹配!', + multiApplicationMode: '多应用模式等待重新实现请求', + uploadFailed: '{file}Upload failed', + invalidInputValue: '无效输入值,必须>=0', + }, + noReInstall: 'ibiz 已经存在, 无需重复安装', + }, + modelHelper: { + utils: { + noFoundEntity: '未找到实体 {id}', + maximumTier: '服务路径计算超过最大层级 10', + circularRecursive: '计算资源关系路径出现循环递归引用,触发实体:', + calculatedEntities: '当前已计算过实体清单: ', + }, + noInitialized: '[{appId}]未初始化,请先调用 initModelUtil 方法初始化', + noFoundEntity: '应用[{appId}]未找到数据实体[{tag}]', + noFoundView: '应用[{appId}]未找到视图[{tag}]', + noSupported: '[{language}]语言未支持', + }, }; -- Gitee