Add Wizard buttons as internationalization

See: https://www.patternfly.org/v4/documentation/react/components/wizard#props

See: https://github.com/ansible/awx/issues/7170
This commit is contained in:
nixocio
2020-05-28 10:26:44 -04:00
parent 39b37817a1
commit 6cf195a27e
2 changed files with 5 additions and 0 deletions

View File

@@ -312,6 +312,8 @@ class AddResourceRole extends React.Component {
steps={steps} steps={steps}
title={wizardTitle} title={wizardTitle}
nextButtonText={currentStep.nextButtonText || undefined} nextButtonText={currentStep.nextButtonText || undefined}
backButtonText={i18n._(t`Back`)}
cancelButtonText={i18n._(t`Cancel`)}
/> />
); );
} }

View File

@@ -74,6 +74,9 @@ function LaunchPrompt({ config, resource, onLaunch, onCancel, i18n }) {
}} }}
title={i18n._(t`Prompts`)} title={i18n._(t`Prompts`)}
steps={steps} steps={steps}
backButtonText={i18n._(t`Back`)}
cancelButtonText={i18n._(t`Cancel`)}
nextButtonText={i18n._(t`Next`)}
/> />
)} )}
</Formik> </Formik>