Skip to content

Commit

Permalink
Fix improper i18n.translate usage
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Jan 16, 2019
1 parent cc99fe8 commit 0e2e760
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: (
Expand All @@ -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">
Expand All @@ -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 + '"'
}
Expand All @@ -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}>
Expand Down

0 comments on commit 0e2e760

Please sign in to comment.