diff --git a/extensions/iceworks-app/src/locales/en-US.json b/extensions/iceworks-app/src/locales/en-US.json index e1e1b7900..11d1c4d84 100644 --- a/extensions/iceworks-app/src/locales/en-US.json +++ b/extensions/iceworks-app/src/locales/en-US.json @@ -1,22 +1,22 @@ { - "extension.iceworksApp.showExtensionsQuickPick.projectCreater.label":"Iceworks createApplication", - "extension.iceworksApp.showExtensionsQuickPick.projectCreater.detail":"Create a Universal Application(React/Rax/Vue, etc) quickly.", - "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.label":"Iceworks pageBuidler", - "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.detail":"Through GUI, you can quickly assemble pages with materials.", - "extension.iceworksApp.showExtensionsQuickPick.generateComponent.label":"Iceworks componentBuilder", - "extension.iceworksApp.showExtensionsQuickPick.generateComponent.detail":"Create components quickly from materials.", - "extension.iceworksApp.showExtensionsQuickPick.materialImport.label":"Iceworks materialImport", - "extension.iceworksApp.showExtensionsQuickPick.materialImport.detail":"Add materials to the application in a visual way.", - "extension.iceworksApp.showDepsInputBox.materialImport.placeHolder":"for example: lodash react@latest.", - "extension.iceworksApp.showDepsInputBox.materialImport.prompt":"Please enter the name of the dependency to be addded to <%= depType %>. Multiple dependencies should be spilted by Spaces.", - "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.label":"Daily", - "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.detail":"Release to daily environment.", - "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.label":"Production", - "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.detail":"Release to production environment.", - "extension.iceworksApp.showDepsQuickPick.quickPickItem.detail":"Install <%= label %>", - "extension.iceworksApp.openEntryFile.ErrorMessage":"Cannot find entry", - "extension.iceworksApp.extension.title":"Iceworks setting", - "extension.iceworksApp.extebsion.emptyWorkplace":"Current workspace is empty. Plaase open or create an application." + "extension.iceworksApp.showExtensionsQuickPick.projectCreater.label": "Iceworks createApplication", + "extension.iceworksApp.showExtensionsQuickPick.projectCreater.detail": "Create a Universal Application(React/Rax/Vue, etc) quickly.", + "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.label": "Iceworks pageBuidler", + "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.detail": "Through GUI, you can quickly assemble pages with materials.", + "extension.iceworksApp.showExtensionsQuickPick.generateComponent.label": "Iceworks componentBuilder", + "extension.iceworksApp.showExtensionsQuickPick.generateComponent.detail": "Create components quickly from materials.", + "extension.iceworksApp.showExtensionsQuickPick.materialImport.label": "Iceworks materialImport", + "extension.iceworksApp.showExtensionsQuickPick.materialImport.detail": "Add materials to the application in a visual way.", + "extension.iceworksApp.showDepsInputBox.materialImport.placeHolder": "for example: lodash react@latest.", + "extension.iceworksApp.showDepsInputBox.materialImport.prompt": "Please enter the name of the dependency to be addded to <%= depType %>. Multiple dependencies should be spilted by Spaces.", + "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.label": "Daily", + "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.detail": "Release to daily environment.", + "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.label": "Production", + "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.detail": "Release to production environment.", + "extension.iceworksApp.showDepsQuickPick.quickPickItem.detail": "Install <%= label %>", + "extension.iceworksApp.openEntryFile.ErrorMessage": "Cannot find entry", + "extension.iceworksApp.extension.title": "Iceworks setting", + "extension.iceworksApp.extebsion.emptyWorkplace": "Current workspace is empty. Plaase open or create an application." } \ No newline at end of file diff --git a/extensions/iceworks-app/src/locales/zh-CN.json b/extensions/iceworks-app/src/locales/zh-CN.json index 63b86ac08..d5847fed0 100644 --- a/extensions/iceworks-app/src/locales/zh-CN.json +++ b/extensions/iceworks-app/src/locales/zh-CN.json @@ -1,20 +1,20 @@ { - "extension.iceworksApp.showExtensionsQuickPick.projectCreater.label":"Iceworks 创建应用", - "extension.iceworksApp.showExtensionsQuickPick.projectCreater.detail":"快速创建多端应用(例如:React/Rax/Vue...)", - "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.label":"Iceworks 生成页面", - "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.detail":"使用低代码的方式生成网页视图", - "extension.iceworksApp.showExtensionsQuickPick.generateComponent.label":"Iceworks 生成组件", - "extension.iceworksApp.showExtensionsQuickPick.generateComponent.detail":"使用低代码的方式生成前端组件", - "extension.iceworksApp.showExtensionsQuickPick.materialImport.label":"Iceworks 使用物料", - "extension.iceworksApp.showExtensionsQuickPick.materialImport.detail":"使用可视化的方式添加物料到应用中", - "extension.iceworksApp.showDepsInputBox.materialImport.placeHolder":"例如: lodash react@latest", - "extension.iceworksApp.showDepsInputBox.materialImport.prompt":"请输入需要添加到 <%= depType %> 的依赖名称, 支持通过空格添加多个依赖", - "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.label":"日常环境", - "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.detail":"发布到日常环境", - "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.label":"生产环境", - "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.detail":"发布到生产环境", - "extension.iceworksApp.showDepsQuickPick.quickPickItem.detail":"安装 <%= label %>", - "extension.iceworksApp.openEntryFile.ErrorMessage":"没有找到入口", - "extension.iceworksApp.extension.title":"设置 - Iceworks", - "extension.iceworksApp.extebsion.emptyWorkplace":"当前工作区为空,请打开应用或新建应用。" + "extension.iceworksApp.showExtensionsQuickPick.projectCreater.label": "Iceworks 创建应用", + "extension.iceworksApp.showExtensionsQuickPick.projectCreater.detail": "快速创建多端应用(例如:React/Rax/Vue...)", + "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.label": "Iceworks 生成页面", + "extension.iceworksApp.showExtensionsQuickPick.pageBuilder.detail": "使用低代码的方式生成网页视图", + "extension.iceworksApp.showExtensionsQuickPick.generateComponent.label": "Iceworks 生成组件", + "extension.iceworksApp.showExtensionsQuickPick.generateComponent.detail": "使用低代码的方式生成前端组件", + "extension.iceworksApp.showExtensionsQuickPick.materialImport.label": "Iceworks 使用物料", + "extension.iceworksApp.showExtensionsQuickPick.materialImport.detail": "使用可视化的方式添加物料到应用中", + "extension.iceworksApp.showDepsInputBox.materialImport.placeHolder": "例如: lodash react@latest", + "extension.iceworksApp.showDepsInputBox.materialImport.prompt": "请输入需要添加到 <%= depType %> 的依赖名称, 支持通过空格添加多个依赖", + "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.label": "日常环境", + "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.daily.detail": "发布到日常环境", + "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.label": "生产环境", + "extension.iceworksApp.showDefPublishEnvQuickPick.DEFEnvOptions.prod.detail": "发布到生产环境", + "extension.iceworksApp.showDepsQuickPick.quickPickItem.detail": "安装 <%= label %>", + "extension.iceworksApp.openEntryFile.ErrorMessage": "没有找到入口", + "extension.iceworksApp.extension.title": "设置 - Iceworks", + "extension.iceworksApp.extebsion.emptyWorkplace": "当前工作区为空,请打开应用或新建应用。" } diff --git a/extensions/iceworks-app/web/src/locales/en-US.json b/extensions/iceworks-app/web/src/locales/en-US.json index 56b26ada9..2c2682f2e 100644 --- a/extensions/iceworks-app/web/src/locales/en-US.json +++ b/extensions/iceworks-app/web/src/locales/en-US.json @@ -1,27 +1,27 @@ { - "web.iceworksApp.customMaterialSource.confirmDelete":"Are you sure to delete the material source?", - "web.iceworksApp.customMaterialSource.editMaterialSource":"Edit Material Source", - "web.iceworksApp.customMaterialSource.addMaterialSource":"Add Material Source", - "web.iceworksApp.customMaterialSource.customMaterialSource":"Custom Material Source", - "web.iceworksApp.customMaterialSource.add":"Add", - "web.iceworksApp.customMaterialSource.loading":"Loading", - "web.iceworksApp.index.CUSTOM_NPM_REGISTRY_SELECT_KEY":"Custom NPM Registry", - "web.iceworksApp.index.addMaterialSuccess":"Added material source successfully", - "web.iceworksApp.index.editMaterialSuccess":"Modified material source successfully", - "web.iceworksApp.index.deletetMaterialSuccess":"Material source deleted successfully", - "web.iceworksApp.index.editSettingSuccess":"Setting up completed successfully ", - "web.iceworksApp.index.npmPackageManager":"Npm Packages Manager", - "web.iceworksApp.index.chooseNpmPackageManager":"Choose NPM Packages Mananger", - "web.iceworksApp.index.npmRegistry":"Npm Registry", - "web.iceworksApp.index.chooseNpmRegistry":"Choose NPM Registry", - "web.iceworksApp.index.formatUrl":"Enter A NPM Registry Url", - "web.iceworksApp.index.customNpmRegistryPlaceHolder":"Custom NPM Registry", - "web.iceworksApp.MaterialSourceForm.materialNameLabel":"Material Name:", - "web.iceworksApp.MaterialSourceForm.materialName":"Please Enter Material Name", - "web.iceworksApp.MaterialSourceForm.materiaURLLabel":"Material URL", - "web.iceworksApp.MaterialSourceForm.materiaURL":"Please Enter Material URL", - "web.iceworksApp.MaterialSourceForm.materialDescriptionLabel":"Material Description:", - "web.iceworksApp.MaterialSourceForm.materialDescription":"Please Enter Material Description", - "web.iceworksApp.MaterialSourceForm.confirm":"Confirm", - "web.iceworksApp.MaterialSourceForm.cancel":"Cancel" + "web.iceworksApp.customMaterialSource.confirmDelete": "Are you sure to delete the material source?", + "web.iceworksApp.customMaterialSource.editMaterialSource": "Edit Material Source", + "web.iceworksApp.customMaterialSource.addMaterialSource": "Add Material Source", + "web.iceworksApp.customMaterialSource.customMaterialSource": "Custom Material Source", + "web.iceworksApp.customMaterialSource.add": "Add", + "web.iceworksApp.customMaterialSource.loading": "Loading", + "web.iceworksApp.index.CUSTOM_NPM_REGISTRY_SELECT_KEY": "Custom NPM Registry", + "web.iceworksApp.index.addMaterialSuccess": "Added material source successfully", + "web.iceworksApp.index.editMaterialSuccess": "Modified material source successfully", + "web.iceworksApp.index.deletetMaterialSuccess": "Material source deleted successfully", + "web.iceworksApp.index.editSettingSuccess": "Setting up completed successfully ", + "web.iceworksApp.index.npmPackageManager": "Npm Packages Manager", + "web.iceworksApp.index.chooseNpmPackageManager": "Choose NPM Packages Mananger", + "web.iceworksApp.index.npmRegistry": "Npm Registry", + "web.iceworksApp.index.chooseNpmRegistry": "Choose NPM Registry", + "web.iceworksApp.index.formatUrl": "Enter A NPM Registry Url", + "web.iceworksApp.index.customNpmRegistryPlaceHolder": "Custom NPM Registry", + "web.iceworksApp.MaterialSourceForm.materialNameLabel": "Material Name:", + "web.iceworksApp.MaterialSourceForm.materialName": "Please Enter Material Name", + "web.iceworksApp.MaterialSourceForm.materiaURLLabel": "Material URL", + "web.iceworksApp.MaterialSourceForm.materiaURL": "Please Enter Material URL", + "web.iceworksApp.MaterialSourceForm.materialDescriptionLabel": "Material Description:", + "web.iceworksApp.MaterialSourceForm.materialDescription": "Please Enter Material Description", + "web.iceworksApp.MaterialSourceForm.confirm": "Confirm", + "web.iceworksApp.MaterialSourceForm.cancel": "Cancel" } \ No newline at end of file diff --git a/extensions/iceworks-app/web/src/locales/zh-CN.json b/extensions/iceworks-app/web/src/locales/zh-CN.json index 9732ffe86..c273b9922 100644 --- a/extensions/iceworks-app/web/src/locales/zh-CN.json +++ b/extensions/iceworks-app/web/src/locales/zh-CN.json @@ -1,27 +1,27 @@ { - "web.iceworksApp.customMaterialSource.confirmDelete":"是否确定删除该物料源?", - "web.iceworksApp.customMaterialSource.editMaterialSource":"编辑物料源", - "web.iceworksApp.customMaterialSource.addMaterialSource":"新增物料源", - "web.iceworksApp.customMaterialSource.customMaterialSource":"自定义物料源", - "web.iceworksApp.customMaterialSource.add":"添加", - "web.iceworksApp.customMaterialSource.loading":"加载中...", - "web.iceworksApp.index.CUSTOM_NPM_REGISTRY_SELECT_KEY":"npm - 自定义镜像源", - "web.iceworksApp.index.addMaterialSuccess":"新增物料源成功", - "web.iceworksApp.index.editMaterialSuccess":"修改物料源成功", - "web.iceworksApp.index.deletetMaterialSuccess":"删除物料源成功", - "web.iceworksApp.index.editSettingSuccess":"设置成功", - "web.iceworksApp.index.npmPackageManager":"npm 包管理工具", - "web.iceworksApp.index.chooseNpmPackageManager":"请选择 npm 包管理工具", - "web.iceworksApp.index.npmRegistry":"npm 镜像源", - "web.iceworksApp.index.chooseNpmRegistry":"请选择 npm 镜像源", - "web.iceworksApp.index.formatUrl":"请输入正确的 url", - "web.iceworksApp.index.customNpmRegistryPlaceHolder":"请输入自定义 npm 镜像源", - "web.iceworksApp.MaterialSourceForm.materialNameLabel":"物料名称:", - "web.iceworksApp.MaterialSourceForm.materialName":"请输入物料名称", - "web.iceworksApp.MaterialSourceForm.materiaURLLabel":"物料地址:", - "web.iceworksApp.MaterialSourceForm.materiaURL":"请输入物料地址", - "web.iceworksApp.MaterialSourceForm.materialDescriptionLabel":"物料描述:", - "web.iceworksApp.MaterialSourceForm.materialDescription":"请输入物料描述", - "web.iceworksApp.MaterialSourceForm.confirm":"确定", - "web.iceworksApp.MaterialSourceForm.cancel":"取消" + "web.iceworksApp.customMaterialSource.confirmDelete": "是否确定删除该物料源?", + "web.iceworksApp.customMaterialSource.editMaterialSource": "编辑物料源", + "web.iceworksApp.customMaterialSource.addMaterialSource": "新增物料源", + "web.iceworksApp.customMaterialSource.customMaterialSource": "自定义物料源", + "web.iceworksApp.customMaterialSource.add": "添加", + "web.iceworksApp.customMaterialSource.loading": "加载中...", + "web.iceworksApp.index.CUSTOM_NPM_REGISTRY_SELECT_KEY": "npm - 自定义镜像源", + "web.iceworksApp.index.addMaterialSuccess": "新增物料源成功", + "web.iceworksApp.index.editMaterialSuccess": "修改物料源成功", + "web.iceworksApp.index.deletetMaterialSuccess": "删除物料源成功", + "web.iceworksApp.index.editSettingSuccess": "设置成功", + "web.iceworksApp.index.npmPackageManager": "npm 包管理工具", + "web.iceworksApp.index.chooseNpmPackageManager": "请选择 npm 包管理工具", + "web.iceworksApp.index.npmRegistry": "npm 镜像源", + "web.iceworksApp.index.chooseNpmRegistry": "请选择 npm 镜像源", + "web.iceworksApp.index.formatUrl": "请输入正确的 url", + "web.iceworksApp.index.customNpmRegistryPlaceHolder": "请输入自定义 npm 镜像源", + "web.iceworksApp.MaterialSourceForm.materialNameLabel": "物料名称:", + "web.iceworksApp.MaterialSourceForm.materialName": "请输入物料名称", + "web.iceworksApp.MaterialSourceForm.materiaURLLabel": "物料地址:", + "web.iceworksApp.MaterialSourceForm.materiaURL": "请输入物料地址", + "web.iceworksApp.MaterialSourceForm.materialDescriptionLabel": "物料描述:", + "web.iceworksApp.MaterialSourceForm.materialDescription": "请输入物料描述", + "web.iceworksApp.MaterialSourceForm.confirm": "确定", + "web.iceworksApp.MaterialSourceForm.cancel": "取消" } \ No newline at end of file diff --git a/extensions/iceworks-component-builder/package.json b/extensions/iceworks-component-builder/package.json index 83cd23a2b..56249c8f1 100644 --- a/extensions/iceworks-component-builder/package.json +++ b/extensions/iceworks-component-builder/package.json @@ -109,7 +109,7 @@ "@iceworks/material-service": "^0.1.3", "@iceworks/project-service": "^0.1.4", "@iceworks/vscode-webview": "^0.1.1", - "@iceworks/i18n":"^0.0.1" + "@iceworks/i18n": "^0.0.1" }, "homepage": "https://github.com/ice-lab/iceworks/blob/master/extensions/iceworks-component-builder/README.md", "bugs": { diff --git a/extensions/iceworks-component-builder/src/locales/en-US.json b/extensions/iceworks-component-builder/src/locales/en-US.json index aeb9b76e1..297c4cfb2 100644 --- a/extensions/iceworks-component-builder/src/locales/en-US.json +++ b/extensions/iceworks-component-builder/src/locales/en-US.json @@ -1,3 +1,3 @@ { - "extension.iceworksComponentBuilder.extension.webviewTitle":"Generate Components - Iceworks" + "extension.iceworksComponentBuilder.extension.webviewTitle": "Generate Components - Iceworks" } \ No newline at end of file diff --git a/extensions/iceworks-component-builder/src/locales/zh-CN.json b/extensions/iceworks-component-builder/src/locales/zh-CN.json index 152187e57..c4dcd7b93 100644 --- a/extensions/iceworks-component-builder/src/locales/zh-CN.json +++ b/extensions/iceworks-component-builder/src/locales/zh-CN.json @@ -1,3 +1,3 @@ { - "extension.iceworksComponentBuilder.extension.webviewTitle":"生成组件 - Iceworks" + "extension.iceworksComponentBuilder.extension.webviewTitle": "生成组件 - Iceworks" } \ No newline at end of file diff --git a/extensions/iceworks-component-builder/web/src/locales/en-US.json b/extensions/iceworks-component-builder/web/src/locales/en-US.json index 69fa73578..1487f4ffb 100644 --- a/extensions/iceworks-component-builder/web/src/locales/en-US.json +++ b/extensions/iceworks-component-builder/web/src/locales/en-US.json @@ -1,11 +1,11 @@ { - "web.ComponentBuiilder.Home.getMaterialError":"Fail to obtain materials. Please try again later.", - "web.ComponentBuiilder.Home.getDataError":"Fail to obtain material data. Please try again later.", - "web.ComponentBuiilder.Home.noComponentName":"Please Enter Component Name.", - "web.ComponentBuiilder.Home.didNotSeletBlock":"Please choose a block before generate.", - "web.ComponentBuiilder.Home.generateSuccess":"Generate component successfully.", - "web.ComponentBuiilder.Home.inputComponentName":"1. Enter Component Name.", - "web.ComponentBuiilder.Home.inputComponentNamePlaceHolder":"Component name must start with [A-Z] and only contains letters and numbers. Special characters are not allowed.", - "web.ComponentBuiilder.Home.selectBlock":"2. Choose A Block", - "web.ComponentBuiilder.Home.generate":"Generate Component" + "web.ComponentBuiilder.Home.getMaterialError": "Fail to obtain materials. Please try again later.", + "web.ComponentBuiilder.Home.getDataError": "Fail to obtain material data. Please try again later.", + "web.ComponentBuiilder.Home.noComponentName": "Please Enter Component Name.", + "web.ComponentBuiilder.Home.didNotSeletBlock": "Please choose a block before generate.", + "web.ComponentBuiilder.Home.generateSuccess": "Generate component successfully.", + "web.ComponentBuiilder.Home.inputComponentName": "1. Enter Component Name.", + "web.ComponentBuiilder.Home.inputComponentNamePlaceHolder": "Component name must start with [A-Z] and only contains letters and numbers. Special characters are not allowed.", + "web.ComponentBuiilder.Home.selectBlock": "2. Choose A Block", + "web.ComponentBuiilder.Home.generate": "Generate Component" } \ No newline at end of file diff --git a/extensions/iceworks-component-builder/web/src/locales/zh-CN.json b/extensions/iceworks-component-builder/web/src/locales/zh-CN.json index 7db2a3103..461b80898 100644 --- a/extensions/iceworks-component-builder/web/src/locales/zh-CN.json +++ b/extensions/iceworks-component-builder/web/src/locales/zh-CN.json @@ -1,11 +1,11 @@ { - "web.ComponentBuiilder.Home.getMaterialError":"获取物料源信息失败,请稍后再试。", - "web.ComponentBuiilder.Home.getDataError":"获取物料集合信息失败,请稍后再试。", - "web.ComponentBuiilder.Home.noComponentName":"请填写组件名。", - "web.ComponentBuiilder.Home.didNotSeletBlock":"请选择使用的区块。", - "web.ComponentBuiilder.Home.generateSuccess":"组件生成成功!", - "web.ComponentBuiilder.Home.inputComponentName":"1. 填写组件名:", - "web.ComponentBuiilder.Home.inputComponentNamePlaceHolder":"名称必须英文字母 A-Z 开头,只包含英文和数字,不允许有特殊字符", - "web.ComponentBuiilder.Home.selectBlock":"2. 选择使用的区块:", - "web.ComponentBuiilder.Home.generate":"生成组件" + "web.ComponentBuiilder.Home.getMaterialError": "获取物料源信息失败,请稍后再试。", + "web.ComponentBuiilder.Home.getDataError": "获取物料集合信息失败,请稍后再试。", + "web.ComponentBuiilder.Home.noComponentName": "请填写组件名。", + "web.ComponentBuiilder.Home.didNotSeletBlock": "请选择使用的区块。", + "web.ComponentBuiilder.Home.generateSuccess": "组件生成成功!", + "web.ComponentBuiilder.Home.inputComponentName": "1. 填写组件名:", + "web.ComponentBuiilder.Home.inputComponentNamePlaceHolder": "名称必须英文字母 A-Z 开头,只包含英文和数字,不允许有特殊字符", + "web.ComponentBuiilder.Home.selectBlock": "2. 选择使用的区块:", + "web.ComponentBuiilder.Home.generate": "生成组件" } \ No newline at end of file diff --git a/extensions/iceworks-material-helper/web/src/pages/Home/index.tsx b/extensions/iceworks-material-helper/web/src/pages/Home/index.tsx index 09a107ca3..d39f1d13f 100644 --- a/extensions/iceworks-material-helper/web/src/pages/Home/index.tsx +++ b/extensions/iceworks-material-helper/web/src/pages/Home/index.tsx @@ -33,7 +33,7 @@ const MaterialsPane: React.FC = () => { try { data = await callService('material', 'getData', source); } catch (e) { - Notification.error({ content: intl.formatMessage({id: 'web.iceworksMaterialHelper.extension.getDataError'}) }); + Notification.error({ content: intl.formatMessage({id: 'web.iceworksMaterialHelper.extension.getMaterialDataError'}) }); } console.log('getData', data); return data as IMaterialData; diff --git a/extensions/iceworks-style-helper/README.en.md b/extensions/iceworks-style-helper/README.en.md index 54e8d2e37..6871d0f3a 100644 --- a/extensions/iceworks-style-helper/README.en.md +++ b/extensions/iceworks-style-helper/README.en.md @@ -67,7 +67,7 @@ When a variable is entered in an SASS file, code completion is provided based on #### Automatic completion When editing the colors and attributes -When the attribute value is entered, if it is found that variables can be replaced as standard value,variable replacement suggestions will appear: +When the attribute value is entered, if it is found that variables can be replaced as standard value, variable replacement suggestions will appear: ![demo](https://user-images.githubusercontent.com/56879942/87531943-04d2c400-c6c5-11ea-9f74-be6721353e46.gif) diff --git a/packages/block-service/src/locales/en-US.json b/packages/block-service/src/locales/en-US.json index ebd063a91..3f7a97113 100644 --- a/packages/block-service/src/locales/en-US.json +++ b/packages/block-service/src/locales/en-US.json @@ -1,15 +1,15 @@ { - "package.block-service.downloadBlock.getDownloadUrl":"Obtain Download URL...", - "package.block-service.downloadBlock.getDownloadUrlError":"Failed to obtain url, please copy and open <%= repository %> in browse.", - "package.block-service.downloadBlock.unzipCode":"Download and unzip code...", - "package.block-service.downloadBlock.unzipCodeError":"Error in unzipping <%= blockName %>,please copy and download from this url: :<%= tarballURL %>", - "package.block-service.downloadBlock.process":"===>>> Downloading:<%= percent %>%", - "package.block-service.downloadBlock.downloadError":"Block <%= blockName %> download timeout, please copy and download from this url: :<%= tarballURL %>", - "package.block-service.downloadError":"Failed to obtain zips from <%= blockSourceNpm %> ,try to clone the <%= repository %> repository manually.", - "package.block-service.uzipError":"Failed to unzip <%= blockName %>,download from:<%= tarballURL %>", - "package.block-service.uzipOutTime":"Uzip <%= blockName %> timeout,download from:<%= tarballURL %>", - "package.block-service.templateError":"You can only add block codes to <%= jsxFileExtnames %> ", - "package.block-service.notPageFileError":"You can only add block codes to files in <%= pagesPath %>", - "package.block-service.startObtainBlock":"> Obtain block codes...", - "package.block-service.obtainDone":"> The block code has been downloaded to <%= blockDir %>" + "package.block-service.downloadBlock.getDownloadUrl": "Obtain Download URL...", + "package.block-service.downloadBlock.getDownloadUrlError": "Failed to obtain url, please copy and open <%= repository %> in browse.", + "package.block-service.downloadBlock.unzipCode": "Download and unzip code...", + "package.block-service.downloadBlock.unzipCodeError": "Error in unzipping <%= blockName %>,please copy and download from this url: :<%= tarballURL %>", + "package.block-service.downloadBlock.process": "===>>> Downloading:<%= percent %>%", + "package.block-service.downloadBlock.downloadError": "Block <%= blockName %> download timeout, please copy and download from this url: :<%= tarballURL %>", + "package.block-service.downloadError": "Failed to obtain zips from <%= blockSourceNpm %> ,try to clone the <%= repository %> repository manually.", + "package.block-service.uzipError": "Failed to unzip <%= blockName %>,download from:<%= tarballURL %>", + "package.block-service.uzipOutTime": "Uzip <%= blockName %> timeout,download from:<%= tarballURL %>", + "package.block-service.templateError": "You can only add block codes to <%= jsxFileExtnames %> ", + "package.block-service.notPageFileError": "You can only add block codes to files in <%= pagesPath %>", + "package.block-service.startObtainBlock": "> Obtain block codes...", + "package.block-service.obtainDone": "> The block code has been downloaded to <%= blockDir %>" } \ No newline at end of file diff --git a/packages/block-service/src/locales/zh-CN.json b/packages/block-service/src/locales/zh-CN.json index c8c3962d5..f8cb385e9 100644 --- a/packages/block-service/src/locales/zh-CN.json +++ b/packages/block-service/src/locales/zh-CN.json @@ -1,15 +1,15 @@ { - "package.block-service.downloadBlock.getDownloadUrl":"获取区块代码包下载地址", - "package.block-service.downloadBlock.getDownloadUrlError":"获取区块代码包地址失败,请手动拷贝代码仓库:<%= repository %>", - "package.block-service.downloadBlock.unzipCode":"下载区块代码包并解压", - "package.block-service.downloadBlock.unzipCodeError":"解压区块<%= blockName %>出错,请手动下载区块:<%= tarballURL %>", - "package.block-service.downloadBlock.process":"===>>> 进度:<%= percent %>%", - "package.block-service.downloadBlock.downloadError":"区块<%= blockName %>下载超时,请手动下载区块:<%= tarballURL %>", - "package.block-service.downloadError":"从 <%= blockSourceNpm %> 获取压缩包链接失败,您可以尝试手动克隆 <%= repository %> 仓库", - "package.block-service.uzipError":"解压 <%= blockName %> 失败,压缩包链接地址是:<%= tarballURL %>", - "package.block-service.uzipOutTime":"解压 <%= blockName %> 超时,压缩包链接地址是:<%= tarballURL %>", - "package.block-service.templateError":"只能向 <%= jsxFileExtnames %> 文件添加区块代码", - "package.block-service.notPageFileError":"只能向 <%= pagesPath %> 下的页面文件添加区块代码", - "package.block-service.startObtainBlock":"> 开始获取区块代码", - "package.block-service.obtainDone":"> 已将区块代码下载到:<%= blockDir %>" + "package.block-service.downloadBlock.getDownloadUrl": "获取区块代码包下载地址", + "package.block-service.downloadBlock.getDownloadUrlError": "获取区块代码包地址失败,请手动拷贝代码仓库:<%= repository %>", + "package.block-service.downloadBlock.unzipCode": "下载区块代码包并解压", + "package.block-service.downloadBlock.unzipCodeError": "解压区块<%= blockName %>出错,请手动下载区块:<%= tarballURL %>", + "package.block-service.downloadBlock.process": "===>>> 进度:<%= percent %>%", + "package.block-service.downloadBlock.downloadError": "区块<%= blockName %>下载超时,请手动下载区块:<%= tarballURL %>", + "package.block-service.downloadError": "从 <%= blockSourceNpm %> 获取压缩包链接失败,您可以尝试手动克隆 <%= repository %> 仓库", + "package.block-service.uzipError": "解压 <%= blockName %> 失败,压缩包链接地址是:<%= tarballURL %>", + "package.block-service.uzipOutTime": "解压 <%= blockName %> 超时,压缩包链接地址是:<%= tarballURL %>", + "package.block-service.templateError": "只能向 <%= jsxFileExtnames %> 文件添加区块代码", + "package.block-service.notPageFileError": "只能向 <%= pagesPath %> 下的页面文件添加区块代码", + "package.block-service.startObtainBlock": "> 开始获取区块代码", + "package.block-service.obtainDone": "> 已将区块代码下载到:<%= blockDir %>" } \ No newline at end of file diff --git a/packages/i18n/src/index.ts b/packages/i18n/src/index.ts index 4b2e8f4d9..c66de766c 100644 --- a/packages/i18n/src/index.ts +++ b/packages/i18n/src/index.ts @@ -10,7 +10,7 @@ export default class I18n { currentTextMap: ITextMap = {}; - registry(locale: string,text: ITextMap){ + registry(locale: string, text: ITextMap){ this.localesTextMap[locale] = text; } diff --git a/scripts/extension-docs-check.ts b/scripts/extension-docs-check.ts index 474c8a081..28812a9ba 100644 --- a/scripts/extension-docs-check.ts +++ b/scripts/extension-docs-check.ts @@ -13,8 +13,8 @@ extensions.forEach(extension=>{ if(extension.startsWith('.')){ return; } - DOCS.push(path.join(EXTENSION_PATH,extension,ZHCN_DOC)); - DOCS.push(path.join(EXTENSION_PATH,extension,I18N_DOC)); + DOCS.push(path.join(EXTENSION_PATH, extension, ZHCN_DOC)); + DOCS.push(path.join(EXTENSION_PATH, extension, I18N_DOC)); }) // MarkdownLint 设置