mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-60809] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/admin_console/license_settings/trial_license_card/trial_license_card.tsx' with FormattedMessage (#28554)
* Change: Replace FormattedMarkdownMessage with FormattedMessage in trial_license_card.tsx Change: Update en.json * Change: Update message ids in trial_license_card --------- Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
parent
4f496eedb5
commit
bd1743192d
@ -9,7 +9,6 @@ import type {ClientLicense} from '@mattermost/types/config';
|
|||||||
|
|
||||||
import AlertBanner from 'components/alert_banner';
|
import AlertBanner from 'components/alert_banner';
|
||||||
import ContactUsButton from 'components/announcement_bar/contact_sales/contact_us';
|
import ContactUsButton from 'components/announcement_bar/contact_sales/contact_us';
|
||||||
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
|
|
||||||
|
|
||||||
import {daysToLicenseExpire} from 'utils/license_utils';
|
import {daysToLicenseExpire} from 'utils/license_utils';
|
||||||
import {getBrowserTimezone} from 'utils/timezone';
|
import {getBrowserTimezone} from 'utils/timezone';
|
||||||
@ -28,10 +27,11 @@ const TrialLicenseCard: React.FC<Props> = ({license}: Props) => {
|
|||||||
const messageBody = () => {
|
const messageBody = () => {
|
||||||
if (currentDate.toDateString() === endDate.toDateString()) {
|
if (currentDate.toDateString() === endDate.toDateString()) {
|
||||||
return (
|
return (
|
||||||
<FormattedMarkdownMessage
|
<FormattedMessage
|
||||||
id='admin.license.trialCard.description.expiringToday'
|
id='admin.license.trialLicenseCard.expiringToday'
|
||||||
defaultMessage='Your free trial expires **Today at {time}**. Visit our customer portal to purchase a license now to continue using Mattermost Professional and Enterprise features after trial ends'
|
defaultMessage='Your free trial expires <b>Today at {time}</b>. Visit our customer portal to purchase a license now to continue using Mattermost Professional and Enterprise features after trial ends'
|
||||||
values={{
|
values={{
|
||||||
|
b: (chunks: string) => <b>{chunks}</b>,
|
||||||
time: moment(endDate).endOf('day').format('h:mm a ') + moment().tz(getBrowserTimezone()).format('z'),
|
time: moment(endDate).endOf('day').format('h:mm a ') + moment().tz(getBrowserTimezone()).format('z'),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
@ -39,10 +39,11 @@ const TrialLicenseCard: React.FC<Props> = ({license}: Props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FormattedMarkdownMessage
|
<FormattedMessage
|
||||||
id='admin.license.trialCard.description'
|
id='admin.license.trialLicenseCard.expiringAfterFewDays'
|
||||||
defaultMessage='Your free trial will expire in **{daysCount} {daysCount, plural, one {day} other {days}}**. Visit our customer portal to purchase a license now to continue using Mattermost Professional and Enterprise features after trial ends.'
|
defaultMessage='Your free trial will expire in <b>{daysCount} {daysCount, plural, one {day} other {days}}</b>. Visit our customer portal to purchase a license now to continue using Mattermost Professional and Enterprise features after trial ends.'
|
||||||
values={{
|
values={{
|
||||||
|
b: (chunks: string) => <b>{chunks}</b>,
|
||||||
daysCount: daysToEndLicense,
|
daysCount: daysToEndLicense,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
@ -1403,10 +1403,10 @@
|
|||||||
"admin.license.trial-request.startTrial": "Start trial",
|
"admin.license.trial-request.startTrial": "Start trial",
|
||||||
"admin.license.trial-request.title": "Experience Mattermost Enterprise Edition for free for the next 30 days. No obligation to buy or credit card required. ",
|
"admin.license.trial-request.title": "Experience Mattermost Enterprise Edition for free for the next 30 days. No obligation to buy or credit card required. ",
|
||||||
"admin.license.trialCard.contactSales": "Contact sales",
|
"admin.license.trialCard.contactSales": "Contact sales",
|
||||||
"admin.license.trialCard.description": "Your free trial will expire in **{daysCount} {daysCount, plural, one {day} other {days}}**. Visit our customer portal to purchase a license now to continue using Mattermost Professional and Enterprise features after trial ends.",
|
|
||||||
"admin.license.trialCard.description.expiringToday": "Your free trial expires **Today at {time}**. Visit our customer portal to purchase a license now to continue using Mattermost Professional and Enterprise features after trial ends",
|
|
||||||
"admin.license.trialCard.licenseExpiring": "You’re currently on a free trial of our Mattermost Enterprise license.",
|
"admin.license.trialCard.licenseExpiring": "You’re currently on a free trial of our Mattermost Enterprise license.",
|
||||||
"admin.license.trialCard.purchase_license": "Purchase a license",
|
"admin.license.trialCard.purchase_license": "Purchase a license",
|
||||||
|
"admin.license.trialLicenseCard.expiringAfterFewDays": "Your free trial will expire in <b>{daysCount} {daysCount, plural, one {day} other {days}}</b>. Visit our customer portal to purchase a license now to continue using Mattermost Professional and Enterprise features after trial ends.",
|
||||||
|
"admin.license.trialLicenseCard.expiringToday": "Your free trial expires <b>Today at {time}</b>. Visit our customer portal to purchase a license now to continue using Mattermost Professional and Enterprise features after trial ends",
|
||||||
"admin.license.trialUpgradeAndRequest.submit": "Upgrade Server And Start trial",
|
"admin.license.trialUpgradeAndRequest.submit": "Upgrade Server And Start trial",
|
||||||
"admin.license.upgrade-and-trial-request.accept-terms-final-part": "Also, I agree to the terms of the Mattermost {eeModalTerms}. Upgrading will download the binary and update your Team Edition instance.",
|
"admin.license.upgrade-and-trial-request.accept-terms-final-part": "Also, I agree to the terms of the Mattermost {eeModalTerms}. Upgrading will download the binary and update your Team Edition instance.",
|
||||||
"admin.license.upgrade-and-trial-request.accept-terms-initial-part": "By selecting <strong>Upgrade Server And Start trial</strong>, I agree to the <linkEvaluation>Mattermost Software Evaluation Agreement</linkEvaluation>, <linkPrivacy>Privacy Policy</linkPrivacy>, and receiving product emails. ",
|
"admin.license.upgrade-and-trial-request.accept-terms-initial-part": "By selecting <strong>Upgrade Server And Start trial</strong>, I agree to the <linkEvaluation>Mattermost Software Evaluation Agreement</linkEvaluation>, <linkPrivacy>Privacy Policy</linkPrivacy>, and receiving product emails. ",
|
||||||
|
Loading…
Reference in New Issue
Block a user