Skip to content

Commit 1314980

Browse files
authored
Merge pull request Expensify#85452 from software-mansion-labs/@adamgrzybowski/free-trial-home-slot
[Home Page] Free trials section
2 parents 1d6d550 + c2c4a22 commit 1314980

31 files changed

Lines changed: 880 additions & 527 deletions

src/languages/de.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -960,15 +960,6 @@ const translations: TranslationDeepObject<typeof en> = {
960960
forYou: 'Für dich',
961961
timeSensitiveSection: {
962962
title: 'Zeitkritisch',
963-
cta: 'Antrag',
964-
offer50off: {
965-
title: 'Sparen Sie 50 % im ersten Jahr!',
966-
subtitle: ({formattedTime}: {formattedTime: string}) => `${formattedTime} verbleibend`,
967-
},
968-
offer25off: {
969-
title: 'Erhalte 25 % Rabatt auf dein erstes Jahr!',
970-
subtitle: ({days}: {days: number}) => `${days} ${days === 1 ? 'Tag' : 'Tage'} verbleibend`,
971-
},
972963
addShippingAddress: {title: 'Wir benötigen deine Versandadresse', subtitle: 'Geben Sie eine Adresse an, um Ihre Expensify Karte zu erhalten.', cta: 'Adresse hinzufügen'},
973964
addPaymentCard: {title: 'Fügen Sie eine Zahlungskarte hinzu, um Expensify weiter zu nutzen', subtitle: 'Konto > Abonnement', cta: 'Hinzufügen'},
974965
activateCard: {title: 'Aktivieren Sie Ihre Expensify Karte', subtitle: 'Validieren Sie Ihre Karte und beginnen Sie mit dem Ausgeben.', cta: 'Aktivieren'},
@@ -1056,6 +1047,19 @@ const translations: TranslationDeepObject<typeof en> = {
10561047
inDays: () => ({one: 'In 1 Tag', other: (count: number) => `In ${count} Tagen`}),
10571048
today: 'Heute',
10581049
},
1050+
freeTrialSection: {
1051+
title: ({days}: {days: number}) => `Kostenlose Testversion: Noch ${days} ${days === 1 ? 'Tag' : 'Tage'}!`,
1052+
offer50Body: 'Sparen Sie 50 % im ersten Jahr!',
1053+
offer25Body: 'Erhalten Sie 25 % Rabatt auf Ihr erstes Jahr!',
1054+
addCardBody: 'Warten Sie nicht! Fügen Sie jetzt Ihre Zahlungskarte hinzu.',
1055+
ctaClaim: 'Anspruch',
1056+
ctaAdd: 'Karte hinzufügen',
1057+
timeRemaining: ({formattedTime}: {formattedTime: string}) => `Verbleibende Zeit: ${formattedTime}`,
1058+
timeRemainingDays: () => ({
1059+
one: 'Verbleibende Zeit: 1 Tag',
1060+
other: (pluralCount: number) => `Verbleibende Zeit: ${pluralCount} Tage`,
1061+
}),
1062+
},
10591063
},
10601064
allSettingsScreen: {
10611065
subscription: 'Abonnement',

src/languages/en.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -988,16 +988,7 @@ const translations = {
988988
forYou: 'For you',
989989
timeSensitiveSection: {
990990
title: 'Time sensitive',
991-
cta: 'Claim',
992991
ctaFix: 'Fix',
993-
offer50off: {
994-
title: 'Get 50% off your first year!',
995-
subtitle: ({formattedTime}: {formattedTime: string}) => `${formattedTime} remaining`,
996-
},
997-
offer25off: {
998-
title: 'Get 25% off your first year!',
999-
subtitle: ({days}: {days: number}) => `${days} ${days === 1 ? 'day' : 'days'} remaining`,
1000-
},
1001992
fixCompanyCardConnection: {
1002993
title: ({feedName}: {feedName: string}) => (feedName ? `Fix ${feedName} company card connection` : 'Fix company card connection'),
1003994
defaultSubtitle: 'Workspace',
@@ -1043,6 +1034,19 @@ const translations = {
10431034
subtitle: 'Subscription',
10441035
},
10451036
},
1037+
freeTrialSection: {
1038+
title: ({days}: {days: number}) => `Free trial: ${days} ${days === 1 ? 'day' : 'days'} left!`,
1039+
offer50Body: 'Get 50% off your first year!',
1040+
offer25Body: 'Get 25% off your first year!',
1041+
addCardBody: "Don't wait! Add your payment card now.",
1042+
ctaClaim: 'Claim',
1043+
ctaAdd: 'Add card',
1044+
timeRemaining: ({formattedTime}: {formattedTime: string}) => `Time remaining: ${formattedTime}`,
1045+
timeRemainingDays: () => ({
1046+
one: 'Time remaining: 1 day',
1047+
other: (pluralCount: number) => `Time remaining: ${pluralCount} days`,
1048+
}),
1049+
},
10461050
assignedCards: 'Your Expensify Cards',
10471051
assignedCardsRemaining: ({amount}: {amount: string}) => `${amount} remaining`,
10481052
announcements: 'Announcements',

src/languages/es.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -857,16 +857,7 @@ const translations: TranslationDeepObject<typeof en> = {
857857
forYou: 'Para ti',
858858
timeSensitiveSection: {
859859
title: 'Requiere atención inmediata',
860-
cta: 'Reclamar',
861860
ctaFix: 'Corrige',
862-
offer50off: {
863-
title: '¡Obtén 50% de descuento en tu primer año!',
864-
subtitle: ({formattedTime}: {formattedTime: string}) => `${formattedTime} restantes`,
865-
},
866-
offer25off: {
867-
title: '¡Obtén 25% de descuento en tu primer año!',
868-
subtitle: ({days}: {days: number}) => `${days} ${days === 1 ? 'día' : 'días'} restantes`,
869-
},
870861
fixCompanyCardConnection: {
871862
title: ({feedName}: {feedName: string}) => (feedName ? `Reconectar la tarjeta corporativa de ${feedName}` : 'Reconectar la tarjeta corporativa'),
872863
defaultSubtitle: 'Espacio de trabajo',
@@ -912,6 +903,19 @@ const translations: TranslationDeepObject<typeof en> = {
912903
subtitle: 'Suscripción',
913904
},
914905
},
906+
freeTrialSection: {
907+
title: ({days}: {days: number}) => `Prueba gratuita: ${days} ${days === 1 ? 'día' : 'días'} restantes!`,
908+
offer50Body: '¡Obtén 50% de descuento en tu primer año!',
909+
offer25Body: '¡Obtén 25% de descuento en tu primer año!',
910+
addCardBody: '¡No esperes! Añade tu tarjeta de pago ahora.',
911+
ctaClaim: 'Reclamar',
912+
ctaAdd: 'Añadir tarjeta',
913+
timeRemaining: ({formattedTime}: {formattedTime: string}) => `Tiempo restante: ${formattedTime}`,
914+
timeRemainingDays: () => ({
915+
one: 'Tiempo restante: 1 día',
916+
other: (pluralCount: number) => `Tiempo restante: ${pluralCount} días`,
917+
}),
918+
},
915919
assignedCards: 'Tus tarjetas Expensify',
916920
assignedCardsRemaining: ({amount}: {amount: string}) => `${amount} restantes`,
917921
announcements: 'Anuncios',

src/languages/fr.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -963,15 +963,6 @@ const translations: TranslationDeepObject<typeof en> = {
963963
forYou: 'Pour vous',
964964
timeSensitiveSection: {
965965
title: 'Urgent',
966-
cta: 'Réclamer',
967-
offer50off: {
968-
title: 'Bénéficiez de 50 % de réduction sur votre première année !',
969-
subtitle: ({formattedTime}: {formattedTime: string}) => `${formattedTime} restant`,
970-
},
971-
offer25off: {
972-
title: 'Bénéficiez de 25 % de réduction sur votre première année !',
973-
subtitle: ({days}: {days: number}) => `${days} ${days === 1 ? 'jour' : 'jours'} restants`,
974-
},
975966
addShippingAddress: {title: 'Nous avons besoin de votre adresse de livraison', subtitle: 'Indiquez une adresse pour recevoir votre Carte Expensify.', cta: 'Ajouter une adresse'},
976967
addPaymentCard: {title: 'Ajoutez une carte de paiement pour continuer à utiliser Expensify', subtitle: 'Compte > Abonnement', cta: 'Ajouter'},
977968
activateCard: {title: 'Activer votre Carte Expensify', subtitle: 'Validez votre carte et commencez à dépenser.', cta: 'Activer'},
@@ -1059,6 +1050,19 @@ const translations: TranslationDeepObject<typeof en> = {
10591050
inDays: () => ({one: 'Dans 1 jour', other: (count: number) => `Dans ${count} jours`}),
10601051
today: 'Aujourd’hui',
10611052
},
1053+
freeTrialSection: {
1054+
title: ({days}: {days: number}) => `Essai gratuit : plus que ${days} ${days === 1 ? 'jour' : 'jours'} !`,
1055+
offer50Body: 'Profitez de 50 % de réduction sur votre première année !',
1056+
offer25Body: 'Obtenez 25 % de réduction sur votre première année !',
1057+
addCardBody: 'N’attendez pas ! Ajoutez votre carte de paiement maintenant.',
1058+
ctaClaim: 'Demande',
1059+
ctaAdd: 'Ajouter une carte',
1060+
timeRemaining: ({formattedTime}: {formattedTime: string}) => `Temps restant : ${formattedTime}`,
1061+
timeRemainingDays: () => ({
1062+
one: 'Temps restant : 1 jour',
1063+
other: (pluralCount: number) => `Temps restant : ${pluralCount} jours`,
1064+
}),
1065+
},
10621066
},
10631067
allSettingsScreen: {
10641068
subscription: 'Abonnement',

src/languages/it.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -960,15 +960,6 @@ const translations: TranslationDeepObject<typeof en> = {
960960
forYou: 'Per te',
961961
timeSensitiveSection: {
962962
title: 'Sensibile al tempo',
963-
cta: 'Richiesta',
964-
offer50off: {
965-
title: 'Ottieni il 50% di sconto sul primo anno!',
966-
subtitle: ({formattedTime}: {formattedTime: string}) => `${formattedTime} rimanenti`,
967-
},
968-
offer25off: {
969-
title: 'Ottieni il 25% di sconto sul tuo primo anno!',
970-
subtitle: ({days}: {days: number}) => `Restano ${days} ${days === 1 ? 'giorno' : 'giorni'}`,
971-
},
972963
addShippingAddress: {title: 'Ci serve il tuo indirizzo di spedizione', subtitle: 'Fornisci un indirizzo per ricevere la tua Carta Expensify.', cta: 'Aggiungi indirizzo'},
973964
addPaymentCard: {title: 'Aggiungi una carta di pagamento per continuare a usare Expensify', subtitle: 'Account > Abbonamento', cta: 'Aggiungi'},
974965
activateCard: {title: 'Attiva la tua Carta Expensify', subtitle: 'Convalida la tua carta e inizia a spendere.', cta: 'Attiva'},
@@ -1056,6 +1047,19 @@ const translations: TranslationDeepObject<typeof en> = {
10561047
inDays: () => ({one: 'Tra 1 giorno', other: (count: number) => `Tra ${count} giorni`}),
10571048
today: 'Oggi',
10581049
},
1050+
freeTrialSection: {
1051+
title: ({days}: {days: number}) => `Prova gratuita: ${days} ${days === 1 ? 'giorno' : 'giorni'} rimanenti!`,
1052+
offer50Body: 'Ottieni il 50% di sconto sul tuo primo anno!',
1053+
offer25Body: 'Ottieni il 25% di sconto sul tuo primo anno!',
1054+
addCardBody: 'Non aspettare! Aggiungi subito la tua carta di pagamento.',
1055+
ctaClaim: 'Richiesta',
1056+
ctaAdd: 'Aggiungi carta',
1057+
timeRemaining: ({formattedTime}: {formattedTime: string}) => `Tempo rimanente: ${formattedTime}`,
1058+
timeRemainingDays: () => ({
1059+
one: 'Tempo rimanente: 1 giorno',
1060+
other: (pluralCount: number) => `Tempo rimanente: ${pluralCount} giorni`,
1061+
}),
1062+
},
10591063
},
10601064
allSettingsScreen: {
10611065
subscription: 'Abbonamento',

src/languages/ja.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -946,15 +946,6 @@ const translations: TranslationDeepObject<typeof en> = {
946946
forYou: 'あなた向け',
947947
timeSensitiveSection: {
948948
title: '時間に敏感',
949-
cta: '申請',
950-
offer50off: {
951-
title: '初年度が50%オフ!',
952-
subtitle: ({formattedTime}: {formattedTime: string}) => `残り${formattedTime}`,
953-
},
954-
offer25off: {
955-
title: '初年度が25%オフになります!',
956-
subtitle: ({days}: {days: number}) => `残り ${days} ${days === 1 ? '日' : '日数'} 日`,
957-
},
958949
addShippingAddress: {title: '配送先住所が必要です', subtitle: 'Expensify カードを受け取る住所を入力してください。', cta: '住所を追加'},
959950
addPaymentCard: {title: 'Expensify を引き続きご利用いただくには、支払いカードを追加してください', subtitle: 'アカウント > サブスクリプション', cta: '追加'},
960951
activateCard: {title: 'Expensify カードを有効化する', subtitle: 'カードを認証して支出を始めましょう。', cta: '有効化'},
@@ -1039,6 +1030,19 @@ const translations: TranslationDeepObject<typeof en> = {
10391030
inDays: () => ({one: '1日後', other: (count: number) => `${count}日後`}),
10401031
today: '今日',
10411032
},
1033+
freeTrialSection: {
1034+
title: ({days}: {days: number}) => `無料トライアル:あと ${days} ${days === 1 ? '日' : '日数'} 日!`,
1035+
offer50Body: '初年度が50%オフになります!',
1036+
offer25Body: '初年度が25%オフになります!',
1037+
addCardBody: '今すぐ追加しましょう!お支払い用カードを登録してください。',
1038+
ctaClaim: '申請',
1039+
ctaAdd: 'カードを追加',
1040+
timeRemaining: ({formattedTime}: {formattedTime: string}) => `残り時間:${formattedTime}`,
1041+
timeRemainingDays: () => ({
1042+
one: '残り時間:1日',
1043+
other: (pluralCount: number) => `残り時間:${pluralCount}日`,
1044+
}),
1045+
},
10421046
},
10431047
allSettingsScreen: {
10441048
subscription: 'サブスクリプション',

src/languages/nl.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -959,15 +959,6 @@ const translations: TranslationDeepObject<typeof en> = {
959959
forYou: 'Voor jou',
960960
timeSensitiveSection: {
961961
title: 'Tijdgevoelig',
962-
cta: 'Declaratie',
963-
offer50off: {
964-
title: 'Krijg 50% korting op je eerste jaar!',
965-
subtitle: ({formattedTime}: {formattedTime: string}) => `Nog ${formattedTime} resterend`,
966-
},
967-
offer25off: {
968-
title: 'Krijg 25% korting op je eerste jaar!',
969-
subtitle: ({days}: {days: number}) => `${days} ${days === 1 ? 'dag' : 'dagen'} resterend`,
970-
},
971962
addShippingAddress: {title: 'We hebben je verzendadres nodig', subtitle: 'Geef een adres op om je Expensify Kaart te ontvangen.', cta: 'Adres toevoegen'},
972963
addPaymentCard: {title: 'Voeg een betaalkaart toe om Expensify te blijven gebruiken', subtitle: 'Account > Abonnement', cta: 'Toevoegen'},
973964
activateCard: {title: 'Activeer je Expensify Kaart', subtitle: 'Valideer je kaart en begin met uitgeven.', cta: 'Activeren'},
@@ -1055,6 +1046,19 @@ const translations: TranslationDeepObject<typeof en> = {
10551046
inDays: () => ({one: 'Over 1 dag', other: (count: number) => `Over ${count} dagen`}),
10561047
today: 'Vandaag',
10571048
},
1049+
freeTrialSection: {
1050+
title: ({days}: {days: number}) => `Proefperiode: nog ${days} ${days === 1 ? 'dag' : 'dagen'}!`,
1051+
offer50Body: 'Krijg 50% korting op je eerste jaar!',
1052+
offer25Body: 'Krijg 25% korting op je eerste jaar!',
1053+
addCardBody: 'Wacht niet! Voeg nu je betaalkaart toe.',
1054+
ctaClaim: 'Declareren',
1055+
ctaAdd: 'Kaart toevoegen',
1056+
timeRemaining: ({formattedTime}: {formattedTime: string}) => `Resterende tijd: ${formattedTime}`,
1057+
timeRemainingDays: () => ({
1058+
one: 'Resterende tijd: 1 dag',
1059+
other: (pluralCount: number) => `Resterende tijd: ${pluralCount} dagen`,
1060+
}),
1061+
},
10581062
},
10591063
allSettingsScreen: {
10601064
subscription: 'Abonnement',

src/languages/pl.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -960,15 +960,6 @@ const translations: TranslationDeepObject<typeof en> = {
960960
forYou: 'Dla ciebie',
961961
timeSensitiveSection: {
962962
title: 'Wymaga szybkiej reakcji',
963-
cta: 'Roszczenie',
964-
offer50off: {
965-
title: 'Otrzymaj 50% zniżki na pierwszy rok!',
966-
subtitle: ({formattedTime}: {formattedTime: string}) => `Pozostało ${formattedTime}`,
967-
},
968-
offer25off: {
969-
title: 'Uzyskaj 25% zniżki na pierwszy rok!',
970-
subtitle: ({days}: {days: number}) => `Pozostało ${days} ${days === 1 ? 'dzień' : 'dni'}`,
971-
},
972963
addShippingAddress: {title: 'Potrzebujemy Twojego adresu wysyłki', subtitle: 'Podaj adres, na który mamy wysłać twoją Kartę Expensify.', cta: 'Dodaj adres'},
973964
addPaymentCard: {title: 'Dodaj kartę płatniczą, żeby dalej korzystać z Expensify', subtitle: 'Konto > Subskrypcja', cta: 'Dodaj'},
974965
activateCard: {title: 'Aktywuj swoją Kartę Expensify', subtitle: 'Zatwierdź swoją kartę i zacznij wydawać.', cta: 'Aktywuj'},
@@ -1056,6 +1047,19 @@ const translations: TranslationDeepObject<typeof en> = {
10561047
inDays: () => ({one: 'Za 1 dzień', other: (count: number) => `Za ${count} dni`}),
10571048
today: 'Dzisiaj',
10581049
},
1050+
freeTrialSection: {
1051+
title: ({days}: {days: number}) => `Darmowy okres próbny: pozostało ${days} ${days === 1 ? 'dzień' : 'dni'}!`,
1052+
offer50Body: 'Zyskaj 50% zniżki na pierwszy rok!',
1053+
offer25Body: 'Uzyskaj 25% zniżki na pierwszy rok!',
1054+
addCardBody: 'Nie czekaj! Dodaj teraz swoją kartę płatniczą.',
1055+
ctaClaim: 'Roszczenie',
1056+
ctaAdd: 'Dodaj kartę',
1057+
timeRemaining: ({formattedTime}: {formattedTime: string}) => `Pozostały czas: ${formattedTime}`,
1058+
timeRemainingDays: () => ({
1059+
one: 'Pozostały czas: 1 dzień',
1060+
other: (pluralCount: number) => `Pozostały czas: ${pluralCount} dni`,
1061+
}),
1062+
},
10591063
},
10601064
allSettingsScreen: {
10611065
subscription: 'Subskrypcja',

src/languages/pt-BR.ts

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -958,15 +958,6 @@ const translations: TranslationDeepObject<typeof en> = {
958958
forYou: 'Para você',
959959
timeSensitiveSection: {
960960
title: 'Urgente',
961-
cta: 'Solicitação',
962-
offer50off: {
963-
title: 'Ganhe 50% de desconto no seu primeiro ano!',
964-
subtitle: ({formattedTime}: {formattedTime: string}) => `${formattedTime} restante`,
965-
},
966-
offer25off: {
967-
title: 'Ganhe 25% de desconto no seu primeiro ano!',
968-
subtitle: ({days}: {days: number}) => `Restam ${days} ${days === 1 ? 'dia' : 'dias'}`,
969-
},
970961
addShippingAddress: {title: 'Precisamos do seu endereço de entrega', subtitle: 'Informe um endereço para receber seu Cartão Expensify.', cta: 'Adicionar endereço'},
971962
addPaymentCard: {title: 'Adicione um cartão de pagamento para continuar usando o Expensify', subtitle: 'Conta > Assinatura', cta: 'Adicionar'},
972963
activateCard: {title: 'Ative seu Cartão Expensify', subtitle: 'Valide seu cartão e comece a gastar.', cta: 'Ativar'},
@@ -1054,6 +1045,19 @@ const translations: TranslationDeepObject<typeof en> = {
10541045
inDays: () => ({one: 'Em 1 dia', other: (count: number) => `Em ${count} dias`}),
10551046
today: 'Hoje',
10561047
},
1048+
freeTrialSection: {
1049+
title: ({days}: {days: number}) => `Avaliação gratuita: restam ${days} ${days === 1 ? 'dia' : 'dias'}!`,
1050+
offer50Body: 'Ganhe 50% de desconto no seu primeiro ano!',
1051+
offer25Body: 'Ganhe 25% de desconto no seu primeiro ano!',
1052+
addCardBody: 'Não espere! Adicione seu cartão de pagamento agora.',
1053+
ctaClaim: 'Solicitação',
1054+
ctaAdd: 'Adicionar cartão',
1055+
timeRemaining: ({formattedTime}: {formattedTime: string}) => `Tempo restante: ${formattedTime}`,
1056+
timeRemainingDays: () => ({
1057+
one: 'Tempo restante: 1 dia',
1058+
other: (pluralCount: number) => `Tempo restante: ${pluralCount} dias`,
1059+
}),
1060+
},
10571061
},
10581062
allSettingsScreen: {
10591063
subscription: 'Assinatura',

0 commit comments

Comments
 (0)