diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 12f86f93eb..b826f386fb 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -72,9 +72,7 @@ "add_error_assist_annual_to_your_projects": "", "add_error_assist_to_your_projects": "", "add_files": "", - "add_licenses": "", "add_more_editors": "", - "add_more_licenses": "", "add_more_licenses_to_my_plan": "", "add_more_managers": "", "add_new_email": "", @@ -182,6 +180,8 @@ "blocked_filename": "", "blog": "", "browser": "", + "buy_licenses": "", + "buy_more_licenses": "", "by_subscribing_you_agree_to_our_terms_of_service": "", "can_edit_content": "", "can_link_institution_email_acct_to_institution_acct": "", @@ -731,7 +731,7 @@ "hotkey_undo": "", "hotkeys": "", "how_it_works": "", - "how_many_licenses_do_you_want_to_add": "", + "how_many_licenses_do_you_want_to_buy": "", "how_to_create_tables": "", "how_to_insert_images": "", "how_we_use_your_data": "", diff --git a/services/web/frontend/js/features/group-management/components/add-seats/add-seats.tsx b/services/web/frontend/js/features/group-management/components/add-seats/add-seats.tsx index 3d2b476182..7163fd2cee 100644 --- a/services/web/frontend/js/features/group-management/components/add-seats/add-seats.tsx +++ b/services/web/frontend/js/features/group-management/components/add-seats/add-seats.tsx @@ -281,7 +281,7 @@ function AddSeats() { >

- {t('add_more_licenses')} + {t('buy_more_licenses')}

{t('your_current_plan_supports_up_to_x_licenses', { @@ -308,7 +308,7 @@ function AddSeats() {
- {t('how_many_licenses_do_you_want_to_add')} + {t('how_many_licenses_do_you_want_to_buy')} - {shouldContactSales ? t('send_request') : t('add_licenses')} + {shouldContactSales ? t('send_request') : t('buy_licenses')}
diff --git a/services/web/frontend/js/features/group-management/components/group-members.tsx b/services/web/frontend/js/features/group-management/components/group-members.tsx index 2faeea9cc0..366c1b7640 100644 --- a/services/web/frontend/js/features/group-management/components/group-members.tsx +++ b/services/web/frontend/js/features/group-management/components/group-members.tsx @@ -74,7 +74,7 @@ export default function GroupMembers() { rel="noreferrer noopener" onClick={() => sendMB('flex-add-users')} > - {t('add_more_licenses')}. + {t('buy_more_licenses')}. )} diff --git a/services/web/frontend/js/features/subscription/components/dashboard/states/active/active-new.tsx b/services/web/frontend/js/features/subscription/components/dashboard/states/active/active-new.tsx index 9c1fcbf3cd..067888f918 100644 --- a/services/web/frontend/js/features/subscription/components/dashboard/states/active/active-new.tsx +++ b/services/web/frontend/js/features/subscription/components/dashboard/states/active/active-new.tsx @@ -376,7 +376,7 @@ function FlexibleGroupLicensingActions({ href="/user/subscription/group/add-users" onClick={() => sendMB('flex-add-users')} > - {t('add_more_licenses')} + {t('buy_more_licenses')} )} diff --git a/services/web/locales/en.json b/services/web/locales/en.json index eac5332bf1..5083303331 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -87,9 +87,7 @@ "add_error_assist_annual_to_your_projects": "Add Error Assist Annual to your projects and get unlimited AI help to fix LaTeX errors faster.", "add_error_assist_to_your_projects": "Add Error Assist to your projects and get unlimited AI help to fix LaTeX errors faster.", "add_files": "Add Files", - "add_licenses": "Add licenses", "add_more_editors": "Add more editors", - "add_more_licenses": "Add more licenses", "add_more_licenses_to_my_plan": "Add more licenses to my plan", "add_more_managers": "Add more managers", "add_new_email": "Add new email", @@ -239,6 +237,8 @@ "brl_discount_offer_plans_page_banner": "__flag__ Great news! We’ve applied a 50% discount to premium plans on this page for our users in Brazil. Check out the new lower prices.", "browser": "Browser", "built_in": "Built-In", + "buy_licenses": "Buy licenses", + "buy_more_licenses": "Buy more licenses", "buy_now_no_exclamation_mark": "Buy now", "by": "by", "by_joining_labs": "By joining Labs, you agree to receive occasional emails and updates from Overleaf—for example, to request your feedback. You also agree to our <0>terms of service and <1>privacy notice.", @@ -953,7 +953,7 @@ "hotkey_undo": "Undo", "hotkeys": "Hotkeys", "how_it_works": "How it works", - "how_many_licenses_do_you_want_to_add": "How many licenses do you want to add?", + "how_many_licenses_do_you_want_to_buy": "How many licenses do you want to buy?", "how_many_users_do_you_need": "How many users do you need?", "how_to_create_tables": "How to create tables", "how_to_insert_images": "How to insert images", 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 04801ca4e5..ab5ddb8355 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 @@ -15,7 +15,7 @@ describe('', function () { cy.mount() - cy.findByRole('button', { name: /add licenses/i }) + cy.findByRole('button', { name: /buy licenses/i }) cy.findByTestId('add-more-users-group-form') }) @@ -35,8 +35,8 @@ describe('', function () { }) }) - it('shows the "Add more licenses" label', function () { - cy.findByText(/add more licenses/i) + it('shows the "Buy more licenses" label', function () { + cy.findByText(/buy more licenses/i) }) it('shows the maximum supported users', function () { @@ -90,7 +90,7 @@ describe('', function () { describe('cost summary', function () { beforeEach(function () { - cy.findByLabelText(/how many licenses do you want to add/i).as('input') + cy.findByLabelText(/how many licenses do you want to buy/i).as('input') }) it('shows the title', function () { @@ -139,7 +139,7 @@ describe('', function () { this.numberOfUsersExceedingMaxLimit = MAX_NUMBER_OF_USERS + 1 cy.get('@input').type(this.numberOfUsersExceedingMaxLimit.toString()) - cy.findByRole('button', { name: /add licenses/i }).should('not.exist') + cy.findByRole('button', { name: /buy licenses/i }).should('not.exist') cy.findByRole('button', { name: /send request/i }).as('sendRequestBtn') }) @@ -237,7 +237,7 @@ describe('', function () { }, } - cy.findByRole('button', { name: /add licenses/i }).as('addUsersBtn') + cy.findByRole('button', { name: /buy licenses/i }).as('addUsersBtn') cy.findByRole('button', { name: /send request/i }).should('not.exist') }) diff --git a/services/web/test/frontend/features/group-management/components/group-members.spec.tsx b/services/web/test/frontend/features/group-management/components/group-members.spec.tsx index 29fbc1c9c5..2e2024a527 100644 --- a/services/web/test/frontend/features/group-management/components/group-members.spec.tsx +++ b/services/web/test/frontend/features/group-management/components/group-members.spec.tsx @@ -532,7 +532,7 @@ describe('GroupMembers', function () { ) cy.findByTestId('group-size-details').contains( - 'You have 2 licenses and your plan supports up to 10. Add more licenses.' + 'You have 2 licenses and your plan supports up to 10. Buy more licenses.' ) cy.findByTestId('add-more-members-form').within(() => { cy.contains('Invite more members') @@ -552,11 +552,11 @@ describe('GroupMembers', function () { ) cy.findByTestId('group-size-details').contains( - 'You have 1 license and your plan supports up to 10. Add more licenses.' + 'You have 1 license and your plan supports up to 10. Buy more licenses.' ) }) - it('renders the group members page without "add more licenses" link when not admin', function () { + it('renders the group members page without "buy more licenses" link when not admin', function () { cy.window().then(win => { win.metaAttributesCache.set('ol-users', [this.JOHN_DOE]) win.metaAttributesCache.set('ol-canUseAddSeatsFeature', false) @@ -570,7 +570,7 @@ describe('GroupMembers', function () { cy.findByTestId('group-size-details').within(() => { cy.findByText(/you have \d+ license and your plan supports up to \d+/i) - cy.findByText(/add more licenses/i).should('not.exist') + cy.findByText(/buy more licenses/i).should('not.exist') }) }) })