Przeglądaj źródła

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

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

GitOrigin-RevId: 549c6cea7bcb52d08d3b0967cf5fa446da901379
Liangjun Song 1 rok temu
rodzic
commit
be33d0dd67

+ 0 - 1
services/web/frontend/extracted-translations.json

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

+ 1 - 1
services/web/frontend/js/features/group-management/components/add-seats/cost-summary.tsx

@@ -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}

+ 1 - 1
services/web/frontend/js/features/group-management/components/upgrade-subscription/upgrade-subscription-upgrade-summary.tsx

@@ -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,

+ 0 - 1
services/web/locales/en.json

@@ -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.",

+ 1 - 4
services/web/test/frontend/features/group-management/components/add-seats.spec.tsx

@@ -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',