Merge pull request #23599 from overleaf/ii-flexible-group-licensing-vat

[web] Change "Sales tax" to "VAT"

GitOrigin-RevId: 549c6cea7bcb52d08d3b0967cf5fa446da901379
This commit is contained in:
Liangjun Song
2025-02-13 12:49:47 +00:00
committed by Copybot
parent 8e18162491
commit be33d0dd67
5 changed files with 3 additions and 8 deletions

View File

@@ -1365,7 +1365,6 @@
"revoke_invite": "",
"right": "",
"role": "",
"sales_tax": "",
"saml_auth_error": "",
"saml_identity_exists_error": "",
"saml_invalid_signature_error": "",

View File

@@ -92,7 +92,7 @@ function CostSummary({ subscriptionChange, totalLicenses }: CostSummaryProps) {
data-testid="tax"
>
<span className="me-auto">
{t('sales_tax')} &middot;{' '}
{t('vat')} &middot;{' '}
{Math.round(
subscriptionChange.nextInvoice.tax.rate * 100 * factor
) / factor}

View File

@@ -59,7 +59,7 @@ function UpgradeSummary({ subscriptionChange }: UpgradeSummaryProps) {
</ListGroup.Item>
)}
<ListGroup.Item className="bg-transparent border-0 px-0 gap-3 card-description-secondary">
<span className="me-auto">{t('sales_tax')}</span>
<span className="me-auto">{t('vat')}</span>
<span data-testid="tax">
{formatCurrency(
subscriptionChange.immediateCharge.tax,

View File

@@ -1819,7 +1819,6 @@
"ro": "Romanian",
"role": "Role",
"ru": "Russian",
"sales_tax": "Sales tax",
"saml": "SAML",
"saml_auth_error": "Sorry, your identity provider responded with an error. Please contact your administrator for more information.",
"saml_authentication_required_error": "Other login methods have been disabled by your group administrator. Please use your group SSO login.",

View File

@@ -269,10 +269,7 @@ describe('<AddSeats />', function () {
cy.findByTestId('tax').within(() => {
cy.findByText(
new RegExp(
`sales tax · ${this.body.nextInvoice.tax.rate * 100}%`,
'i'
)
new RegExp(`VAT · ${this.body.nextInvoice.tax.rate * 100}%`, 'i')
)
cy.findByTestId('price').should(
'have.text',