From b9bc2b01fd9e6d7f7525dcb7ff8780d38bd83056 Mon Sep 17 00:00:00 2001 From: ilkin-overleaf <100852799+ilkin-overleaf@users.noreply.github.com> Date: Fri, 28 Mar 2025 17:21:50 +0200 Subject: [PATCH] Merge pull request #24597 from overleaf/ii-flexible-group-licensing-replace-users-with-licenses-2 [web] FL "licenses" in cost summary preview GitOrigin-RevId: f6020fe0c5903dc2b1ebb923718525403e5a2fe7 --- services/web/frontend/extracted-translations.json | 3 +-- .../group-management/components/add-seats/cost-summary.tsx | 2 +- .../upgrade-subscription-upgrade-summary.tsx | 2 +- services/web/locales/en.json | 3 +-- .../features/group-management/components/add-seats.spec.tsx | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 00ec95dd52..0a8b92009a 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -883,6 +883,7 @@ "let_us_know_what_you_think": "", "lets_get_those_premium_features": "", "library": "", + "licenses": "", "limited_document_history": "", "limited_offer": "", "limited_to_n_editors": "", @@ -1431,7 +1432,6 @@ "search_whole_word": "", "search_within_selection": "", "searched_path_for_lines_containing": "", - "seats": "", "security": "", "see_changes_in_your_documents_live": "", "select_a_column_or_a_merged_cell_to_align": "", @@ -1923,7 +1923,6 @@ "user_first_name_attribute": "", "user_last_name_attribute": "", "user_sessions": "", - "users": "", "using_latex": "", "using_premium_features": "", "using_the_overleaf_editor": "", diff --git a/services/web/frontend/js/features/group-management/components/add-seats/cost-summary.tsx b/services/web/frontend/js/features/group-management/components/add-seats/cost-summary.tsx index 44d81a6adc..8571813c76 100644 --- a/services/web/frontend/js/features/group-management/components/add-seats/cost-summary.tsx +++ b/services/web/frontend/js/features/group-management/components/add-seats/cost-summary.tsx @@ -65,7 +65,7 @@ function CostSummary({ subscriptionChange, totalLicenses }: CostSummaryProps) { {subscriptionChange.nextInvoice.plan.name} x{' '} {subscriptionChange.change.addOn.quantity - subscriptionChange.change.addOn.prevQuantity}{' '} - {t('seats')} + {t('licenses')} {formatCurrency( diff --git a/services/web/frontend/js/features/group-management/components/upgrade-subscription/upgrade-subscription-upgrade-summary.tsx b/services/web/frontend/js/features/group-management/components/upgrade-subscription/upgrade-subscription-upgrade-summary.tsx index 41dbcb3e0f..d7546ccfa7 100644 --- a/services/web/frontend/js/features/group-management/components/upgrade-subscription/upgrade-subscription-upgrade-summary.tsx +++ b/services/web/frontend/js/features/group-management/components/upgrade-subscription/upgrade-subscription-upgrade-summary.tsx @@ -36,7 +36,7 @@ function UpgradeSummary({ subscriptionChange }: UpgradeSummaryProps) { {subscriptionChange.nextInvoice.plan.name} x {totalLicenses}{' '} - {t('users')} + {t('licenses')} {formatCurrency( diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 5cf5a15d43..3285a3412f 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -1165,6 +1165,7 @@ "libraries": "Libraries", "library": "Library", "license": "License", + "licenses": "Licenses", "limited_document_history": "Limited document history", "limited_to_n_editors": "Limited to __count__ editor", "limited_to_n_editors_or_reviewers": "Limited to __count__ editor or reviewer", @@ -1895,7 +1896,6 @@ "search_whole_word": "Whole word", "search_within_selection": "Within selection", "searched_path_for_lines_containing": "Searched __path__ for lines containing \"__query__\"", - "seats": "Seats", "secondary_email_password_reset": "That email is registered as a secondary email. Please enter the primary email for your account.", "security": "Security", "see_changes_in_your_documents_live": "See changes in your documents, live", @@ -2469,7 +2469,6 @@ "user_not_found": "User not found", "user_sessions": "User Sessions", "user_wants_you_to_see_project": "__username__ would like you to join __projectname__", - "users": "users", "using_latex": "Using LaTeX", "using_premium_features": "Using premium features", "using_the_overleaf_editor": "Using the __appName__ Editor", diff --git a/services/web/test/frontend/features/group-management/components/add-seats.spec.tsx b/services/web/test/frontend/features/group-management/components/add-seats.spec.tsx index f8c5f44f70..04801ca4e5 100644 --- a/services/web/test/frontend/features/group-management/components/add-seats.spec.tsx +++ b/services/web/test/frontend/features/group-management/components/add-seats.spec.tsx @@ -258,7 +258,7 @@ describe('', function () { cy.findByTestId('plan').within(() => { cy.findByText( - `${this.body.nextInvoice.plan.name} x ${this.adding} Seats` + `${this.body.nextInvoice.plan.name} x ${this.adding} Licenses` ) cy.findByTestId('price').should( 'have.text',