Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add worker labels #259

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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