Fix improper i18n.translate usage

This commit is contained in:
Chris Roberson 2019-01-16 09:16:14 -05:00
parent cc99fe8a8a
commit 0e2e7608c3

View file

@ -272,8 +272,7 @@ const licenseWarning = (scope, { title, text }) => {
const handleClickIncompatibleLicense = (scope, clusterName) => {
licenseWarning(scope, {
title: i18n.translate('xpack.monitoring.cluster.listing.incompatibleLicense.warningMessageTitle', {
defaultMessage: 'You can\'t view the {clusterName} cluster'
}, {
defaultMessage: 'You can\'t view the {clusterName} cluster',
values: { clusterName: '"' + clusterName + '"' }
}),
text: (
@ -285,8 +284,7 @@ const handleClickIncompatibleLicense = (scope, clusterName) => {
</p>
<p>
{i18n.translate('xpack.monitoring.cluster.listing.incompatibleLicense.infoMessage', {
defaultMessage: 'Need to monitor multiple clusters? {getLicenseInfoLink} to enjoy multi-cluster monitoring.'
}, {
defaultMessage: 'Need to monitor multiple clusters? {getLicenseInfoLink} to enjoy multi-cluster monitoring.',
values: {
getLicenseInfoLink: (
<a href="https://www.elastic.co/subscriptions/xpack" target="_blank">
@ -308,8 +306,7 @@ const handleClickInvalidLicense = (scope, clusterName) => {
licenseWarning(scope, {
title: i18n.translate('xpack.monitoring.cluster.listing.invalidLicense.warningMessageTitle', {
defaultMessage: 'You can\'t view the {clusterName} cluster'
}, {
defaultMessage: 'You can\'t view the {clusterName} cluster',
values: {
clusterName: '"' + clusterName + '"'
}
@ -323,8 +320,7 @@ const handleClickInvalidLicense = (scope, clusterName) => {
</p>
<p>
{i18n.translate('xpack.monitoring.cluster.listing.invalidLicense.infoMessage', {
defaultMessage: 'Need a license? {getBasicLicenseLink} or {getLicenseInfoLink} to enjoy multi-cluster monitoring.'
}, {
defaultMessage: 'Need a license? {getBasicLicenseLink} or {getLicenseInfoLink} to enjoy multi-cluster monitoring.',
values: {
getBasicLicenseLink: (
<a href={licensingPath}>