diff --git a/src/locales/en-US/resources.ts b/src/locales/en-US/resources.ts index 8bf9273a..86241591 100644 --- a/src/locales/en-US/resources.ts +++ b/src/locales/en-US/resources.ts @@ -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' }; diff --git a/src/locales/zh-CN/resources.ts b/src/locales/zh-CN/resources.ts index c7213d67..eaca6301 100644 --- a/src/locales/zh-CN/resources.ts +++ b/src/locales/zh-CN/resources.ts @@ -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': '容器安装' }; diff --git a/src/pages/resources/components/add-worker.tsx b/src/pages/resources/components/add-worker.tsx index 0d9228c9..bd1068e8 100644 --- a/src/pages/resources/components/add-worker.tsx +++ b/src/pages/resources/components/add-worker.tsx @@ -18,12 +18,12 @@ const AddWorker: React.FC = (props) => { const items: TabsProps['items'] = [ { key: 'script', - label: 'Script Installation', + label: intl.formatMessage({ id: 'resources.worker.script.install' }), children: }, { key: 'container', - label: 'Container Installation', + label: intl.formatMessage({ id: 'resources.worker.container.install' }), children: } ];