|
@@ -1,5 +1,5 @@
|
|
|
import { DocumentTitle, ListPageHeader } from '@openshift-console/dynamic-plugin-sdk';
|
|
import { DocumentTitle, ListPageHeader } from '@openshift-console/dynamic-plugin-sdk';
|
|
|
-import { useTranslation } from 'react-i18next';
|
|
|
|
|
|
|
+import { Trans, useTranslation } from 'react-i18next';
|
|
|
import { Content, PageSection } from '@patternfly/react-core';
|
|
import { Content, PageSection } from '@patternfly/react-core';
|
|
|
import { CheckCircleIcon } from '@patternfly/react-icons';
|
|
import { CheckCircleIcon } from '@patternfly/react-icons';
|
|
|
import './example.css';
|
|
import './example.css';
|
|
@@ -9,8 +9,8 @@ export default function ExamplePage() {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
|
- <DocumentTitle>{t('Hello, Plugin!')}</DocumentTitle>
|
|
|
|
|
- <ListPageHeader title={t('Hello, Plugin!')} />
|
|
|
|
|
|
|
+ <DocumentTitle>{t('Hello, plugin!')}</DocumentTitle>
|
|
|
|
|
+ <ListPageHeader title={t('Hello, plugin!')} />
|
|
|
<PageSection>
|
|
<PageSection>
|
|
|
<Content component="p">
|
|
<Content component="p">
|
|
|
<span className="console-plugin-template__nice">
|
|
<span className="console-plugin-template__nice">
|
|
@@ -19,16 +19,19 @@ export default function ExamplePage() {
|
|
|
{t('Your plugin is working.')}
|
|
{t('Your plugin is working.')}
|
|
|
</Content>
|
|
</Content>
|
|
|
<Content component="p">
|
|
<Content component="p">
|
|
|
- {t(
|
|
|
|
|
- 'This is a custom page contributed by the console plugin template. The extension that adds the page is declared in console-extensions.json in the project root along with the corresponding nav item. Update console-extensions.json to change or add extensions. Code references in console-extensions.json must have a corresponding property',
|
|
|
|
|
- )}
|
|
|
|
|
- <code>{t('exposedModules')}</code>{' '}
|
|
|
|
|
- {t('in package.json mapping the reference to the module.')}
|
|
|
|
|
|
|
+ <Trans t={t}>
|
|
|
|
|
+ This is a custom page contributed by the console plugin template. The extension that
|
|
|
|
|
+ adds the page is declared in console-extensions.json in the project root along with the
|
|
|
|
|
+ corresponding nav item. Update console-extensions.json to change or add extensions. Code
|
|
|
|
|
+ references in console-extensions.json must have a corresponding property{' '}
|
|
|
|
|
+ <code>exposedModules</code> in package.json mapping the reference to the module.
|
|
|
|
|
+ </Trans>
|
|
|
</Content>
|
|
</Content>
|
|
|
<Content component="p">
|
|
<Content component="p">
|
|
|
- {t('After cloning this project, replace references to')}{' '}
|
|
|
|
|
- <code>{t('console-template-plugin')}</code>{' '}
|
|
|
|
|
- {t('and other plugin metadata in package.json with values for your plugin.')}
|
|
|
|
|
|
|
+ <Trans t={t}>
|
|
|
|
|
+ After cloning this project, replace references to <code>console-template-plugin</code>{' '}
|
|
|
|
|
+ and other plugin metadata in package.json with values for your plugin.
|
|
|
|
|
+ </Trans>
|
|
|
</Content>
|
|
</Content>
|
|
|
</PageSection>
|
|
</PageSection>
|
|
|
</>
|
|
</>
|