diff --git a/services/web/app/src/Features/Subscription/SubscriptionController.js b/services/web/app/src/Features/Subscription/SubscriptionController.js index aef8c89826..c7224c47b0 100644 --- a/services/web/app/src/Features/Subscription/SubscriptionController.js +++ b/services/web/app/src/Features/Subscription/SubscriptionController.js @@ -167,7 +167,16 @@ async function plansPageLightDesign(req, res) { const currentView = 'annual' const plans = SubscriptionViewModelBuilder.buildPlansList() const groupPlanModalDefaults = _getGroupPlanModalDefaults(req, currency) - const formatCurrency = SubscriptionHelper.formatCurrencyDefault + + const localCcyAssignment = await SplitTestHandler.promises.getAssignment( + req, + res, + 'local-ccy-format-v2' + ) + const formatCurrency = + localCcyAssignment.variant === 'enabled' + ? formatCurrencyLocalized + : SubscriptionHelper.formatCurrencyDefault const { showLATAMBanner, showInrGeoBanner, showBrlGeoBanner } = _plansBanners( { diff --git a/services/web/frontend/js/features/plans/utils/group-plan-pricing.js b/services/web/frontend/js/features/plans/utils/group-plan-pricing.js index 83b8351886..4a3917c03a 100644 --- a/services/web/frontend/js/features/plans/utils/group-plan-pricing.js +++ b/services/web/frontend/js/features/plans/utils/group-plan-pricing.js @@ -7,12 +7,13 @@ import getMeta from '../../../utils/meta' // plan: 'collaborator' or 'professional' // the rest of available arguments can be seen in the groupPlans value /** - * @param {'collaborator' | 'professional'} plan - * @param {string} licenseSize - * @param {CurrencyCode} currency - * @param {'enterprise' | 'educational'} usage - * @param {string?} locale - * @param {(amount: number, currency: CurrencyCode, locale: string, includeSymbol: boolean) => string} formatCurrency + * @param {Object} opts + * @param {'collaborator' | 'professional'} opts.plan + * @param {string} opts.licenseSize + * @param {CurrencyCode} opts.currency + * @param {'enterprise' | 'educational'} opts.usage + * @param {string} [opts.locale] + * @param {(amount: number, currency: CurrencyCode, locale: string, includeSymbol: boolean) => string} opts.formatCurrency * @returns {{localizedPrice: string, localizedPerUserPrice: string}} */ export function createLocalizedGroupPlanPrice({ diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 31355891a1..7872dc30f9 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -2120,6 +2120,7 @@ "total_per_month": "Total per month", "total_per_year": "Total per year", "total_per_year_for_x_users": "total per year for __licenseSize__ users", + "total_per_year_lowercase": "total per year", "total_with_subtotal_and_tax": "Total: <0>__total__ (__subtotal__ + __tax__ tax) per year", "total_words": "Total Words", "tr": "Turkish", @@ -2341,7 +2342,6 @@ "x_price_for_y_months": "<0>__price__ for your first __discountMonths__ months", "x_price_per_user": "__price__ per user", "x_price_per_year": "__price__ per year", - "x_total_per_year": "__price__ total per year", "year": "year", "yearly": "Yearly", "yes_im_in": "Yes, I’m in",