diff --git a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/todos/provider/ActionBarProvider.tsx b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/todos/provider/ActionBarProvider.tsx index 4afe6705f..71f9e7aef 100644 --- a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/todos/provider/ActionBarProvider.tsx +++ b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/todos/provider/ActionBarProvider.tsx @@ -8,6 +8,7 @@ import { Space, Tag } from 'antd'; import { approvalStatusOptions } from '../../constants'; import { useContextApprovalExecution } from '../../context/ApprovalExecution'; +import { useTranslation } from '../../locale'; export function ActionBarProvider(props) { const { status } = useContextApprovalExecution(); @@ -20,12 +21,12 @@ export function ActionBarProvider(props) { } const ComponentUserInfo = () => { - const compile = useCompile(); + const { t } = useTranslation(); const { status, updatedAt, user } = useContextApprovalExecution(); const configObj = approvalStatusOptions.find((value) => value.value === status); return ( - {compile(configObj.label)} + {t(configObj.label)} {user.nickname}