0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed emojis from i18n strings

refs https://github.com/TryGhost/Ghost/issues/15502

- these aren't going to change across languages so we can exclude them
  from the strings to simplify things
This commit is contained in:
Daniel Lockyer 2023-03-16 20:40:58 +01:00 committed by Daniel Lockyer
parent 6760bc1bb0
commit dda1d7cf26
4 changed files with 16 additions and 16 deletions

View file

@ -59,16 +59,16 @@ function createApiInstance(config) {
const siteTitle = settingsCache.get('title');
switch (type) {
case 'subscribe':
return t(`📫 Confirm your subscription to {{siteTitle}}`, {siteTitle});
return `📫 ${t(`Confirm your subscription to {{siteTitle}}`, {siteTitle})}`;
case 'signup':
return t(`🙌 Complete your sign up to {{siteTitle}}!`, {siteTitle});
return `🙌 ${t(`Complete your sign up to {{siteTitle}}!`, {siteTitle})}`;
case 'signup-paid':
return t(`🙌 Thank you for signing up to {{siteTitle}}!`, {siteTitle});
return `🙌 ${t(`Thank you for signing up to {{siteTitle}}!`, {siteTitle})}`;
case 'updateEmail':
return t(`📫 Confirm your email update for {{siteTitle}}!`, {siteTitle});
return `📫 ${t(`Confirm your email update for {{siteTitle}}!`, {siteTitle})}`;
case 'signin':
default:
return t(`🔑 Secure sign in link for {{siteTitle}}`, {siteTitle});
return `🔑 ${t(`Secure sign in link for {{siteTitle}}`, {siteTitle})}`;
}
},
getText(url, type, email) {

View file

@ -4,7 +4,7 @@ module.exports = ({t, siteTitle, email, url, accentColor = '#15212A', siteDomain
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${t('🔑 Secure sign in link for {{siteTitle}}', {siteTitle})}</title>
<title>🔑 ${t('Secure sign in link for {{siteTitle}}', {siteTitle})}</title>
<style>
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES

View file

@ -1,19 +1,19 @@
{
"📫 Confirm your email update for {{siteTitle}}!": "",
"📫 Confirm your subscription to {{siteTitle}}": "",
"🔑 Secure sign in link for {{siteTitle}}": "",
"🙌 Complete your sign up to {{siteTitle}}!": "",
"🙌 Thank you for signing up to {{siteTitle}}!": "",
"All the best!": "",
"Complete your sign up to {{siteTitle}}!": "",
"Confirm your email update for {{siteTitle}}!": "",
"Confirm your subscription to {{siteTitle}}": "",
"For your security, the link will expire in 24 hours time.": "",
"Hey there,": "",
"If you did not make this request, you can safely ignore this email.": "",
"If you did not make this request, you can simply delete this message.": "",
"Please confirm your email address with this link:": "",
"Secure sign in link for {{siteTitle}}": "",
"See you soon!": "",
"Sent to {{email}}": "",
"Sign in to {{siteTitle}}": "",
"Tap the link below to complete the signup process for {{siteTitle}}, and be automatically signed in:": "",
"Thank you for signing up to {{siteTitle}}!": "",
"Thank you for subscribing to {{siteTitle}}!": "",
"Thank you for subscribing to {{siteTitle}}. Tap the link below to be automatically signed in:": "",
"This email address will not be used.": "",

View file

@ -1,19 +1,19 @@
{
"📫 Confirm your email update for {{siteTitle}}!": "",
"📫 Confirm your subscription to {{siteTitle}}": "",
"🔑 Secure sign in link for {{siteTitle}}": "",
"🙌 Complete your sign up to {{siteTitle}}!": "",
"🙌 Thank you for signing up to {{siteTitle}}!": "",
"All the best!": "",
"Complete your sign up to {{siteTitle}}!": "",
"Confirm your email update for {{siteTitle}}!": "",
"Confirm your subscription to {{siteTitle}}": "",
"For your security, the link will expire in 24 hours time.": "",
"Hey there,": "",
"If you did not make this request, you can safely ignore this email.": "",
"If you did not make this request, you can simply delete this message.": "",
"Please confirm your email address with this link:": "",
"Secure sign in link for {{siteTitle}}": "",
"See you soon!": "",
"Sent to {{email}}": "",
"Sign in to {{siteTitle}}": "",
"Tap the link below to complete the signup process for {{siteTitle}}, and be automatically signed in:": "",
"Thank you for signing up to {{siteTitle}}!": "",
"Thank you for subscribing to {{siteTitle}}!": "",
"Thank you for subscribing to {{siteTitle}}. Tap the link below to be automatically signed in:": "",
"This email address will not be used.": "",