Skip to content

Commit

Permalink
Merge pull request #572 from xichen1/chaincode-dashboard
Browse files Browse the repository at this point in the history
Add required msgs for Chaincode page
  • Loading branch information
fengyangsy authored Oct 21, 2023
2 parents 7bb61a1 + b668ad6 commit bd78a0b
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 14 deletions.
41 changes: 32 additions & 9 deletions src/dashboard/src/locales/en-US/Chaincode.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,46 @@
export default {
'app.chainCode.title': 'Chain code management',
'app.chainCode.title': 'Chaincode management',
'app.chainCode.table.header.name': 'Name',
'app.chainCode.table.header.version': 'Version',
'app.chainCode.table.header.language': 'Language',
'app.chainCode.table.header.time': 'Time',
'app.chainCode.table.header.md5': 'MD5',
'app.chainCode.table.header.packageID': 'PackageID',
'app.chainCode.table.header.description': 'Chaincode Description',
'app.chainCode.table.operate.install': 'Install',
'app.chainCode.table.operate.delete': 'Delete',
'app.chainCode.form.create.header.title': 'Upload Chain code',
'app.chainCode.table.operate.approve': 'Approve',
'app.chainCode.table.operate.commit': 'Commit',
'app.chainCode.form.initFlag': 'Init required',
'app.chainCode.form.create.header.title': 'Upload Chaincode',
'app.chainCode.form.create.name': 'Name',
'app.chainCode.form.create.checkName': 'Please enter the chain code name',
'app.chainCode.form.create.checkName': 'Please enter the chaincode name',
'app.chainCode.form.create.version': 'Version',
'app.chainCode.form.create.checkVersion': 'Please enter the chain code version',
'app.chainCode.form.create.checkVersion': 'Please enter the chaincode version',
'app.chainCode.form.create.language': 'Language',
'app.chainCode.form.create.checkLanguage': 'Please select language',
'app.chainCode.form.create.fail': 'Upload chain code failed',
'app.chainCode.form.create.success': 'Upload chain code succeed',
'app.chainCode.form.create.checkLanguage': 'Please select chaincode language',
'app.chainCode.form.create.fail': 'Upload chaincode failed',
'app.chainCode.form.create.success': 'Upload chaincode succeed',
'app.chainCode.form.create.md5': 'md5',
'app.chainCode.form.create.checkMd5': 'Please enter the md5',
'app.chainCode.form.create.file': 'file',
'app.chainCode.form.create.fileSelect': 'Please select the chain code file',
'app.chainCode.form.create.file': 'Chaincode Package',
'app.chainCode.form.create.fileSelect': 'Please select the chaincode package',
'app.chainCode.form.create.description': 'Description',
'app.chainCode.form.install.fail': 'Install chaincode failed',
'app.chainCode.form.install.success': 'Install chaincode succeed',
'app.chainCode.form.install.header.title': 'Install Chaincode',
'app.chaincode.form.install.nodes': 'Please select nodes',
'app.chaincode.form.install.checkNodes': 'Please select nodes',
'app.chainCode.form.approve.fail': 'Approve chaincode failed',
'app.chainCode.form.approve.success': 'Approve chaincode succeed',
'app.chainCode.form.approve.header.title': 'Approve Chaincode',
'app.chainCode.form.approve.channel': 'Please select channel',
'app.chainCode.form.approve.specifyName': 'Name for chaincode',
'app.chainCode.form.approve.name': 'Name',
'app.chainCode.form.commit.fail': 'Commit chaincode failed',
'app.chainCode.form.commit.success': 'Commit chaincode succeed',
'app.chainCode.form.commit.header.name': 'Organization Name',
'app.chainCode.form.commit.header.status': 'Approvement Status',
'app.chainCode.form.commit.header.title': 'Commit Chaincode',
'app.chainCode.form.commit.channels': 'Please select channels',
};
2 changes: 1 addition & 1 deletion src/dashboard/src/locales/en-US/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
'menu.network': 'Network',
'menu.newNetwork': 'New Network',
'menu.channel': 'Channel',
'menu.chaincode': 'Chain code',
'menu.chaincode': 'Chaincode',
'menu.exception': 'Exception',
'menu.exception.not-permission': '403',
'menu.exception.not-find': '404',
Expand Down
31 changes: 27 additions & 4 deletions src/dashboard/src/locales/zh-CN/Chaincode.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,42 @@ export default {
'app.chainCode.table.header.language': '语言',
'app.chainCode.table.header.time': '时间',
'app.chainCode.table.header.md5': 'MD5',
'app.chainCode.table.header.packageID': '链码包ID',
'app.chainCode.table.header.description': '链码描述',
'app.chainCode.table.operate.install': '安装',
'app.chainCode.table.operate.delete': '删除',
'app.chainCode.table.operate.approve': '批准',
'app.chainCode.table.operate.commit': '提交',
'app.chainCode.form.initFlag': '是否需要初始化',
'app.chainCode.form.create.header.title': '上传链码',
'app.chainCode.form.create.name': '名称',
'app.chainCode.form.create.checkName': '请输入链码名称',
'app.chainCode.form.create.version': '版本',
'app.chainCode.form.create.checkVersion': '请输入链码版本',
'app.chainCode.form.create.language': '语言',
'app.chainCode.form.create.checkLanguage': '请选择语言',
'app.chainCode.form.create.language': '链码语言',
'app.chainCode.form.create.checkLanguage': '请选择链码语言',
'app.chainCode.form.create.fail': '上传链码失败',
'app.chainCode.form.create.success': '上传链码成功',
'app.chainCode.form.create.md5': 'md5',
'app.chainCode.form.create.checkMd5': '请输入md5',
'app.chainCode.form.create.file': '文件',
'app.chainCode.form.create.fileSelect': '请选择链码文件',
'app.chainCode.form.create.file': '链码包文件',
'app.chainCode.form.create.fileSelect': '请选择链码包文件',
'app.chainCode.form.create.description': '链码描述',
'app.chainCode.form.install.fail': '安装链码失败',
'app.chainCode.form.install.success': '安装链码成功',
'app.chainCode.form.install.header.title': '安装链码',
'app.chaincode.form.install.nodes': '请选择节点',
'app.chaincode.form.install.checkNodes': '请选择节点',
'app.chainCode.form.approve.fail': '批准链码失败',
'app.chainCode.form.approve.success': '批准链码成功',
'app.chainCode.form.approve.header.title': '批准链码',
'app.chainCode.form.approve.channel': '请选择通道',
'app.chainCode.form.approve.specifyName': '链码名称',
'app.chainCode.form.approve.name': '名称',
'app.chainCode.form.commit.fail': '提交链码失败',
'app.chainCode.form.commit.success': '提交链码成功',
'app.chainCode.form.commit.header.name': '组织名称',
'app.chainCode.form.commit.header.status': '批准状态',
'app.chainCode.form.commit.header.title': '提交链码',
'app.chainCode.form.commit.channels': '请选择通道',
};

0 comments on commit bd78a0b

Please sign in to comment.