Skip to content

Commit 7342634

Browse files
authored
Add Subscription NextSteps card to NTP (#2019)
* feat: Add Subscription NextSteps card variant * docs: Improve the params docs, add subscription next steps card * chore: update copy * fix:translations * lang: add translations
1 parent 134fb07 commit 7342634

File tree

15 files changed

+196
-12
lines changed

15 files changed

+196
-12
lines changed

special-pages/pages/new-tab/app/next-steps/nextsteps.data.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ export const variants = {
6060
summary: t('nextSteps_pinAppToTaskbarWindows_summary'),
6161
actionText: t('nextSteps_pinAppToTaskbarWindows_actionText'),
6262
}),
63+
/** @param {(translationId: keyof enStrings) => string} t */
64+
subscription: (t) => ({
65+
id: 'subscription',
66+
icon: 'Subscription',
67+
title: t('nextSteps_subscription_title'),
68+
summary: t('nextSteps_subscription_summary'),
69+
actionText: t('nextSteps_subscription_actionText'),
70+
}),
6371
};
6472

6573
export const otherText = {

special-pages/pages/new-tab/app/next-steps/strings.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,17 @@
9494
"nextSteps_pinAppToTaskbarWindows_confirmationText": {
9595
"title": "Pinned to Taskbar!",
9696
"note": "Button text after clicking on the Next Steps card for adding DDG app to OS dock"
97+
},
98+
"nextSteps_subscription_title": {
99+
"title": "Unlock Your Free Trial",
100+
"note": "Title of the Next Steps card for unlocking your free trial of DuckDuckGo subscription"
101+
},
102+
"nextSteps_subscription_summary": {
103+
"title": "Try our subscription featuring a VPN + 3 more premium features.",
104+
"note": "Summary of the Next Steps card about the DuckDuckGo subscription"
105+
},
106+
"nextSteps_subscription_actionText": {
107+
"title": "Try Free for 7 Days",
108+
"note": "Button text of the Next Steps card for trying the DuckDuckGo subscription"
97109
}
98110
}

special-pages/pages/new-tab/messages/types/next-steps.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"emailProtection",
3131
"duckplayer",
3232
"addAppToDockMac",
33-
"pinAppToTaskbarWindows"
33+
"pinAppToTaskbarWindows",
34+
"subscription"
3435
]
3536
}
3637
}
@@ -39,4 +40,4 @@
3940
]
4041
}
4142
}
42-
}
43+
}
Lines changed: 40 additions & 0 deletions
Loading

