From 2a3db78f97c217e537d4aa54ab2217e18bd6a82e Mon Sep 17 00:00:00 2001 From: johngruen Date: Tue, 24 Mar 2020 20:58:02 +0100 Subject: [PATCH] update promo to be for the vpn --- app/main.js | 3 ++- app/ui/body.js | 4 +++- app/ui/promo.js | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/main.js b/app/main.js index 2657746b..1519a122 100644 --- a/app/main.js +++ b/app/main.js @@ -59,7 +59,8 @@ if (process.env.NODE_ENV === 'production') { sentry: Sentry, user: new User(storage, LIMITS, window.AUTH_CONFIG), transfer: null, - fileInfo: null + fileInfo: null, + locale: locale() }; const app = routes(choo({ hash: true })); diff --git a/app/ui/body.js b/app/ui/body.js index ac4edcbf..c7b271de 100644 --- a/app/ui/body.js +++ b/app/ui/body.js @@ -8,7 +8,9 @@ function banner(state) { return; // server side } const show = - !state.capabilities.standalone && !state.route.startsWith('/unsupported/'); + !state.capabilities.standalone && + !state.route.startsWith('/unsupported/') && + state.locale === 'en-US'; if (show) { return state.cache(Promo, 'promo').render(); } diff --git a/app/ui/promo.js b/app/ui/promo.js index 659fcaf9..c2ff11bf 100644 --- a/app/ui/promo.js +++ b/app/ui/promo.js @@ -24,11 +24,11 @@ class Promo extends Component { alt="Firefox" /> - ${this.state.translate('trailheadPromo')}${' '} + ${`Like Firefox Send? You'll love our new full-device VPN. `} ${this.state.translate('learnMore')}${`Get it today`}