diff --git a/awx/ui_next/src/screens/Application/Application/Application.jsx b/awx/ui_next/src/screens/Application/Application/Application.jsx index dabce2167f..8e5fef66bb 100644 --- a/awx/ui_next/src/screens/Application/Application/Application.jsx +++ b/awx/ui_next/src/screens/Application/Application/Application.jsx @@ -89,9 +89,9 @@ function Application({ setBreadcrumb, i18n }) { {error.response?.status === 404 && ( - {i18n._(`Application not found.`)}{' '} + {i18n._(t`Application not found.`)}{' '} - {i18n._(`View all applications.`)} + {i18n._(t`View all applications.`)} )} diff --git a/awx/ui_next/src/screens/Credential/Credential.jsx b/awx/ui_next/src/screens/Credential/Credential.jsx index baa1e34e0f..e06dce231e 100644 --- a/awx/ui_next/src/screens/Credential/Credential.jsx +++ b/awx/ui_next/src/screens/Credential/Credential.jsx @@ -79,8 +79,10 @@ function Credential({ i18n, setBreadcrumb }) { {contentError.response && contentError.response.status === 404 && ( - {i18n._(`Credential not found.`)}{' '} - {i18n._(`View all Credentials.`)} + {i18n._(t`Credential not found.`)}{' '} + + {i18n._(t`View all Credentials.`)} + )} @@ -119,7 +121,7 @@ function Credential({ i18n, setBreadcrumb }) { {match.params.id && ( - {i18n._(`View Credential Details`)} + {i18n._(t`View Credential Details`)} )} @@ -131,7 +133,7 @@ function Credential({ i18n, setBreadcrumb }) { {id && ( - {i18n._(`View Credential Details`)} + {i18n._(t`View Credential Details`)} )} diff --git a/awx/ui_next/src/screens/Host/Host.jsx b/awx/ui_next/src/screens/Host/Host.jsx index 536ac4f65b..33832e71ee 100644 --- a/awx/ui_next/src/screens/Host/Host.jsx +++ b/awx/ui_next/src/screens/Host/Host.jsx @@ -94,8 +94,8 @@ function Host({ i18n, setBreadcrumb }) { {contentError?.response?.status === 404 && ( - {i18n._(`Host not found.`)}{' '} - {i18n._(`View all Hosts.`)} + {i18n._(t`Host not found.`)}{' '} + {i18n._(t`View all Hosts.`)} )} @@ -136,7 +136,7 @@ function Host({ i18n, setBreadcrumb }) { - {i18n._(`View Host Details`)} + {i18n._(t`View Host Details`)} diff --git a/awx/ui_next/src/screens/Inventory/Inventory.jsx b/awx/ui_next/src/screens/Inventory/Inventory.jsx index d31a3b96aa..b62ba6a11a 100644 --- a/awx/ui_next/src/screens/Inventory/Inventory.jsx +++ b/awx/ui_next/src/screens/Inventory/Inventory.jsx @@ -88,8 +88,10 @@ function Inventory({ i18n, setBreadcrumb }) { {contentError.response?.status === 404 && ( - {i18n._(`Inventory not found.`)}{' '} - {i18n._(`View all Inventories.`)} + {i18n._(t`Inventory not found.`)}{' '} + + {i18n._(t`View all Inventories.`)} + )} @@ -178,7 +180,7 @@ function Inventory({ i18n, setBreadcrumb }) { - {i18n._(`View Inventory Details`)} + {i18n._(t`View Inventory Details`)} )} diff --git a/awx/ui_next/src/screens/Inventory/InventoryHost/InventoryHost.jsx b/awx/ui_next/src/screens/Inventory/InventoryHost/InventoryHost.jsx index 33e7884a73..6888e32ef4 100644 --- a/awx/ui_next/src/screens/Inventory/InventoryHost/InventoryHost.jsx +++ b/awx/ui_next/src/screens/Inventory/InventoryHost/InventoryHost.jsx @@ -97,9 +97,9 @@ function InventoryHost({ i18n, setBreadcrumb, inventory }) { {contentError.response && contentError.response.status === 404 && ( - {i18n._(`Host not found.`)}{' '} + {i18n._(t`Host not found.`)}{' '} - {i18n._(`View all Inventory Hosts.`)} + {i18n._(t`View all Inventory Hosts.`)} )} @@ -159,7 +159,7 @@ function InventoryHost({ i18n, setBreadcrumb, inventory }) { - {i18n._(`View Inventory Host Details`)} + {i18n._(t`View Inventory Host Details`)} diff --git a/awx/ui_next/src/screens/Inventory/InventorySource/InventorySource.jsx b/awx/ui_next/src/screens/Inventory/InventorySource/InventorySource.jsx index 771401b7e4..7d5705347d 100644 --- a/awx/ui_next/src/screens/Inventory/InventorySource/InventorySource.jsx +++ b/awx/ui_next/src/screens/Inventory/InventorySource/InventorySource.jsx @@ -167,7 +167,7 @@ function InventorySource({ i18n, inventory, setBreadcrumb, me }) { - {i18n._(`View inventory source details`)} + {i18n._(t`View inventory source details`)} diff --git a/awx/ui_next/src/screens/Inventory/SmartInventory.jsx b/awx/ui_next/src/screens/Inventory/SmartInventory.jsx index f9c129c954..acb08661b6 100644 --- a/awx/ui_next/src/screens/Inventory/SmartInventory.jsx +++ b/awx/ui_next/src/screens/Inventory/SmartInventory.jsx @@ -93,8 +93,10 @@ function SmartInventory({ i18n, setBreadcrumb }) { {contentError?.response?.status === 404 && ( - {i18n._(`Smart Inventory not found.`)}{' '} - {i18n._(`View all Inventories.`)} + {i18n._(t`Smart Inventory not found.`)}{' '} + + {i18n._(t`View all Inventories.`)} + )} @@ -166,7 +168,7 @@ function SmartInventory({ i18n, setBreadcrumb }) { - {i18n._(`View Inventory Details`)} + {i18n._(t`View Inventory Details`)} )} diff --git a/awx/ui_next/src/screens/Job/Job.jsx b/awx/ui_next/src/screens/Job/Job.jsx index 924ebfebcc..bc95cfaf39 100644 --- a/awx/ui_next/src/screens/Job/Job.jsx +++ b/awx/ui_next/src/screens/Job/Job.jsx @@ -93,8 +93,8 @@ class Job extends Component { {contentError.response.status === 404 && ( - {i18n._(`The page you requested could not be found.`)}{' '} - {i18n._(`View all Jobs.`)} + {i18n._(t`The page you requested could not be found.`)}{' '} + {i18n._(t`View all Jobs.`)} )} @@ -149,7 +149,7 @@ class Job extends Component { - {i18n._(`View Job Details`)} + {i18n._(t`View Job Details`)} )} diff --git a/awx/ui_next/src/screens/Job/JobTypeRedirect.jsx b/awx/ui_next/src/screens/Job/JobTypeRedirect.jsx index 57f39730c4..2c4115ff5d 100644 --- a/awx/ui_next/src/screens/Job/JobTypeRedirect.jsx +++ b/awx/ui_next/src/screens/Job/JobTypeRedirect.jsx @@ -2,6 +2,8 @@ import React, { Component } from 'react'; import { Redirect, Link } from 'react-router-dom'; import { PageSection, Card } from '@patternfly/react-core'; import { withI18n } from '@lingui/react'; +import { t } from '@lingui/macro'; + import { UnifiedJobsAPI } from '../../api'; import ContentError from '../../components/ContentError'; import { JOB_TYPE_URL_SEGMENTS } from '../../constants'; @@ -57,7 +59,7 @@ class JobTypeRedirect extends Component { {error === NOT_FOUND ? ( - {i18n._(`View all Jobs`)} + {i18n._(t`View all Jobs`)} ) : ( diff --git a/awx/ui_next/src/screens/Organization/Organization.jsx b/awx/ui_next/src/screens/Organization/Organization.jsx index 248f5fc430..6e8cf87f1d 100644 --- a/awx/ui_next/src/screens/Organization/Organization.jsx +++ b/awx/ui_next/src/screens/Organization/Organization.jsx @@ -151,9 +151,9 @@ class Organization extends Component { {contentError.response.status === 404 && ( - {i18n._(`Organization not found.`)}{' '} + {i18n._(t`Organization not found.`)}{' '} - {i18n._(`View all Organizations.`)} + {i18n._(t`View all Organizations.`)} )} @@ -208,7 +208,7 @@ class Organization extends Component { {match.params.id && ( - {i18n._(`View Organization Details`)} + {i18n._(t`View Organization Details`)} )} diff --git a/awx/ui_next/src/screens/Project/Project.jsx b/awx/ui_next/src/screens/Project/Project.jsx index 3dae7a5a6c..ea4c3e2761 100644 --- a/awx/ui_next/src/screens/Project/Project.jsx +++ b/awx/ui_next/src/screens/Project/Project.jsx @@ -174,8 +174,8 @@ class Project extends Component { {contentError.response.status === 404 && ( - {i18n._(`Project not found.`)}{' '} - {i18n._(`View all Projects.`)} + {i18n._(t`Project not found.`)}{' '} + {i18n._(t`View all Projects.`)} )} @@ -233,7 +233,7 @@ class Project extends Component { {match.params.id && ( - {i18n._(`View Project Details`)} + {i18n._(t`View Project Details`)} )} diff --git a/awx/ui_next/src/screens/Team/Team.jsx b/awx/ui_next/src/screens/Team/Team.jsx index c3366af422..52203d3748 100644 --- a/awx/ui_next/src/screens/Team/Team.jsx +++ b/awx/ui_next/src/screens/Team/Team.jsx @@ -68,8 +68,8 @@ function Team({ i18n, setBreadcrumb }) { {contentError.response.status === 404 && ( - {i18n._(`Team not found.`)}{' '} - {i18n._(`View all Teams.`)} + {i18n._(t`Team not found.`)}{' '} + {i18n._(t`View all Teams.`)} )} @@ -109,7 +109,7 @@ function Team({ i18n, setBreadcrumb }) { {id && ( - {i18n._(`View Team Details`)} + {i18n._(t`View Team Details`)} )} diff --git a/awx/ui_next/src/screens/Template/Template.jsx b/awx/ui_next/src/screens/Template/Template.jsx index 5bd84e8383..2358fb109b 100644 --- a/awx/ui_next/src/screens/Template/Template.jsx +++ b/awx/ui_next/src/screens/Template/Template.jsx @@ -140,8 +140,8 @@ function Template({ i18n, me, setBreadcrumb }) { {contentError.response.status === 404 && ( - {i18n._(`Template not found.`)}{' '} - {i18n._(`View all Templates.`)} + {i18n._(t`Template not found.`)}{' '} + {i18n._(t`View all Templates.`)} )} @@ -224,7 +224,7 @@ function Template({ i18n, me, setBreadcrumb }) { - {i18n._(`View Template Details`)} + {i18n._(t`View Template Details`)} )} diff --git a/awx/ui_next/src/screens/Template/WorkflowJobTemplate.jsx b/awx/ui_next/src/screens/Template/WorkflowJobTemplate.jsx index 9706f89ae2..8f19ebb6d3 100644 --- a/awx/ui_next/src/screens/Template/WorkflowJobTemplate.jsx +++ b/awx/ui_next/src/screens/Template/WorkflowJobTemplate.jsx @@ -182,8 +182,8 @@ class WorkflowJobTemplate extends Component { {contentError.response.status === 404 && ( - {i18n._(`Template not found.`)}{' '} - {i18n._(`View all Templates.`)} + {i18n._(t`Template not found.`)}{' '} + {i18n._(t`View all Templates.`)} )} @@ -290,7 +290,7 @@ class WorkflowJobTemplate extends Component { - {i18n._(`View Template Details`)} + {i18n._(t`View Template Details`)} )} diff --git a/awx/ui_next/src/screens/User/User.jsx b/awx/ui_next/src/screens/User/User.jsx index 0ddf42f9fc..af60199e69 100644 --- a/awx/ui_next/src/screens/User/User.jsx +++ b/awx/ui_next/src/screens/User/User.jsx @@ -91,8 +91,8 @@ function User({ i18n, setBreadcrumb, me }) { {contentError.response && contentError.response.status === 404 && ( - {i18n._(`User not found.`)}{' '} - {i18n._(`View all Users.`)} + {i18n._(t`User not found.`)}{' '} + {i18n._(t`View all Users.`)} )} @@ -137,7 +137,7 @@ function User({ i18n, setBreadcrumb, me }) { {match.params.id && ( - {i18n._(`View User Details`)} + {i18n._(t`View User Details`)} )}