Merge pull request #24576 from overleaf/ii-flexible-group-licensing-replace-users-with-licenses

[web] Replace "users" with "licenses" in flexible licensing

GitOrigin-RevId: c262f802c92e7ce82f8dc60badf8e6147c5da4e5
This commit is contained in:
ilkin-overleaf
2025-03-31 08:04:50 +00:00
committed by Copybot
parent 61ce012fb5
commit b223bb8da8
12 changed files with 79 additions and 79 deletions
@@ -226,10 +226,10 @@ function AddSeats() {
<RequestStatus
variant="primary"
icon="check_circle"
title={t('youve_added_more_users')}
title={t('youve_added_more_licenses')}
content={
<Trans
i18nKey="youve_added_x_more_users_to_your_subscription_invite_people"
i18nKey="youve_added_x_more_licenses_to_your_subscription_invite_people"
components={[
// eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key
<a
@@ -281,16 +281,16 @@ function AddSeats() {
>
<div className="d-grid gap-1">
<h4 className="fw-bold m-0 card-description-secondary">
{t('add_more_users')}
{t('add_more_licenses')}
</h4>
<div>
{t('your_current_plan_supports_up_to_x_users', {
{t('your_current_plan_supports_up_to_x_licenses', {
users: totalLicenses,
})}
</div>
<div>
<Trans
i18nKey="if_you_want_to_reduce_the_number_of_users_please_contact_support"
i18nKey="if_you_want_to_reduce_the_number_of_licenses_please_contact_support"
components={[
// eslint-disable-next-line jsx-a11y/anchor-has-content, react/jsx-key
<a
@@ -308,7 +308,7 @@ function AddSeats() {
<div>
<FormGroup controlId="number-of-users-input">
<FormLabel>
{t('how_many_users_do_you_want_to_add')}
{t('how_many_licenses_do_you_want_to_add')}
</FormLabel>
<FormControl
type="text"
@@ -366,7 +366,7 @@ function AddSeats() {
}
isLoading={isAddingSeats || isSendingMailToSales}
>
{shouldContactSales ? t('send_request') : t('add_users')}
{shouldContactSales ? t('send_request') : t('add_licenses')}
</Button>
</div>
</form>
@@ -406,7 +406,7 @@ function CostSummarySection({
<Notification
content={
<Trans
i18nKey="if_you_want_more_than_x_users_on_your_plan_we_need_to_add_them_for_you"
i18nKey="if_you_want_more_than_x_licenses_on_your_plan_we_need_to_add_them_for_you"
// eslint-disable-next-line react/jsx-key
components={[<b />]}
values={{ count: MAX_NUMBER_OF_USERS }}
@@ -30,7 +30,7 @@ function CostSummary({ subscriptionChange, totalLicenses }: CostSummaryProps) {
<div className="fw-bold">{t('cost_summary')}</div>
{subscriptionChange ? (
<Trans
i18nKey="youre_adding_x_users_to_your_plan_giving_you_a_total_of_y_users"
i18nKey="youre_adding_x_licenses_to_your_plan_giving_you_a_total_of_y_licenses"
components={[
<b />, // eslint-disable-line react/jsx-key
<b />, // eslint-disable-line react/jsx-key
@@ -49,7 +49,7 @@ function CostSummary({ subscriptionChange, totalLicenses }: CostSummaryProps) {
/>
) : (
t(
'enter_the_number_of_users_youd_like_to_add_to_see_the_cost_breakdown'
'enter_the_number_of_licenses_youd_like_to_add_to_see_the_cost_breakdown'
)
)}
</div>
@@ -122,7 +122,7 @@ function CostSummary({ subscriptionChange, totalLicenses }: CostSummaryProps) {
</div>
<div>
{t(
'we_will_charge_you_now_for_the_cost_of_your_additional_users_based_on_remaining_months'
'we_will_charge_you_now_for_the_cost_of_your_additional_licenses_based_on_remaining_months'
)}
</div>
<div>
@@ -58,10 +58,10 @@ export default function GroupMembers() {
<small data-testid="group-size-details">
<strong>
{users.length === 1
? t('you_have_1_user_and_your_plan_supports_up_to_y', {
? t('you_have_1_license_and_your_plan_supports_up_to_y', {
groupSize,
})
: t('you_have_x_users_and_your_plan_supports_up_to_y', {
: t('you_have_x_licenses_and_your_plan_supports_up_to_y', {
addedUsersSize: users.length,
groupSize,
})}
@@ -74,7 +74,7 @@ export default function GroupMembers() {
rel="noreferrer noopener"
onClick={() => sendMB('flex-add-users')}
>
{t('add_more_users')}.
{t('add_more_licenses')}.
</a>
</>
)}
@@ -48,7 +48,7 @@ function UpgradeSubscriptionPlanDetails() {
</span>
</Col>
<Col className="d-flex flex-column justify-content-center">
<div className="per-user-price-text">{t('per_user')}</div>
<div className="per-user-price-text">{t('per_license')}</div>
<div className="per-user-price-text">{t('billed_yearly')}</div>
</Col>
</Row>
@@ -27,7 +27,7 @@ function UpgradeSummary({ subscriptionChange }: UpgradeSummaryProps) {
<Card.Body className="d-grid gap-2 p-3">
<div>
<div className="fw-bold">{t('upgrade_summary')}</div>
{t('you_have_x_users_on_your_subscription', {
{t('you_have_x_licenses_on_your_subscription', {
groupSize: totalLicenses,
})}
</div>
@@ -116,7 +116,7 @@ function UpgradeSubscription() {
className="me-auto"
onClick={() => sendMB('flex-add-users')}
>
{t('add_more_users_to_my_plan')}
{t('add_more_licenses_to_my_plan')}
</a>
<Button
href="/user/subscription"
@@ -190,7 +190,7 @@ export function ActiveSubscriptionNew({
<p className="mb-1">
{isLegacyPlan && subscription.recurly.additionalLicenses > 0 ? (
<Trans
i18nKey="plus_x_additional_licenses_for_a_total_of_y_users"
i18nKey="plus_x_additional_licenses_for_a_total_of_y_licenses"
values={{
count: subscription.recurly.totalLicenses,
additionalLicenses: subscription.recurly.additionalLicenses,
@@ -201,7 +201,7 @@ export function ActiveSubscriptionNew({
/>
) : (
<Trans
i18nKey="supports_up_to_x_users"
i18nKey="supports_up_to_x_licenses"
values={{ count: subscription.recurly.totalLicenses }}
shouldUnescape
tOptions={{ interpolation: { escapeValue: true } }}
@@ -376,7 +376,7 @@ function FlexibleGroupLicensingActions({
href="/user/subscription/group/add-users"
onClick={() => sendMB('flex-add-users')}
>
{t('add_more_users')}
{t('add_more_licenses')}
</OLButton>
)}
</>