special-pages/pages/new-tab/public/locales/de/new-tab.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,18 @@
296296
"title" : "An die Taskleiste angeheftet!",
297297
"note" : "Button text after clicking on the Next Steps card for adding DDG app to OS dock"
298298
},
299+
"nextSteps_subscription_title" : {
300+
"title" : "Schalte deine kostenlose Testversion frei",
301+
"note" : "Title of the Next Steps card for unlocking your free trial of DuckDuckGo subscription"
302+
},
303+
"nextSteps_subscription_summary" : {
304+
"title" : "Teste unser Abonnement mit VPN + 3 weiteren Premium-Funktionen.",
305+
"note" : "Summary of the Next Steps card about the DuckDuckGo subscription"
306+
},
307+
"nextSteps_subscription_actionText" : {
308+
"title" : "7 Tage lang kostenlos testen",
309+
"note" : "Button text of the Next Steps card for trying the DuckDuckGo subscription"
310+
},
299311
"favorites_show_less" : {
300312
"title" : "Weniger anzeigen",
301313
"note" : "Button label to display fewer items"

special-pages/pages/new-tab/public/locales/en/new-tab.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,18 @@
297297
"title": "Pinned to Taskbar!",
298298
"note": "Button text after clicking on the Next Steps card for adding DDG app to OS dock"
299299
},
300+
"nextSteps_subscription_title": {
301+
"title": "Unlock Your Free Trial",
302+
"note": "Title of the Next Steps card for unlocking your free trial of DuckDuckGo subscription"
303+
},
304+
"nextSteps_subscription_summary": {
305+
"title": "Try our subscription featuring a VPN + 3 more premium features.",
306+
"note": "Summary of the Next Steps card about the DuckDuckGo subscription"
307+
},
308+
"nextSteps_subscription_actionText": {
309+
"title": "Try Free for 7 Days",
310+
"note": "Button text of the Next Steps card for trying the DuckDuckGo subscription"
311+
},
300312
"favorites_show_less": {
301313
"title": "Show less",
302314
"note": "Button label to display fewer items"

special-pages/pages/new-tab/public/locales/es/new-tab.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,18 @@
296296
"title" : "¡Anclada a tu barra de tareas!",
297297
"note" : "Button text after clicking on the Next Steps card for adding DDG app to OS dock"
298298
},
299+
"nextSteps_subscription_title" : {
300+
"title" : "Accede a tu prueba gratuita",
301+
"note" : "Title of the Next Steps card for unlocking your free trial of DuckDuckGo subscription"
302+
},
303+
"nextSteps_subscription_summary" : {
304+
"title" : "Prueba nuestra suscripción con una VPN y 3 funciones prémium adicionales.",
305+
"note" : "Summary of the Next Steps card about the DuckDuckGo subscription"
306+
},
307+
"nextSteps_subscription_actionText" : {
308+
"title" : "Prueba gratuita durante 7 días",
309+
"note" : "Button text of the Next Steps card for trying the DuckDuckGo subscription"
310+
},
299311
"favorites_show_less" : {
300312
"title" : "Mostrar menos",
301313
"note" : "Button label to display fewer items"

special-pages/pages/new-tab/public/locales/fr/new-tab.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,18 @@
296296
"title" : "Épinglée à la barre des tâches !",
297297
"note" : "Button text after clicking on the Next Steps card for adding DDG app to OS dock"
298298
},
299+
"nextSteps_subscription_title" : {
300+
"title" : "Accédez à votre essai gratuit",
301+
"note" : "Title of the Next Steps card for unlocking your free trial of DuckDuckGo subscription"
302+
},
303+
"nextSteps_subscription_summary" : {
304+
"title" : "Essayez notre abonnement comprenant un VPN + 3 fonctionnalités premium supplémentaires.",
305+
"note" : "Summary of the Next Steps card about the DuckDuckGo subscription"
306+
},
307+
"nextSteps_subscription_actionText" : {
308+
"title" : "Essayez gratuitement pendant 7 jours",
309+
"note" : "Button text of the Next Steps card for trying the DuckDuckGo subscription"
310+
},
299311
"favorites_show_less" : {
300312
"title" : "Réduire",
301313
"note" : "Button label to display fewer items"

special-pages/pages/new-tab/public/locales/it/new-tab.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,18 @@
296296
"title" : "Aggiunto alla barra delle applicazioni!",
297297
"note" : "Button text after clicking on the Next Steps card for adding DDG app to OS dock"
298298
},
299+
"nextSteps_subscription_title" : {
300+
"title" : "Sblocca la tua prova gratuita",
301+
"note" : "Title of the Next Steps card for unlocking your free trial of DuckDuckGo subscription"
302+
},
303+
"nextSteps_subscription_summary" : {
304+
"title" : "Prova il nostro abbonamento con una VPN + altre 3 funzionalità premium.",
305+
"note" : "Summary of the Next Steps card about the DuckDuckGo subscription"
306+
},
307+
"nextSteps_subscription_actionText" : {
308+
"title" : "Prova gratis per 7 giorni",
309+
"note" : "Button text of the Next Steps card for trying the DuckDuckGo subscription"
310+
},
299311
"favorites_show_less" : {
300312
"title" : "Mostra meno",
301313
"note" : "Button label to display fewer items"

special-pages/pages/new-tab/public/locales/nl/new-tab.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,18 @@
296296
"title" : "Vastgemaakt aan de taakbalk!",
297297
"note" : "Button text after clicking on the Next Steps card for adding DDG app to OS dock"
298298
},
299+
"nextSteps_subscription_title" : {
300+
"title" : "Ontgrendel je gratis proefperiode",
301+
"note" : "Title of the Next Steps card for unlocking your free trial of DuckDuckGo subscription"
302+
},
303+
"nextSteps_subscription_summary" : {
304+
"title" : "Probeer ons abonnement met een VPN en nog drie extra premiumfuncties.",
305+
"note" : "Summary of the Next Steps card about the DuckDuckGo subscription"
306+
},
307+
"nextSteps_subscription_actionText" : {
308+
"title" : "Probeer 7 dagen gratis",
309+
"note" : "Button text of the Next Steps card for trying the DuckDuckGo subscription"
310+
},
299311
"favorites_show_less" : {
300312
"title" : "Minder weergeven",
301313
"note" : "Button label to display fewer items"

0 commit comments

Comments
 (0)