From e792df4b0cd6010d6e8643b669a471e49bddc2c3 Mon Sep 17 00:00:00 2001 From: Thor Galle Date: Wed, 11 Oct 2023 13:38:43 +0300 Subject: [PATCH] copy: updated notification copy --- .../Notifications/IOSBrowserSteps.svelte | 15 ++++--- .../NotificationSetupGuideModal.svelte | 30 ++++++++------ src/lib/util/translation-helpers.ts | 7 ++++ src/locales/en.json | 34 ++++++++-------- src/locales/fr.json | 40 ++++++++++--------- src/locales/nl.json | 38 +++++++++--------- src/routes/account/NotificationSection.svelte | 14 ++++--- 7 files changed, 103 insertions(+), 75 deletions(-) diff --git a/src/lib/components/Notifications/IOSBrowserSteps.svelte b/src/lib/components/Notifications/IOSBrowserSteps.svelte index 26a90940..7f8842ac 100644 --- a/src/lib/components/Notifications/IOSBrowserSteps.svelte +++ b/src/lib/components/Notifications/IOSBrowserSteps.svelte @@ -21,10 +21,10 @@ }); -
    +
    1. {$_('push-notifications.how-to.ios-browser-steps.1')} -

      +

        {@html $_(`push-notifications.how-to.ios-browser-steps.1-${lowerCaseBrowserName}`, { values: { burgerIcon: ClientIcon(burgerIcon), @@ -33,7 +33,7 @@ plusSquareIcon: ClientIcon(plusSquareIcon) } })} -

        +
    2. {$_('push-notifications.how-to.ios-browser-steps.2')}
    3. {$_('push-notifications.how-to.ios-browser-steps.3')}
    4. @@ -51,18 +51,23 @@

      diff --git a/src/lib/components/Notifications/NotificationSetupGuideModal.svelte b/src/lib/components/Notifications/NotificationSetupGuideModal.svelte index 58576896..9c2f43b1 100644 --- a/src/lib/components/Notifications/NotificationSetupGuideModal.svelte +++ b/src/lib/components/Notifications/NotificationSetupGuideModal.svelte @@ -31,18 +31,24 @@ {:else if isUpgradeable16IDevice}
      - {@html $_('push-notifications.how-to.ios-upgrade.copy', { - values: { - os: iDeviceInfo?.currentAppleOS, - link: $_('push-notifications.how-to.ios-upgrade.help-link'), - accountSettings: anchorText({ - href: routes.ACCOUNT, - linkText: $_('push-notifications.how-to.ios-upgrade.account-settings'), - newtab: false, - class: 'link' - }) - } - })} +

      + {@html $_('push-notifications.how-to.ios-upgrade.copy', { + values: { + os: iDeviceInfo?.currentAppleOS, + link: anchorText({ + href: $_('push-notifications.how-to.ios-upgrade.help-link'), + linkText: $_('push-notifications.how-to.ios-upgrade.help-link-copy'), + class: 'link' + }), + accountSettings: anchorText({ + href: routes.ACCOUNT, + linkText: $_('push-notifications.how-to.ios-upgrade.account-settings'), + newtab: false, + class: 'link' + }) + } + })} +