0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Update EmailRenderer.js

This commit is contained in:
Hannah Wolfe 2024-10-30 20:32:45 +00:00 committed by GitHub
parent fe9b01910d
commit 687b83ed39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,15 +12,18 @@ const {EmailAddressParser} = require('@tryghost/email-addresses');
const {registerHelpers} = require('./helpers/register-helpers'); const {registerHelpers} = require('./helpers/register-helpers');
const crypto = require('crypto'); const crypto = require('crypto');
// Wrapper function so that i18next-parser can find these strings
const t = (x) => return x;
const messages = { const messages = {
subscriptionStatus: { subscriptionStatus: {
free: '', free: t(''),
expired: 'Your subscription has expired.', expired: t('Your subscription has expired.'),
canceled: 'Your subscription has been canceled and will expire on {date}. You can resume your subscription via your account settings.', canceled: t('Your subscription has been canceled and will expire on {date}. You can resume your subscription via your account settings.'),
active: 'Your subscription will renew on {date}.', active: t('Your subscription will renew on {date}.'),
trial: 'Your free trial ends on {date}, at which time you will be charged the regular price. You can always cancel before then.', trial: t('Your free trial ends on {date}, at which time you will be charged the regular price. You can always cancel before then.'),
complimentaryExpires: 'Your subscription will expire on {date}.', complimentaryExpires: t('Your subscription will expire on {date}.'),
complimentaryInfinite: '' complimentaryInfinite: t('')
} }
}; };