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:
parent
fe9b01910d
commit
687b83ed39
1 changed files with 10 additions and 7 deletions
|
@ -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('')
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue