diff --git a/packages/core/client/src/locale/en_US.ts b/packages/core/client/src/locale/en_US.ts index e5c8983fb..98e2afb5c 100644 --- a/packages/core/client/src/locale/en_US.ts +++ b/packages/core/client/src/locale/en_US.ts @@ -74,6 +74,8 @@ export default { "Value":"Value", "Disabled":"Disabled", "Enabled":"Enabled", + 'On':'On', + 'Off':'Off', "Empty":"Empty", "Linkage rule":"Linkage rule", "Linkage rules":"Linkage rules", diff --git a/packages/core/client/src/locale/ja_JP.ts b/packages/core/client/src/locale/ja_JP.ts index e1061a3fe..78bdec976 100644 --- a/packages/core/client/src/locale/ja_JP.ts +++ b/packages/core/client/src/locale/ja_JP.ts @@ -79,6 +79,8 @@ export default { "Value":"フィールド値", "Disabled":"無効化", "Enabled":"有効化", + 'On':'有効化', + 'Off':'無効化', "Empty":"くうきち", "Linkage rule":"連動規則", "Linkage rules":"連動規則", diff --git a/packages/core/client/src/locale/zh_CN.ts b/packages/core/client/src/locale/zh_CN.ts index 74cac1cfa..6ba9d2690 100644 --- a/packages/core/client/src/locale/zh_CN.ts +++ b/packages/core/client/src/locale/zh_CN.ts @@ -41,6 +41,8 @@ export default { "Setting": "设置", "Enable": "启用", "Disable": "禁用", + 'On':'启用', + 'Off':'禁用', "Logo": "Logo", "Add menu item": "添加菜单项", "Page": "页面", diff --git a/packages/core/client/src/schema-settings/LinkageRules/components/EnableLinkage.tsx b/packages/core/client/src/schema-settings/LinkageRules/components/EnableLinkage.tsx index 54a91a996..69b09ae58 100644 --- a/packages/core/client/src/schema-settings/LinkageRules/components/EnableLinkage.tsx +++ b/packages/core/client/src/schema-settings/LinkageRules/components/EnableLinkage.tsx @@ -1,13 +1,18 @@ import React from 'react'; import { Switch } from 'antd'; import { ArrayBase } from '@formily/antd'; +import { useTranslation } from 'react-i18next'; export const EnableLinkage = React.forwardRef((props: any, ref) => { const array = ArrayBase.useArray(); const index = ArrayBase.useIndex(props.index); + const { t } = useTranslation(); + return (