From f2277ded405eeb215bf0f76e4232b8500dd29910 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 24 May 2023 17:36:39 +0200 Subject: [PATCH] Updated member email strings to use i18n function refs https://github.com/TryGhost/Ghost/issues/16628 - this wraps nearly all of the public strings in member signup/signin emails, so they are ready for translating --- .../server/services/members/emails/signin.js | 10 +++++----- .../services/members/emails/signup-paid.js | 18 ++++++++--------- .../server/services/members/emails/signup.js | 20 +++++++++---------- .../services/members/emails/subscribe.js | 20 +++++++++---------- .../services/members/emails/update-email.js | 16 +++++++-------- ghost/i18n/locales/af/ghost.json | 10 +++++++++- ghost/i18n/locales/bg/ghost.json | 10 +++++++++- ghost/i18n/locales/ca/ghost.json | 10 +++++++++- ghost/i18n/locales/context.json | 7 +++++++ ghost/i18n/locales/cs/ghost.json | 10 +++++++++- ghost/i18n/locales/da/ghost.json | 10 +++++++++- ghost/i18n/locales/de/ghost.json | 10 +++++++++- ghost/i18n/locales/en/ghost.json | 10 +++++++++- ghost/i18n/locales/eo/ghost.json | 10 +++++++++- ghost/i18n/locales/es/ghost.json | 10 +++++++++- ghost/i18n/locales/fr/ghost.json | 10 +++++++++- ghost/i18n/locales/hu/ghost.json | 10 +++++++++- ghost/i18n/locales/id/ghost.json | 10 +++++++++- ghost/i18n/locales/it/ghost.json | 10 +++++++++- ghost/i18n/locales/ko/ghost.json | 10 +++++++++- ghost/i18n/locales/mn/ghost.json | 10 +++++++++- ghost/i18n/locales/nl/ghost.json | 10 +++++++++- ghost/i18n/locales/no/ghost.json | 10 +++++++++- ghost/i18n/locales/pl/ghost.json | 10 +++++++++- ghost/i18n/locales/pt-BR/ghost.json | 10 +++++++++- ghost/i18n/locales/pt/ghost.json | 10 +++++++++- ghost/i18n/locales/ro/ghost.json | 10 +++++++++- ghost/i18n/locales/ru/ghost.json | 10 +++++++++- ghost/i18n/locales/si/ghost.json | 10 +++++++++- ghost/i18n/locales/sl/ghost.json | 10 +++++++++- ghost/i18n/locales/sr/ghost.json | 10 +++++++++- ghost/i18n/locales/sv/ghost.json | 10 +++++++++- ghost/i18n/locales/tr/ghost.json | 10 +++++++++- ghost/i18n/locales/uk/ghost.json | 10 +++++++++- ghost/i18n/locales/uz/ghost.json | 10 +++++++++- ghost/i18n/locales/vi/ghost.json | 10 +++++++++- ghost/i18n/locales/zh/ghost.json | 10 +++++++++- 37 files changed, 328 insertions(+), 73 deletions(-) diff --git a/ghost/core/core/server/services/members/emails/signin.js b/ghost/core/core/server/services/members/emails/signin.js index cf249f8fcd..7940edec71 100644 --- a/ghost/core/core/server/services/members/emails/signin.js +++ b/ghost/core/core/server/services/members/emails/signin.js @@ -4,7 +4,7 @@ module.exports = ({t, siteTitle, email, url, accentColor = '#15212A', siteDomain - 🔑 ${t('Secure sign in link for {{siteTitle}}', {siteTitle})} + 🔑 ${t('Secure sign in link for {{siteTitle}}', {siteTitle, interpolation: {escapeValue: false}})}