Skip to content

Commit

Permalink
fix: link to specific mobile notifs helpcenter page
Browse files Browse the repository at this point in the history
  • Loading branch information
th0rgall committed Oct 10, 2023
1 parent d16e563 commit 0144d44
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/api/push-registrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export const isNotificationEligible = () =>
*/
export const handleNotificationEnableAttempt = async () => {
if (!isMobileDevice) {
window.open(get(t)('generics.helpcenter-url'), '_blank');
window.open(get(t)('push-notifications.prompt.helpcenter-url'), '_blank');
return true;
} else if (hasNotificationSupportNow()) {
// Actually try to enable notifications
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Notifications/IOSBrowserSteps.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
{@html $_('push-notifications.how-to.questions', {
values: {
guideLink: anchorText({
href: $_('generics.helpcenter-url'),
href: $_('push-notifications.prompt.helpcenter-url'),
linkText: $_('push-notifications.how-to.questions-link-text'),
class: 'link'
})
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,8 @@
"ios-installed-title": "Almost there!",
"btn-show-me": "Show me how",
"btn-turn-on": "Turn on notifications",
"follow-up-desktop": "Would yo like to receive <strong>mobile notifications</strong> for new chat messages?"
"follow-up-desktop": "Would yo like to receive <strong>mobile notifications</strong> for new chat messages?",
"helpcenter-url": "https://help.welcometomygarden.org/master/1.-mobile-notifications"
},
"how-to": {
"title": "How to turn on notifications",
Expand Down
3 changes: 2 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,8 @@
"btn-turn-on": "Activez les notifications",
"ios-installed": "<p>Il semble que vous ayez ajouté WTMG sur votre écran d’accueil, génial !</p><p>Vous pouvez maintenant activer les notifications mobiles.</p>",
"ios-installed-title": "Vous y êtes presque !",
"title": "Recevez une notification mobile lorsque vous recevez un message"
"title": "Recevez une notification mobile lorsque vous recevez un message",
"helpcenter-url": "https://aide.welcometomygarden.org/master/1.-notifications-mobiles"
}
}
}
3 changes: 2 additions & 1 deletion src/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,8 @@
"follow-up-desktop": "Wil je <strong>mobiele meldingen</strong> ontvangen voor nieuwe chatberichten?",
"ios-installed": "<p>Het lijkt erop dat je WTMG aan je startscherm hebt toegevoegd, leuk!</p><p>Nu kan je meldingen aanzetten.</p>",
"ios-installed-title": "Je bent er bijna!",
"title": "Krijg een mobiele melding wanneer je een bericht ontvangt"
"title": "Krijg een mobiele melding wanneer je een bericht ontvangt",
"helpcenter-url": "https://hulp.welcometomygarden.org/master/1.-mobiele-meldingen"
}
}
}

0 comments on commit 0144d44

Please sign in to comment.