Skip to content

Commit 3db44ff

Browse files
committed
refactor: use custom translation component in premium page
1 parent 214ec0e commit 3db44ff

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

frontend/i18n/locales/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@
11311131
"validators": "{amount} Validators"
11321132
},
11331133
"premium_via_app_banner": "You have an active premium subscription from the App Store / Play Store. You can manage your active subscriptions from there.",
1134-
"promo_code": "Promocode {_code} will be applied during checkout",
1134+
"promo_code": "Promocode {code} will be applied during checkout",
11351135
"save_up_to": "SAVE UP TO {percentage}%",
11361136
"savings": "You save {amount} a year",
11371137
"savings_tooltip": "Compared to paying monthly. The full monthly price is {monthly}. The monthly price within the yearly subscription is {monthly_yearly}.",

frontend/pages/premium.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,15 @@ definePageMeta({
6060
v-if="promoCode"
6161
class="promo-overlay"
6262
>
63-
<I18nT
63+
<BcTranslation
6464
keypath="pricing.promo_code"
65-
scope="global"
6665
tag="span"
6766
class="promo-text"
6867
>
69-
<template #_code>
68+
<template #code>
7069
<span class="promo-code">{{ promoCode }}</span>
7170
</template>
72-
</I18nT>
71+
</BcTranslation>
7372
</div>
7473
</div>
7574
</BcPageWrapper>

0 commit comments

Comments
 (0)