From 40e81a555fbc09fb7e53547c681e623d5a9495f2 Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Thu, 12 Feb 2026 13:14:58 +0000 Subject: [PATCH] Added translations for the task types --- public/locales/en/common.json | 1 + public/locales/en/taskTypes.json | 14 ++++++++++++++ src/App.tsx | 2 +- src/components/common/ConfirmButton.tsx | 2 +- src/components/common/CustomFieldsEditor.tsx | 2 +- src/components/common/LoadingPanel.tsx | 2 +- src/components/common/Select.tsx | 2 +- src/components/common/TableBody.tsx | 2 +- src/i18n/i18n.ts | 1 + src/modules/audit/audit.tsx | 2 +- src/modules/audit/components/auditTable.tsx | 2 +- src/modules/blockedIPs/blockedIPs.tsx | 2 +- .../blockedIPs/components/blockedIPsTable.tsx | 2 +- .../errorLogs/components/errorLogsTable.tsx | 2 +- src/modules/errorLogs/errorLogs.tsx | 2 +- .../components/EmailUserActionConfirmEmail.tsx | 2 +- ...ailUserActionDisableTwoFactorAuthentication.tsx | 2 +- .../components/EmailUserActionPasswordReset.tsx | 2 +- src/modules/frame/components/ForgotPassword.tsx | 2 +- src/modules/frame/components/InternalLoginForm.tsx | 2 +- src/modules/frame/components/LeftMenu.tsx | 2 +- src/modules/frame/components/Logout.tsx | 2 +- src/modules/frame/components/NotFound.tsx | 2 +- src/modules/frame/components/TopMenu.tsx | 2 +- src/modules/homepage/HomePage.tsx | 2 +- .../customfields/components/CustomFieldsTable.tsx | 2 +- .../manager/customfields/customFieldDetails.tsx | 2 +- src/modules/manager/customfields/customFields.tsx | 2 +- src/modules/manager/domains/Domains.tsx | 2 +- src/modules/manager/domains/DomainsDetails.tsx | 2 +- .../manager/domains/components/AddUserToRole.tsx | 2 +- .../domains/components/EmailTemplateEditor.tsx | 2 +- .../manager/domains/components/GeneralTab.tsx | 2 +- .../domains/components/RoleAccessEditor.tsx | 2 +- .../manager/domains/components/RolesDetails.tsx | 2 +- .../manager/domains/components/RolesEditor.tsx | 2 +- .../manager/domains/components/RolesTable.tsx | 2 +- .../manager/domains/components/RollAccessTable.tsx | 2 +- .../domains/components/SecurityRolesTab.tsx | 2 +- .../manager/domains/components/UserRoleEditor.tsx | 2 +- .../manager/domains/components/UserRolesTable.tsx | 2 +- .../manager/domains/components/domainsTable.tsx | 2 +- src/modules/manager/forms/Forms.tsx | 2 +- src/modules/manager/forms/FormsDetails.tsx | 2 +- .../manager/forms/components/formsTable.tsx | 2 +- src/modules/manager/glossary/GlossariesDetails.tsx | 2 +- src/modules/manager/glossary/Glossary.tsx | 2 +- .../glossary/components/GlossariesTable.tsx | 2 +- .../manager/organisations/Organisations.tsx | 6 ++++-- .../manager/organisations/OrganisationsDetails.tsx | 2 +- .../components/OrganisationsTable.tsx | 2 +- src/modules/manager/sequence/SequenceDetails.tsx | 2 +- .../manager/sequence/components/squenceTable.tsx | 2 +- src/modules/manager/sequence/sequence.tsx | 2 +- src/modules/manager/sites/SiteDetails.tsx | 2 +- src/modules/manager/sites/Sites.tsx | 2 +- .../manager/sites/components/SitesTable.tsx | 2 +- .../manager/specifications/Specifications.tsx | 2 +- .../specifications/SpecificationsDetails.tsx | 2 +- .../components/SpecificationsTable.tsx | 2 +- .../manager/ssoManager/SsoProviderDetails.tsx | 2 +- .../ssoManager/components/ssoManagerTable.tsx | 2 +- src/modules/manager/ssoManager/ssoManager.tsx | 2 +- src/modules/manager/users/UserDetails.tsx | 2 +- .../manager/users/components/GeneralTab.tsx | 2 +- .../manager/users/components/usersTable.tsx | 2 +- src/modules/manager/users/users.tsx | 2 +- .../workflowTemplates/WorkflowTemplateDetails.tsx | 2 +- .../workflowTemplates/WorkflowTemplateManager.tsx | 2 +- .../workflowTemplates/components/AddTaskButton.tsx | 11 ++++++++--- .../workflowTemplates/components/GeneralTab.tsx | 2 +- .../components/WorkflowTemplateTable.tsx | 2 +- src/modules/profile/components/InternalProfile.tsx | 2 +- 73 files changed, 96 insertions(+), 73 deletions(-) create mode 100644 public/locales/en/taskTypes.json diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 83cdeb1..1122141 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -6,6 +6,7 @@ "Active": "Active", "Add": "Add", "AddDomain": "Add Domain", + "AddTask": "Add Task", "Address": "Address", "AddUser": "Add User", "AddWorkflowTemplate": "Add Workflow Template", diff --git a/public/locales/en/taskTypes.json b/public/locales/en/taskTypes.json new file mode 100644 index 0000000..8498a4f --- /dev/null +++ b/public/locales/en/taskTypes.json @@ -0,0 +1,14 @@ +{ + "AdhocApprovalTask": "Adhoc Approval", + "ApprovalTask": "Approval", + "AssetUploadTask": "Asset Upload", + "BasicTask": "Basic", + "ContentCollationTask": "Content Collation", + "FileReleaseTask": "File Release", + "FormDataInputTask": "Form Data Input", + "LinkActivityTask": "Link Activity", + "MilestoneTask": "Milestone", + "StageTask": "Stage", + "VisualBriefReviewTask": "Visual Brief Review", + "VisualBriefUploadTask": "Visual Brief Upload" +} diff --git a/src/App.tsx b/src/App.tsx index 9e9f92d..7ba2641 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -48,7 +48,7 @@ import WorkflowTemplateManager from "./modules/manager/workflowTemplates/Workflo import WorkflowTemplateDetails from "./modules/manager/workflowTemplates/WorkflowTemplateDetails"; function GetSecureRoutes() { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); return ( <> diff --git a/src/components/common/ConfirmButton.tsx b/src/components/common/ConfirmButton.tsx index 1897bec..0800f6d 100644 --- a/src/components/common/ConfirmButton.tsx +++ b/src/components/common/ConfirmButton.tsx @@ -21,7 +21,7 @@ function ConfirmButton({ onClick, }: ConfirmButtonProps) { const [firstClick, setFirstClick] = useState(false); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const handleFirstClick = useCallback(() => { setFirstClick(true); diff --git a/src/components/common/CustomFieldsEditor.tsx b/src/components/common/CustomFieldsEditor.tsx index 70cb26f..cc01012 100644 --- a/src/components/common/CustomFieldsEditor.tsx +++ b/src/components/common/CustomFieldsEditor.tsx @@ -31,7 +31,7 @@ const CustomFieldsEditor: React.FC = ({ onAdd, onDelete, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [id, setId] = useState(undefined); const [displayName, setDisplayName] = useState(undefined); diff --git a/src/components/common/LoadingPanel.tsx b/src/components/common/LoadingPanel.tsx index 26c780b..9c52246 100644 --- a/src/components/common/LoadingPanel.tsx +++ b/src/components/common/LoadingPanel.tsx @@ -4,7 +4,7 @@ import { Namespaces } from "../../i18n/i18n"; interface LoadingProps {} const LoadingPanel: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); return
{t("Loading")}
; }; diff --git a/src/components/common/Select.tsx b/src/components/common/Select.tsx index cd01a86..31c6011 100644 --- a/src/components/common/Select.tsx +++ b/src/components/common/Select.tsx @@ -51,7 +51,7 @@ export default function Select({ onChange, ...rest }: SelectProps) { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const isMultiple = multiple ?? options === undefined; const actualValue = NormalizeSelectValue(value, isMultiple); diff --git a/src/components/common/TableBody.tsx b/src/components/common/TableBody.tsx index 9ca8a1e..b80e78e 100644 --- a/src/components/common/TableBody.tsx +++ b/src/components/common/TableBody.tsx @@ -48,7 +48,7 @@ export default function TableBody({ onSelectRow, showSecondaryAudit, }: TableBodyProps): JSX.Element { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const resolvePath = (path: string, args: string[]) => { let modifiedPath = path; let index = 0; diff --git a/src/i18n/i18n.ts b/src/i18n/i18n.ts index e8b1372..b4b40ac 100644 --- a/src/i18n/i18n.ts +++ b/src/i18n/i18n.ts @@ -9,6 +9,7 @@ export const Namespaces = { Common: "common", MailTypes: "mailTypes", HtmlIsland: "htmlIsland", + TaskTypes: "taskTypes", } as const; export type Namespace = (typeof Namespaces)[keyof typeof Namespaces]; diff --git a/src/modules/audit/audit.tsx b/src/modules/audit/audit.tsx index 8636838..62abf2c 100644 --- a/src/modules/audit/audit.tsx +++ b/src/modules/audit/audit.tsx @@ -11,7 +11,7 @@ import { Namespaces } from "../../i18n/i18n"; export default function Audit() { const location = useLocation(); const params = useParams(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [loaded, setLoaded] = useState(false); const [pagedData, setPagedData] = useState>({ diff --git a/src/modules/audit/components/auditTable.tsx b/src/modules/audit/components/auditTable.tsx index d7bdde7..eaed93c 100644 --- a/src/modules/audit/components/auditTable.tsx +++ b/src/modules/audit/components/auditTable.tsx @@ -27,7 +27,7 @@ interface AuditFieldChangeValues { export default function AuditTable(props: PublishedTableProps) { const { data, sortColumn, onChangePage, onSearch, onSort } = props; - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const fieldColumns: Column[] = useMemo( () => [ diff --git a/src/modules/blockedIPs/blockedIPs.tsx b/src/modules/blockedIPs/blockedIPs.tsx index d0c6f8b..9429155 100644 --- a/src/modules/blockedIPs/blockedIPs.tsx +++ b/src/modules/blockedIPs/blockedIPs.tsx @@ -10,7 +10,7 @@ import { useTranslation } from "react-i18next"; import { Namespaces } from "../../i18n/i18n"; export default function BlockedIPs() { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [pagedData, setPagedData] = useState>({ page: 1, pageSize: 10, diff --git a/src/modules/blockedIPs/components/blockedIPsTable.tsx b/src/modules/blockedIPs/components/blockedIPsTable.tsx index 13a2c9c..4ca2d57 100644 --- a/src/modules/blockedIPs/components/blockedIPsTable.tsx +++ b/src/modules/blockedIPs/components/blockedIPsTable.tsx @@ -13,7 +13,7 @@ import { Namespaces } from "../../../i18n/i18n"; export default function BlockedIPsTable( props: PublishedTableProps, ) { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const { data, sortColumn, onChangePage, onSearch, onSort, onDelete } = props; const canUnblockBlockedIPAddress = diff --git a/src/modules/errorLogs/components/errorLogsTable.tsx b/src/modules/errorLogs/components/errorLogsTable.tsx index c105229..a4a25df 100644 --- a/src/modules/errorLogs/components/errorLogsTable.tsx +++ b/src/modules/errorLogs/components/errorLogsTable.tsx @@ -10,7 +10,7 @@ import ExpandableCell from "../../../components/common/ExpandableCell"; export default function ErrorLogsTable( props: PublishedTableProps, ): JSX.Element { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const { data, sortColumn, onChangePage, onSearch, onSort } = props; const columns: Column[] = useMemo( diff --git a/src/modules/errorLogs/errorLogs.tsx b/src/modules/errorLogs/errorLogs.tsx index 496206f..b92548d 100644 --- a/src/modules/errorLogs/errorLogs.tsx +++ b/src/modules/errorLogs/errorLogs.tsx @@ -7,7 +7,7 @@ import { useTranslation } from "react-i18next"; import { Namespaces } from "../../i18n/i18n"; const ErrorLogs = (): JSX.Element => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [pagedData, setPagedData] = useState>({ page: 1, pageSize: 10, diff --git a/src/modules/frame/components/EmailUserActionConfirmEmail.tsx b/src/modules/frame/components/EmailUserActionConfirmEmail.tsx index 082f0e6..78f6cb7 100644 --- a/src/modules/frame/components/EmailUserActionConfirmEmail.tsx +++ b/src/modules/frame/components/EmailUserActionConfirmEmail.tsx @@ -19,7 +19,7 @@ interface Props { } const EmailUserActionConfirmEmail: React.FC = ({ emailUserAction }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [password, setPassword] = useState(""); const [confirmPassword, setConfirmPassword] = useState(""); const [emailConfirmed, setEmailConfirmed] = useState(false); diff --git a/src/modules/frame/components/EmailUserActionDisableTwoFactorAuthentication.tsx b/src/modules/frame/components/EmailUserActionDisableTwoFactorAuthentication.tsx index 3092b86..264cf8b 100644 --- a/src/modules/frame/components/EmailUserActionDisableTwoFactorAuthentication.tsx +++ b/src/modules/frame/components/EmailUserActionDisableTwoFactorAuthentication.tsx @@ -16,7 +16,7 @@ interface Props { const EmailUserActionDiableTwoFactorAuthentication: React.FC = ({ emailUserAction, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [authenticatorDisabled, setAuthenticatorDisabled] = useState(false); const LABEL_DISABLE_AUTHENTICATOR = t("DisableAuthenticator"); diff --git a/src/modules/frame/components/EmailUserActionPasswordReset.tsx b/src/modules/frame/components/EmailUserActionPasswordReset.tsx index fbfcd80..9157da8 100644 --- a/src/modules/frame/components/EmailUserActionPasswordReset.tsx +++ b/src/modules/frame/components/EmailUserActionPasswordReset.tsx @@ -19,7 +19,7 @@ interface Props { } const EmailUserActionPasswordReset: React.FC = ({ emailUserAction }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [password, setPassword] = useState(""); const [confirmPassword, setConfirmPassword] = useState(""); const [passwordChanged, setPasswordChanged] = useState(false); diff --git a/src/modules/frame/components/ForgotPassword.tsx b/src/modules/frame/components/ForgotPassword.tsx index fc3f0b3..c34c888 100644 --- a/src/modules/frame/components/ForgotPassword.tsx +++ b/src/modules/frame/components/ForgotPassword.tsx @@ -12,7 +12,7 @@ export interface ForgotPasswordData extends FormData { } const ForgotPassword: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [username, setUsername] = useState(""); const [emailSent, setEmailSent] = useState(false); const [generalError, setGeneralError] = useState(""); diff --git a/src/modules/frame/components/InternalLoginForm.tsx b/src/modules/frame/components/InternalLoginForm.tsx index 1e5dba8..b1d428f 100644 --- a/src/modules/frame/components/InternalLoginForm.tsx +++ b/src/modules/frame/components/InternalLoginForm.tsx @@ -14,7 +14,7 @@ import { useTranslation } from "react-i18next"; import { Namespaces } from "../../../i18n/i18n"; const InternalLoginForm: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [isInNextStage, setIsInNextStage] = useState(false); const [emailSent, setEmailSent] = useState(false); const passwordMaxLength = 255; diff --git a/src/modules/frame/components/LeftMenu.tsx b/src/modules/frame/components/LeftMenu.tsx index fe2f090..41df22c 100644 --- a/src/modules/frame/components/LeftMenu.tsx +++ b/src/modules/frame/components/LeftMenu.tsx @@ -13,7 +13,7 @@ import { useTranslation } from "react-i18next"; import { Namespaces } from "../../../i18n/i18n"; const LeftMenu: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [openMenuItem, setOpenMenuItem] = useState< { id: string; children: React.ReactNode } | undefined diff --git a/src/modules/frame/components/Logout.tsx b/src/modules/frame/components/Logout.tsx index 66c77bf..2b9d529 100644 --- a/src/modules/frame/components/Logout.tsx +++ b/src/modules/frame/components/Logout.tsx @@ -4,7 +4,7 @@ import { Namespaces } from "../../../i18n/i18n"; import authentication from "../services/authenticationService"; const Logout: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); useEffect(() => { authentication.logout(); diff --git a/src/modules/frame/components/NotFound.tsx b/src/modules/frame/components/NotFound.tsx index 02df1ea..e703e01 100644 --- a/src/modules/frame/components/NotFound.tsx +++ b/src/modules/frame/components/NotFound.tsx @@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next"; import { Namespaces } from "../../../i18n/i18n"; const NotFound: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); return

{t("NotFound")}

; }; diff --git a/src/modules/frame/components/TopMenu.tsx b/src/modules/frame/components/TopMenu.tsx index 4fe6836..cef84b8 100644 --- a/src/modules/frame/components/TopMenu.tsx +++ b/src/modules/frame/components/TopMenu.tsx @@ -19,7 +19,7 @@ export interface TopMenuProps { function TopMenu(props: TopMenuProps) { const user = getCurrentUser(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); return ( diff --git a/src/modules/homepage/HomePage.tsx b/src/modules/homepage/HomePage.tsx index 3f72e0c..82e30b5 100644 --- a/src/modules/homepage/HomePage.tsx +++ b/src/modules/homepage/HomePage.tsx @@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next"; import { Namespaces } from "../../i18n/i18n"; const HomePage: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const redirect = () => { window.location.href = "/organisations"; diff --git a/src/modules/manager/customfields/components/CustomFieldsTable.tsx b/src/modules/manager/customfields/components/CustomFieldsTable.tsx index a1e71fe..1047502 100644 --- a/src/modules/manager/customfields/components/CustomFieldsTable.tsx +++ b/src/modules/manager/customfields/components/CustomFieldsTable.tsx @@ -11,7 +11,7 @@ import { CustomField } from "../services/customFieldsService"; const CustomFieldsTable: React.FC> = ( props, ) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const columns: Column[] = [ { key: "name", label: t("Name"), order: "asc" }, diff --git a/src/modules/manager/customfields/customFieldDetails.tsx b/src/modules/manager/customfields/customFieldDetails.tsx index 166cac6..4aa4b0f 100644 --- a/src/modules/manager/customfields/customFieldDetails.tsx +++ b/src/modules/manager/customfields/customFieldDetails.tsx @@ -37,7 +37,7 @@ const CustomFieldDetails: React.FC = ({ editMode = false, }) => { const { customFieldId } = useParams<{ customFieldId: string }>(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const labelName = t("Name"); const labelFieldType = t("FieldType"); diff --git a/src/modules/manager/customfields/customFields.tsx b/src/modules/manager/customfields/customFields.tsx index b27eca6..e01d458 100644 --- a/src/modules/manager/customfields/customFields.tsx +++ b/src/modules/manager/customfields/customFields.tsx @@ -20,7 +20,7 @@ const initialPagedData: Paginated = { }; const CustomFields: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [loaded, setLoaded] = useState(false); const [pagedData, setPagedData] = useState>(initialPagedData); diff --git a/src/modules/manager/domains/Domains.tsx b/src/modules/manager/domains/Domains.tsx index e2cfa5a..867c9ce 100644 --- a/src/modules/manager/domains/Domains.tsx +++ b/src/modules/manager/domains/Domains.tsx @@ -18,7 +18,7 @@ const initialPagedData: Paginated = { }; const Domains: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [loaded, setLoaded] = useState(false); const [pagedData, setPagedData] = useState>(initialPagedData); diff --git a/src/modules/manager/domains/DomainsDetails.tsx b/src/modules/manager/domains/DomainsDetails.tsx index 96dccca..94f64a3 100644 --- a/src/modules/manager/domains/DomainsDetails.tsx +++ b/src/modules/manager/domains/DomainsDetails.tsx @@ -14,7 +14,7 @@ interface DomainsDetailsProps { } const DomainsDetails: React.FC = ({ isEditMode }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [searchParams] = useSearchParams(); const canViewMailTemplates = authentication.hasAccess("ViewDomain"); diff --git a/src/modules/manager/domains/components/AddUserToRole.tsx b/src/modules/manager/domains/components/AddUserToRole.tsx index 0408990..e8511ab 100644 --- a/src/modules/manager/domains/components/AddUserToRole.tsx +++ b/src/modules/manager/domains/components/AddUserToRole.tsx @@ -23,7 +23,7 @@ const AddUserToRole: React.FC = ({ isEditMode }) => { domainId: string; roleId: string; }>(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const labelUserId = t("User"); const labelApply = t("Save"); diff --git a/src/modules/manager/domains/components/EmailTemplateEditor.tsx b/src/modules/manager/domains/components/EmailTemplateEditor.tsx index 4712626..89741ea 100644 --- a/src/modules/manager/domains/components/EmailTemplateEditor.tsx +++ b/src/modules/manager/domains/components/EmailTemplateEditor.tsx @@ -24,7 +24,7 @@ const EmailTemplateEditor: React.FC = ({ domainId, currentMailType, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const paramsData = useParams<{ domainId: string }>(); const finalDomainId = domainId || paramsData.domainId; diff --git a/src/modules/manager/domains/components/GeneralTab.tsx b/src/modules/manager/domains/components/GeneralTab.tsx index 485b12e..5594196 100644 --- a/src/modules/manager/domains/components/GeneralTab.tsx +++ b/src/modules/manager/domains/components/GeneralTab.tsx @@ -22,7 +22,7 @@ interface GeneralTabProps { const GeneralTab: React.FC = ({ isEditMode }) => { const { domainId } = useParams<{ domainId: string }>(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const labelName = t("Name"); const labelSsoProvider = t("SsoProvider"); diff --git a/src/modules/manager/domains/components/RoleAccessEditor.tsx b/src/modules/manager/domains/components/RoleAccessEditor.tsx index d1b45c2..811ec7f 100644 --- a/src/modules/manager/domains/components/RoleAccessEditor.tsx +++ b/src/modules/manager/domains/components/RoleAccessEditor.tsx @@ -32,7 +32,7 @@ interface RoleAccessEditorProps { } const RoleAccessEditor: React.FC = ({ role }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [loaded, setLoaded] = useState(false); const [accessList, setAccessList] = useState>(initialAccessList); diff --git a/src/modules/manager/domains/components/RolesDetails.tsx b/src/modules/manager/domains/components/RolesDetails.tsx index b27b7d0..c8e73cb 100644 --- a/src/modules/manager/domains/components/RolesDetails.tsx +++ b/src/modules/manager/domains/components/RolesDetails.tsx @@ -24,7 +24,7 @@ const RolesDetails: React.FC = ({ isEditMode }) => { domainId: string; roleId: string; }>(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const labelName = t("Name"); const labelApply = t("Save"); diff --git a/src/modules/manager/domains/components/RolesEditor.tsx b/src/modules/manager/domains/components/RolesEditor.tsx index 02aa417..1277220 100644 --- a/src/modules/manager/domains/components/RolesEditor.tsx +++ b/src/modules/manager/domains/components/RolesEditor.tsx @@ -35,7 +35,7 @@ const RolesEditor: React.FC = ({ initialRoleId, hashSegment, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const hashRoleId = useHashSegment( hashSegment !== undefined ? hashSegment : -1, ); diff --git a/src/modules/manager/domains/components/RolesTable.tsx b/src/modules/manager/domains/components/RolesTable.tsx index d41c9c6..6e0b51e 100644 --- a/src/modules/manager/domains/components/RolesTable.tsx +++ b/src/modules/manager/domains/components/RolesTable.tsx @@ -9,7 +9,7 @@ import authentication from "../../../frame/services/authenticationService"; import { GetRoleResponse } from "../serrvices/rolesService"; const RolesTable: React.FC> = (props) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const columns: Column[] = [ { key: "name", label: t("Name"), order: "asc" }, diff --git a/src/modules/manager/domains/components/RollAccessTable.tsx b/src/modules/manager/domains/components/RollAccessTable.tsx index e4b63d4..e17d582 100644 --- a/src/modules/manager/domains/components/RollAccessTable.tsx +++ b/src/modules/manager/domains/components/RollAccessTable.tsx @@ -22,7 +22,7 @@ const RollAccessTable: React.FC = ({ onSort, data, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [deltaAdditions, setDeltaAdditions] = useState([]); const [deltaDeletions, setDeltaDeletions] = useState([]); diff --git a/src/modules/manager/domains/components/SecurityRolesTab.tsx b/src/modules/manager/domains/components/SecurityRolesTab.tsx index 0dab34f..2de84e1 100644 --- a/src/modules/manager/domains/components/SecurityRolesTab.tsx +++ b/src/modules/manager/domains/components/SecurityRolesTab.tsx @@ -18,7 +18,7 @@ const SecurityRolesTab: React.FC = ({ initialRoleId, initialInnerTab, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [selectedRole, setSelectedRole] = useState( undefined, ); diff --git a/src/modules/manager/domains/components/UserRoleEditor.tsx b/src/modules/manager/domains/components/UserRoleEditor.tsx index a9e5f20..4a7c196 100644 --- a/src/modules/manager/domains/components/UserRoleEditor.tsx +++ b/src/modules/manager/domains/components/UserRoleEditor.tsx @@ -23,7 +23,7 @@ interface UserRoleEditorProps { } const UserRoleEditor: React.FC = ({ role }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [loaded, setLoaded] = useState(false); const [pagedData, setPagedData] = useState>(initialPagedData); diff --git a/src/modules/manager/domains/components/UserRolesTable.tsx b/src/modules/manager/domains/components/UserRolesTable.tsx index 33f7685..044cc60 100644 --- a/src/modules/manager/domains/components/UserRolesTable.tsx +++ b/src/modules/manager/domains/components/UserRolesTable.tsx @@ -9,7 +9,7 @@ import authentication from "../../../frame/services/authenticationService"; import { RoleUser } from "../serrvices/rolesService"; const UserRolesTable: React.FC> = (props) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const columns: Column[] = [ { key: "displayName", label: t("Name"), order: "asc" }, diff --git a/src/modules/manager/domains/components/domainsTable.tsx b/src/modules/manager/domains/components/domainsTable.tsx index e15fe52..0748b48 100644 --- a/src/modules/manager/domains/components/domainsTable.tsx +++ b/src/modules/manager/domains/components/domainsTable.tsx @@ -9,7 +9,7 @@ import authentication from "../../../frame/services/authenticationService"; import { GetDomain } from "../serrvices/domainsService"; const DomainsTable: React.FC> = (props) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const columns: Column[] = [ { key: "name", label: t("Name"), order: "asc" }, diff --git a/src/modules/manager/forms/Forms.tsx b/src/modules/manager/forms/Forms.tsx index 5d3a32e..2f24793 100644 --- a/src/modules/manager/forms/Forms.tsx +++ b/src/modules/manager/forms/Forms.tsx @@ -10,7 +10,7 @@ import formsService, { GetFormResponse } from "./services/formsService"; import Loading from "../../../components/common/Loading"; const Forms: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [loaded, setLoaded] = useState(false); const [pagedData, setPagedData] = useState>({ diff --git a/src/modules/manager/forms/FormsDetails.tsx b/src/modules/manager/forms/FormsDetails.tsx index b1f50bd..3e8e3dd 100644 --- a/src/modules/manager/forms/FormsDetails.tsx +++ b/src/modules/manager/forms/FormsDetails.tsx @@ -20,7 +20,7 @@ const FormsDetails: React.FC<{ editMode?: boolean }> = ({ editMode = false, }) => { const { formId } = useParams<{ formId: string }>(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const labelName = t("Name"); const labelDefinition = t("Definition"); diff --git a/src/modules/manager/forms/components/formsTable.tsx b/src/modules/manager/forms/components/formsTable.tsx index b4bbb8f..fde18a2 100644 --- a/src/modules/manager/forms/components/formsTable.tsx +++ b/src/modules/manager/forms/components/formsTable.tsx @@ -16,7 +16,7 @@ const FormsTable: React.FC> = ({ onDelete, onSort, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const columns: Column[] = useMemo( () => [ diff --git a/src/modules/manager/glossary/GlossariesDetails.tsx b/src/modules/manager/glossary/GlossariesDetails.tsx index b0214c5..7e920a8 100644 --- a/src/modules/manager/glossary/GlossariesDetails.tsx +++ b/src/modules/manager/glossary/GlossariesDetails.tsx @@ -30,7 +30,7 @@ const GlossariesDetails: React.FC = ({ editMode = false, }) => { const { glossaryId } = useParams<{ glossaryId: string }>(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const labelName = t("Name"); const labelChildCustomFieldDefinition = t("CustomFieldForChildEntries"); diff --git a/src/modules/manager/glossary/Glossary.tsx b/src/modules/manager/glossary/Glossary.tsx index 605843e..1fc88f3 100644 --- a/src/modules/manager/glossary/Glossary.tsx +++ b/src/modules/manager/glossary/Glossary.tsx @@ -14,7 +14,7 @@ import Loading from "../../../components/common/Loading"; import Permission from "../../../components/common/Permission"; const Glossaries: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const { glossaryId } = useParams<{ glossaryId: string }>(); const [loaded, setLoaded] = useState(false); diff --git a/src/modules/manager/glossary/components/GlossariesTable.tsx b/src/modules/manager/glossary/components/GlossariesTable.tsx index 6c32546..6ec5753 100644 --- a/src/modules/manager/glossary/components/GlossariesTable.tsx +++ b/src/modules/manager/glossary/components/GlossariesTable.tsx @@ -23,7 +23,7 @@ const GlossariesTable: React.FC = ({ data, onDelete, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [columnsList, setColumnsList] = useState([]); diff --git a/src/modules/manager/organisations/Organisations.tsx b/src/modules/manager/organisations/Organisations.tsx index f266aef..f4fabd2 100644 --- a/src/modules/manager/organisations/Organisations.tsx +++ b/src/modules/manager/organisations/Organisations.tsx @@ -1,5 +1,7 @@ import { useCallback, useEffect, useState } from "react"; -import { useTranslation } from "react-i18next";import { Namespaces } from "../../../i18n/i18n";import Button, { ButtonType } from "../../../components/common/Button"; +import { useTranslation } from "react-i18next"; +import { Namespaces } from "../../../i18n/i18n"; +import Button, { ButtonType } from "../../../components/common/Button"; import Column from "../../../components/common/columns"; import Permission from "../../../components/common/Permission"; import { Paginated } from "../../../services/Paginated"; @@ -10,7 +12,7 @@ import organisationsService, { import Loading from "../../../components/common/Loading"; const Organisations: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [loaded, setLoaded] = useState(false); const [pagedData, setPagedData] = useState>({ page: 1, diff --git a/src/modules/manager/organisations/OrganisationsDetails.tsx b/src/modules/manager/organisations/OrganisationsDetails.tsx index ac4734b..ccff34e 100644 --- a/src/modules/manager/organisations/OrganisationsDetails.tsx +++ b/src/modules/manager/organisations/OrganisationsDetails.tsx @@ -21,7 +21,7 @@ const OrganisationsDetails: React.FC<{ editMode?: boolean }> = ({ editMode = false, }) => { const { organisationId } = useParams<{ organisationId: string }>(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const labelName = t("Name"); const labelAddress = t("Address"); diff --git a/src/modules/manager/organisations/components/OrganisationsTable.tsx b/src/modules/manager/organisations/components/OrganisationsTable.tsx index 804d2ea..f34edbd 100644 --- a/src/modules/manager/organisations/components/OrganisationsTable.tsx +++ b/src/modules/manager/organisations/components/OrganisationsTable.tsx @@ -16,7 +16,7 @@ const OrganisationsTable: React.FC> = ({ onDelete, onSort, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const canViewSite = authentication.hasAccess("ViewSite"); const columns: Column[] = useMemo( diff --git a/src/modules/manager/sequence/SequenceDetails.tsx b/src/modules/manager/sequence/SequenceDetails.tsx index 1b105bc..4530c58 100644 --- a/src/modules/manager/sequence/SequenceDetails.tsx +++ b/src/modules/manager/sequence/SequenceDetails.tsx @@ -26,7 +26,7 @@ const SequenceDetails: React.FC = ({ editMode = false, }) => { const { sequenceId } = useParams<{ sequenceId: string }>(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const labelName = t("Name"); const labelSeed = t("Seed"); diff --git a/src/modules/manager/sequence/components/squenceTable.tsx b/src/modules/manager/sequence/components/squenceTable.tsx index 8d2ad9d..4639f73 100644 --- a/src/modules/manager/sequence/components/squenceTable.tsx +++ b/src/modules/manager/sequence/components/squenceTable.tsx @@ -16,7 +16,7 @@ const SequenceTable: React.FC> = ({ onDelete, onSort, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const columns: Column[] = useMemo( () => [{ key: "name", label: t("Name"), order: "asc" }], diff --git a/src/modules/manager/sequence/sequence.tsx b/src/modules/manager/sequence/sequence.tsx index 0e9c1c0..69563e4 100644 --- a/src/modules/manager/sequence/sequence.tsx +++ b/src/modules/manager/sequence/sequence.tsx @@ -10,7 +10,7 @@ import Loading from "../../../components/common/Loading"; import Permission from "../../../components/common/Permission"; const Sequence: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [loaded, setLoaded] = useState(false); const [pagedData, setPagedData] = useState>({ page: 1, diff --git a/src/modules/manager/sites/SiteDetails.tsx b/src/modules/manager/sites/SiteDetails.tsx index a030ea9..3d81ed1 100644 --- a/src/modules/manager/sites/SiteDetails.tsx +++ b/src/modules/manager/sites/SiteDetails.tsx @@ -26,7 +26,7 @@ const SiteDetails: React.FC = ({ editMode = false }) => { organisationId: string; siteId?: string; }>(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const labelName = t("Name"); const labelAddress = t("Address"); diff --git a/src/modules/manager/sites/Sites.tsx b/src/modules/manager/sites/Sites.tsx index 4c29c2f..11542f9 100644 --- a/src/modules/manager/sites/Sites.tsx +++ b/src/modules/manager/sites/Sites.tsx @@ -19,7 +19,7 @@ const initialPagedData: Paginated = { }; const Sites: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const { organisationId } = useParams<{ organisationId: string }>(); const [loaded, setLoaded] = useState(false); diff --git a/src/modules/manager/sites/components/SitesTable.tsx b/src/modules/manager/sites/components/SitesTable.tsx index 9f94da6..6486f6c 100644 --- a/src/modules/manager/sites/components/SitesTable.tsx +++ b/src/modules/manager/sites/components/SitesTable.tsx @@ -17,7 +17,7 @@ const SitesTable: React.FC> = ({ onDelete, onSort, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const columns: Column[] = useMemo( () => [ diff --git a/src/modules/manager/specifications/Specifications.tsx b/src/modules/manager/specifications/Specifications.tsx index ad1b1d8..4ae313d 100644 --- a/src/modules/manager/specifications/Specifications.tsx +++ b/src/modules/manager/specifications/Specifications.tsx @@ -21,7 +21,7 @@ const initialPagedData: Paginated = { }; const Specifications: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const { siteId } = useParams<{ siteId: string }>(); const [loaded, setLoaded] = useState(false); diff --git a/src/modules/manager/specifications/SpecificationsDetails.tsx b/src/modules/manager/specifications/SpecificationsDetails.tsx index 518260c..7d558f5 100644 --- a/src/modules/manager/specifications/SpecificationsDetails.tsx +++ b/src/modules/manager/specifications/SpecificationsDetails.tsx @@ -35,7 +35,7 @@ const SpecificationsDetails: React.FC = ({ siteId: string; specificationId?: string; }>(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const TemplateFillerRef = useRef(null); const labelName = t("Name"); diff --git a/src/modules/manager/specifications/components/SpecificationsTable.tsx b/src/modules/manager/specifications/components/SpecificationsTable.tsx index cf7fe44..df076c2 100644 --- a/src/modules/manager/specifications/components/SpecificationsTable.tsx +++ b/src/modules/manager/specifications/components/SpecificationsTable.tsx @@ -16,7 +16,7 @@ const SpecificationsTable: React.FC> = ({ onDelete, onSort, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const columns: Column[] = useMemo( () => [{ key: "name", label: t("Name"), order: "asc" }], diff --git a/src/modules/manager/ssoManager/SsoProviderDetails.tsx b/src/modules/manager/ssoManager/SsoProviderDetails.tsx index 072e61a..66ee94b 100644 --- a/src/modules/manager/ssoManager/SsoProviderDetails.tsx +++ b/src/modules/manager/ssoManager/SsoProviderDetails.tsx @@ -24,7 +24,7 @@ const SsoProviderDetails: React.FC = ({ }) => { const { ssoProviderId } = useParams<{ ssoProviderId: string }>(); const location = useLocation(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const labelName = t("Name"); const labelClientId = t("ClientId"); diff --git a/src/modules/manager/ssoManager/components/ssoManagerTable.tsx b/src/modules/manager/ssoManager/components/ssoManagerTable.tsx index b522c1b..cdb5afd 100644 --- a/src/modules/manager/ssoManager/components/ssoManagerTable.tsx +++ b/src/modules/manager/ssoManager/components/ssoManagerTable.tsx @@ -16,7 +16,7 @@ const SsoManagerTable: React.FC> = ({ onDelete, onSort, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const columns: Column[] = useMemo( () => [{ key: "name", label: t("Name"), order: "asc" }], diff --git a/src/modules/manager/ssoManager/ssoManager.tsx b/src/modules/manager/ssoManager/ssoManager.tsx index 81d62a0..a635f9f 100644 --- a/src/modules/manager/ssoManager/ssoManager.tsx +++ b/src/modules/manager/ssoManager/ssoManager.tsx @@ -12,7 +12,7 @@ import Loading from "../../../components/common/Loading"; import Permission from "../../../components/common/Permission"; const SsoManager: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [loaded, setLoaded] = useState(false); const [pagedData, setPagedData] = useState>({ page: 1, diff --git a/src/modules/manager/users/UserDetails.tsx b/src/modules/manager/users/UserDetails.tsx index 0deaa29..8378cee 100644 --- a/src/modules/manager/users/UserDetails.tsx +++ b/src/modules/manager/users/UserDetails.tsx @@ -10,7 +10,7 @@ interface UserDetailsProps { } const UserDetails: React.FC = ({ editMode }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const heading = editMode ? t("EditUser") : t("AddUser"); diff --git a/src/modules/manager/users/components/GeneralTab.tsx b/src/modules/manager/users/components/GeneralTab.tsx index 99ac4e7..a090776 100644 --- a/src/modules/manager/users/components/GeneralTab.tsx +++ b/src/modules/manager/users/components/GeneralTab.tsx @@ -24,7 +24,7 @@ interface GeneralTabProps { const GeneralTab: React.FC = ({ isEditMode }) => { const { userId } = useParams<{ userId: string }>(); - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const labelFirstName = t("FirstName"); const labelMiddleNames = t("MiddleNames"); diff --git a/src/modules/manager/users/components/usersTable.tsx b/src/modules/manager/users/components/usersTable.tsx index 3b8ce50..6f0ea3f 100644 --- a/src/modules/manager/users/components/usersTable.tsx +++ b/src/modules/manager/users/components/usersTable.tsx @@ -24,7 +24,7 @@ const UsersTable: React.FC = ({ onSort, resendConfirmEmail, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const canResendConfirmMail = authentication.hasAccess("ResendConfirmMail"); const resendConfirmEmailHandler = useCallback( diff --git a/src/modules/manager/users/users.tsx b/src/modules/manager/users/users.tsx index 223509a..d56f331 100644 --- a/src/modules/manager/users/users.tsx +++ b/src/modules/manager/users/users.tsx @@ -11,7 +11,7 @@ import Loading from "../../../components/common/Loading"; import Permission from "../../../components/common/Permission"; const Users: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [loaded, setLoaded] = useState(false); const [pagedData, setPagedData] = useState>({ page: 1, diff --git a/src/modules/manager/workflowTemplates/WorkflowTemplateDetails.tsx b/src/modules/manager/workflowTemplates/WorkflowTemplateDetails.tsx index 4eef8a3..f8e189f 100644 --- a/src/modules/manager/workflowTemplates/WorkflowTemplateDetails.tsx +++ b/src/modules/manager/workflowTemplates/WorkflowTemplateDetails.tsx @@ -26,7 +26,7 @@ import TasksTab from "./components/TasksTab"; const WorkflowTemplateDetails: React.FC<{ editMode: boolean }> = ({ editMode, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const { userId } = useParams<{ userId: string }>(); const [activeTab, setActiveTab] = React.useState("general"); diff --git a/src/modules/manager/workflowTemplates/WorkflowTemplateManager.tsx b/src/modules/manager/workflowTemplates/WorkflowTemplateManager.tsx index 87e62aa..4578286 100644 --- a/src/modules/manager/workflowTemplates/WorkflowTemplateManager.tsx +++ b/src/modules/manager/workflowTemplates/WorkflowTemplateManager.tsx @@ -12,7 +12,7 @@ import workflowTemplatesService, { import WorkflowTemplateManagerTable from "./components/WorkflowTemplateTable"; const WotkflowTemplateManager: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const [loaded, setLoaded] = useState(false); const [pagedData, setPagedData] = useState>({ page: 1, diff --git a/src/modules/manager/workflowTemplates/components/AddTaskButton.tsx b/src/modules/manager/workflowTemplates/components/AddTaskButton.tsx index eaf94ae..dea0943 100644 --- a/src/modules/manager/workflowTemplates/components/AddTaskButton.tsx +++ b/src/modules/manager/workflowTemplates/components/AddTaskButton.tsx @@ -2,6 +2,8 @@ import React from "react"; import templateVersionsService, { TaskMetadata, } from "../services/WorkflowTemplateService"; +import { useTranslation } from "react-i18next"; +import { Namespaces } from "../../../../i18n/i18n"; interface AddTaskButtonProps { taskType: string; @@ -13,6 +15,9 @@ const AddTaskButton: React.FC = ({ taskType, onAdd }) => { const [items, setItems] = React.useState([]); const [loading, setLoading] = React.useState(false); + const { t } = useTranslation(Namespaces.Common); + const { t: tTaskType } = useTranslation(Namespaces.TaskTypes); + const toggle = async () => { const next = !open; setOpen(next); @@ -32,12 +37,12 @@ const AddTaskButton: React.FC = ({ taskType, onAdd }) => { return (
{open && (
- {loading &&
Loading…
} + {loading &&
{t("Loading")}
} {!loading && items.map((item) => ( @@ -49,7 +54,7 @@ const AddTaskButton: React.FC = ({ taskType, onAdd }) => { setOpen(false); }} > - {item.displayName} + {tTaskType(item.displayName)} ))}
diff --git a/src/modules/manager/workflowTemplates/components/GeneralTab.tsx b/src/modules/manager/workflowTemplates/components/GeneralTab.tsx index 3b2e87e..b575f77 100644 --- a/src/modules/manager/workflowTemplates/components/GeneralTab.tsx +++ b/src/modules/manager/workflowTemplates/components/GeneralTab.tsx @@ -24,7 +24,7 @@ const GeneralTab: React.FC = ({ onFieldChange, handleDomainPickerChange, }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); return (
diff --git a/src/modules/manager/workflowTemplates/components/WorkflowTemplateTable.tsx b/src/modules/manager/workflowTemplates/components/WorkflowTemplateTable.tsx index 1b883fc..94e447c 100644 --- a/src/modules/manager/workflowTemplates/components/WorkflowTemplateTable.tsx +++ b/src/modules/manager/workflowTemplates/components/WorkflowTemplateTable.tsx @@ -11,7 +11,7 @@ import { ReadWorkflowTemplate } from "../services/WorkflowTemplateService"; const WorkflowTemplateManagerTable: React.FC< PublishedTableProps > = ({ data, sortColumn, onChangePage, onSearch, onDelete, onSort }) => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); const canViewSite = authentication.hasAccess("ViewSite"); const columns: Column[] = useMemo( diff --git a/src/modules/profile/components/InternalProfile.tsx b/src/modules/profile/components/InternalProfile.tsx index 184a32f..f9e55db 100644 --- a/src/modules/profile/components/InternalProfile.tsx +++ b/src/modules/profile/components/InternalProfile.tsx @@ -17,7 +17,7 @@ import { } from "../../../components/common/formHelpers"; const InternalProfile: React.FC = () => { - const { t } = useTranslation(); + const { t } = useTranslation(Namespaces.Common); //Internal login version const labelFirstName = t("FirstName"); const labelMiddleNames = t("MiddleNames");