diff --git a/apps/portal/src/components/common/ProductsSection.js b/apps/portal/src/components/common/ProductsSection.js index 472e5d37fd..a550144dff 100644 --- a/apps/portal/src/components/common/ProductsSection.js +++ b/apps/portal/src/components/common/ProductsSection.js @@ -594,12 +594,13 @@ function ProductCardTrialDays({trialDays, discount, selectedInterval}) { function ProductCardPrice({product}) { const {selectedInterval} = useContext(ProductsContext); - const {site} = useContext(AppContext); + const {t, site} = useContext(AppContext); const monthlyPrice = product.monthlyPrice; const yearlyPrice = product.yearlyPrice; const trialDays = product.trial_days; const activePrice = selectedInterval === 'month' ? monthlyPrice : yearlyPrice; const alternatePrice = selectedInterval === 'month' ? yearlyPrice : monthlyPrice; + const interval = activePrice.interval === 'year' ? t('year') : t('month'); if (!monthlyPrice || !yearlyPrice) { return null; } @@ -615,7 +616,7 @@ function ProductCardPrice({product}) {
1 ? ' long' : '')}>{currencySymbol} {formatNumber(getStripeAmount(activePrice.amount))} - /{activePrice.interval} + /{interval}
diff --git a/apps/portal/src/components/pages/AccountHomePage/components/AccountActions.js b/apps/portal/src/components/pages/AccountHomePage/components/AccountActions.js index f243f431ae..f64cf11fa9 100644 --- a/apps/portal/src/components/pages/AccountHomePage/components/AccountActions.js +++ b/apps/portal/src/components/pages/AccountHomePage/components/AccountActions.js @@ -26,7 +26,7 @@ const AccountActions = () => {
-

{(name ? name : 'Account')}

+

{(name ? name : t('Account'))}

{email}