Skip to content

Use generic tax labels for combined tax totals - #1527

Open
pbennett1-godaddy wants to merge 2 commits into
mainfrom
fix/generic-tax-labels
Open

pbennett1-godaddy wants to merge 2 commits into
mainfrom
fix/generic-tax-labels

Conversation

@pbennett1-godaddy

Copy link
Copy Markdown
Contributor

Summary

The checkout's estimated taxes line (totals.estimatedTaxes) shows the combined tax total, but some localizations named a single tax. A merchant reported that Canadian checkouts showed "Estimated GST". GST is only the federal tax; most provinces add PST, QST, or charge HST instead, so the label understated what was included.

  • enAu: removed GST wording from estimatedTaxes, vatIncluded, payment.tax, TAX_CALCULATION_ERROR, and TAX_SERVICE_UNAVAILABLE. The labels now say "Estimated taxes", "Taxes included", and so on, which is still correct for Australia.
  • enUs: vatIncluded changes from "VAT included" to "Taxes included", since the US has no VAT.
  • frCa: vatIncluded changes from "TVA incluse" to "Taxes incluses", since TVA is the France term.
  • enCa (new): copies enUs, with province/territory, postal code, "catalogue", and a Canadian phone placeholder. Hosts that serve enAu for Canada should switch to enCa.
  • Updated the localizations README and the totals summary tests that matched "VAT included".

enIe ("Estimated VAT") is accurate for Ireland and is unchanged.

Testing

  • pnpm --filter @godaddy/localizations build and typecheck pass
  • pnpm --filter @godaddy/react typecheck passes; test passes (872/872)

🤖 Generated with Claude Code

The estimated taxes line shows the combined tax total, so naming a single
tax (GST, VAT, TVA) is inaccurate where several taxes apply, e.g. a Canadian
checkout served enAu showed "Estimated GST" for GST + PST/QST/HST.

- enAu: replace GST wording with generic tax wording
- enUs/frCa: "Taxes included" / "Taxes incluses" for included taxes
- Add enCa localization so Canadian checkouts don't borrow enAu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pbennett1-godaddy
pbennett1-godaddy requested a review from a team as a code owner November 2, 2026 15:01
@changeset-bot

changeset-bot Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 368e65a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@godaddy/localizations Patch
@godaddy/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sbolinger-godaddy sbolinger-godaddy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing major found, approving! Thanks for tidying these up. A few small items you may want to address, but none are blockers:

  • esUs.ts:175 still has vatIncluded: 'IVA incluido', the same US/VAT mismatch fixed in enUs. Maybe 'Impuestos incluidos'?
  • qaPs.ts:174 ('[VÂŢ îñçlüdëd]') no longer matches the new enUs wording.
  • Adding the enCa export is arguably a minor changeset rather than patch.
  • For the Canadian merchant, the full fix depends on the host switching from enAu to enCa, since nothing in this repo picks a locale by country. A follow-up there may be worth tracking.

What I checked:

  • Diffed enCa against enUs: only the region, postal code, phone and catalogue strings differ, with no US-only wording left over.
  • Grepped every locale's tax strings. The other single-tax labels (VAT, MwSt, IVA, GST for SG) look right for their countries.
  • Ran the localizations build and typecheck, the react typecheck, and checkout-totals-summary.test.tsx (17/17) locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants