Skip to content

Commit

Permalink
chore: add worker labels
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Dec 23, 2024
1 parent e7de189 commit 6ce6a93
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/locales/en-US/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,7 @@ export default {
'resources.worker.container.supported': 'Do not support windows.',
'resources.worker.current.version': 'Current version is {version}.',
'resources.worker.select.command':
'Select a label to generate the command and copy it using the copy button.'
'Select a label to generate the command and copy it using the copy button.',
'resources.worker.script.install': 'Script Installation',
'resources.worker.container.install': 'Container Installation'
};
4 changes: 3 additions & 1 deletion src/locales/zh-CN/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ export default {
'resources.worker.add.step3': '成功后,刷新 worker 列表即可看到新的 worker',
'resources.worker.container.supported': '不支持 Windows',
'resources.worker.current.version': '当前版本为 {version}',
'resources.worker.select.command': '选择一个标签生成命令并使用复制按钮复制'
'resources.worker.select.command': '选择一个标签生成命令并使用复制按钮复制',
'resources.worker.script.install': '脚本安装',
'resources.worker.container.install': '容器安装'
};
4 changes: 2 additions & 2 deletions src/pages/resources/components/add-worker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ const AddWorker: React.FC<ViewModalProps> = (props) => {
const items: TabsProps['items'] = [
{
key: 'script',
label: 'Script Installation',
label: intl.formatMessage({ id: 'resources.worker.script.install' }),
children: <ScriptInstall token={token}></ScriptInstall>
},
{
key: 'container',
label: 'Container Installation',
label: intl.formatMessage({ id: 'resources.worker.container.install' }),
children: <ContainerInstall token={token} />
}
];
Expand Down

0 comments on commit 6ce6a93

Please sign in to comment.