mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-25 01:11:48 -05:00
update awx-pf to use withI18n i18n._ and t exclusively
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import { Trans } from '@lingui/macro';
|
||||
import { withI18n } from '@lingui/react';
|
||||
import { t } from '@lingui/macro';
|
||||
import {
|
||||
PageSection,
|
||||
PageSectionVariants,
|
||||
@@ -8,13 +9,14 @@ import {
|
||||
|
||||
class InventoryScripts extends Component {
|
||||
render () {
|
||||
const { i18n } = this.props;
|
||||
const { light, medium } = PageSectionVariants;
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
<PageSection variant={light} className="pf-m-condensed">
|
||||
<Title size="2xl">
|
||||
<Trans>Inventory Scripts</Trans>
|
||||
{i18n._(t`Inventory Scripts`)}
|
||||
</Title>
|
||||
</PageSection>
|
||||
<PageSection variant={medium} />
|
||||
@@ -23,4 +25,4 @@ class InventoryScripts extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default InventoryScripts;
|
||||
export default withI18n()(InventoryScripts);
|
||||
|
||||
Reference in New Issue
Block a user