mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Fix improper i18n.translate usage
This commit is contained in:
parent
cc99fe8a8a
commit
0e2e7608c3
1 changed files with 4 additions and 8 deletions
|
@ -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}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue