Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/oss/src/components/__tests__/seller-vat-status.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function Choice({ locale, initial = null }: { locale: string; initial?: boolean
describe("seller VAT choice", () => {
it.each([
["da-DK", "Er du momsregistreret?", "Jeg er momsregistreret", "Jeg er ikke momsregistreret", "Du fakturerer uden moms. Bliv momsregistreret, når du sælger for mere end 50.000 kr. på 12 måneder."],
["en-US", "Are you VAT-registered?", "I'm VAT-registered", "I'm not VAT-registered", "You invoice without moms. Register for VAT once you sell more than 50,000 kr. in 12 months."],
["en-US", "Are you VAT-registered?", "I'm VAT-registered", "I'm not VAT-registered", "You invoice without VAT. Register for VAT once you sell more than 50,000 kr. in 12 months."],
])("starts unselected and uses the approved %s copy", (locale, question, yes, no, hint) => {
render(<Choice locale={locale} />)
expect(screen.getByRole("group", { name: question })).toBeTruthy()
Expand Down Expand Up @@ -42,7 +42,7 @@ describe("seller VAT choice", () => {
const radios = screen.getAllByRole("radio") as HTMLInputElement[]
expect(radios[0]!.checked).toBe(initial)
expect(radios[1]!.checked).toBe(!initial)
expect(screen.queryByText("You invoice without moms. Register for VAT once you sell more than 50,000 kr. in 12 months.") !== null).toBe(initial === false)
expect(screen.queryByText("You invoice without VAT. Register for VAT once you sell more than 50,000 kr. in 12 months.") !== null).toBe(initial === false)
})
it("hides the hint when an explicit nonregistered choice is withdrawn", () => {
const onChange = () => {}
Expand Down
13 changes: 13 additions & 0 deletions apps/oss/src/lib/i18n/__tests__/english-vat-copy.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { describe, expect, it } from "vitest"
import { enMessages } from "../messages"

/** English copy says VAT. "momsloven" stays only where a statute is cited by its Danish name. */
const CITATION = /\(momsloven\)/g

describe("English VAT copy (QUI-286)", () => {
it("never uses the Danish word moms", () => {
for (const [key, value] of Object.entries(enMessages)) {
expect(String(value).replace(CITATION, ""), key).not.toMatch(/moms/i)
}
})
})
6 changes: 3 additions & 3 deletions apps/oss/src/lib/i18n/catalog/en/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export const enDashboardMessages = {
"dashboard.morning.drafts.more": "{names} +{more}",
"dashboard.morning.drafts.action": "Review drafts",
"dashboard.morning.drafts.empty": "No drafts ready to send",
"dashboard.morning.vat.title.one": "Moms for {period} is due in 1 day",
"dashboard.morning.vat.title.other": "Moms for {period} is due in {count} days",
"dashboard.morning.vat.today": "Moms for {period} is due today",
"dashboard.morning.vat.title.one": "VAT return for {period} is due in 1 day",
"dashboard.morning.vat.title.other": "VAT return for {period} is due in {count} days",
"dashboard.morning.vat.today": "VAT return for {period} is due today",
"dashboard.morning.vat.detail": "Deadline {date}",
"dashboard.commandBar.placeholder": "Search, ask quits, or type a task …",

Expand Down
2 changes: 1 addition & 1 deletion apps/oss/src/lib/i18n/catalog/en/seller-vat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const enSellerVatMessages = {
"vatStatus.label": "Are you VAT-registered?",
"vatStatus.yes": "I'm VAT-registered",
"vatStatus.no": "I'm not VAT-registered",
"vatStatus.noHint": "You invoice without moms. Register for VAT once you sell more than 50,000 kr. in 12 months.",
"vatStatus.noHint": "You invoice without VAT. Register for VAT once you sell more than 50,000 kr. in 12 months.",
"sellerCard.body": "Before you can send an invoice, it needs your CVR number, and you need to confirm whether you're VAT-registered.",
"onboardingV2.lookupLabel": "Company name or CVR",
"sellerSetup.lookup": "Find company",
Expand Down
6 changes: 3 additions & 3 deletions apps/oss/src/lib/i18n/catalog/en/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ export const enSettingsMessages = {
"settings.section.ai.title": "AI Invoice Drafting",
"settings.section.ai.description":
"Choose how AI invoice drafts are generated and configure the connection.",
"settings.vatPeriod.title": "Moms period",
"settings.vatPeriod.help": "How often you report moms to Skat. Overblik uses it to count down to the next deadline.",
"settings.vatPeriod.title": "VAT return period",
"settings.vatPeriod.help": "How often you file your VAT return with Skat. Overblik uses it to count down to the next deadline.",
"settings.vatPeriod.option.none": "Not set",
"settings.vatPeriod.option.quarterly": "Quarterly",
"settings.vatPeriod.option.half_yearly": "Half-yearly",
"settings.vatPeriod.saved": "Moms period saved.",
"settings.vatPeriod.saved": "VAT return period saved.",
"settings.ai.drafts.label": "AI drafts",
"settings.ai.drafts.help": "Suggests fields from your description. Nothing is sent without your click.",
"settings.ai.drafts.saved.on": "AI drafts turned on.",
Expand Down
Loading