# Messages of the new UI: where the texts come from

All texts of `frontend-v3` live in two files: `frontend-v3/src/i18n/de.json` and `frontend-v3/src/i18n/en.json`, one top-level
section per feature. The rules are in `docs/frontend-v3-rules.md` (rule 7). This page keeps what a JSON file cannot say: where a
text comes from, and every place where it deliberately differs from the classic UI. Until 14 October 2026 the older sections were
separate `.ts` files; their header comments are kept here.

## Writing a message

- **Placeholders** are `{name}`. A literal `@` has to be written `{'@'}` (vue-i18n reads a bare `@` as a link to another message),
  and so does a literal `<`: `{'<'}`.
- **No HTML in values.** Where a sentence holds a link or bold text, use `<i18n-t keypath="…" scope="global">` with a slot, or
  build the sentence in the template from parts.
- **Plurals** use `|` and are called with a count: `t('home.stats.declines', n)`.
- **Outside a component** (rules, composables, the API layer) use `translate(key, named)` from `src/i18n/index.ts`, or take a
  translate function as an argument (`utils/participantForm.ts`). Never put a finished sentence into a pure rule module.
- The English text may only equal the German text for words that are the same in both languages; `i18nKeys.spec.ts` keeps a list.

## Sections and their sources

### `auth` (sign-in and account pages)
Most texts are word for word from the classic frontend (`frontend/src/locales/de.json` and `en.json`, as of 2 October 2026), so the
pages say the same as the classic UI. Deviations from classic:
- Typos fixed: "Password neu vergeben" became "Passwort neu vergeben"; "ABBRECHEN" became "Abbrechen".
- One message for wrong credentials instead of two (the API does not tell "account unknown" from "wrong password").
- Failed confirmation link: German text instead of the hard-coded English "Email verification failed".
- `termsLine`: the sentence with the links is built in the template from parts, not as an HTML string.
- Added: hints for "server not reachable" and "too many attempts".
- Added: a label for the eye button of the password field (in classic a symbol without text; added for screen readers).

### `membership`, `invoice`, `invoiceDetails`, `billing` (account page "My account")
Status, invoices and the printable invoice. Most texts are word for word from classic (`membership`, `invoice`, `invoiceDetails`,
2 October 2026). Deviations from classic:
- `title`: classic's `de.json` says "My account"; here "Mein Account", like the menu entry (`profileDropDown.membership`).
- `regInclude1`: the sentence ended with a comma; removed.
- `regInclude4` and `kulibriSupInclude4` held a hard-coded link to kulibri.com. Here they are `overviewBefore` and `overviewLink`; the
  address comes from `VITE_MARKETING_URL` (rule 6); without it the sentence is shown without a link.
- New: `menu`, `retry`, `loading`, `loadError`, `paymentInformationNoCard` (payment method without a card number), `trialEnds`
  (hard-coded English in classic), `invoice.notFound`, `invoice.print`, `cancel`, `close`, `ok`, `errExisting` (English only in
  classic), `errThrottled`, `errNetwork`, `errGeneric`.
- Dialogs: the classic texts contain HTML (`<br/>`, `<strong>`), which is not rendered here. They are split into plain parts
  (`upgradeSuccess`, `statusOf`, `thankYou`, `paymentFailedReason`, `feelFree`, `cancelStatusOf`, `renewPayment`). The upgrade
  success sentence in classic read "Du hast erfolgreich Deinen Account erfolgreich upgegraded" (one building block was inserted
  twice), and the failure "Du hast versucht zu Deinen Account erfolgreich upgegraded"; both were rewritten.
- Typos fixed: "automtisch", "setzten", "Are you sure want to"; the key `confirmCacnelMembership` is now `confirmCancel`.
- The address in the renew text is written `support{'@'}kulibri.com` (see "Writing a message").
- Billing details and company invoice (`billing.*`, `invoiceDetails.title` to `businessEmail`, `membership.billingHint`,
  `invoice.number`): new texts. The supplier data (address, managing director, register number, email) come from
  https://kulibri.com/en/imprint (3 October 2026). The number DE 253313357 is the VAT ID (confirmed by Mitko on 3 October 2026);
  classic wrongly called it "Steuer ID" (`businessTaxCode`). The imprint page names neither a register court nor a VAT ID; a
  register court is not needed for now.
- Not taken over: the trial period (button, dialog and texts).
- Redesign of the status tab (October 2026): the tabs are "Dein Status" and "Deine Rechnungen"; new keys from `levelStep` on. The
  consequences of cancelling (`loss*`) follow the code, not the old marketing text: Premium is only checked while editing, so
  designs that are already assigned stay and reminders that are already set keep running (`ProcessCanceledSubscriptions` only
  resets the role). "Landingpages" (`kulibriSupInclude3`) is not listed as a benefit because it is not verified in the code.

### `profile`, `menu` (My profile, user menu)
Texts of "Mein Profil" (personal data, change password) and of the user menu entries. They used to be hard-coded German in
`UserMenu`; the German texts were taken over unchanged, the English ones are new. The keys `errCurrentPassword`,
`errNewPassword` and `errPassword` are named exactly like the backend's messages (`profile.errCurrentPassword` …): the backend
sends them as a raw key and the page translates it directly. Do not rename them.

### `subAdmin`, `emailCode`, `participantSettings` (participation)
Texts of the sub-admin toggle (requirements 3n) and of the code step when an address already takes part (spec "Teilnehmer-Identität,
Zugriff und Gruppierung", 6 October 2026, section 3.3). The code message is the product owner's wording; it must not say whether
the address takes part.

### `premium` (Premium gates)
One notice for every locked feature, so a lock reads the same everywhere: what is locked (the `feature` text, a short noun phrase)
and where to go. The classic UI has a modal for this (`ModalPremiumFeatureDialog`: "Dies ist ein Premium Feature", with an upgrade
button); the new UI shows an inline notice with a link to the membership page instead, because it has no such dialog.

### `pollUi` (UI mode of a poll)
The dialog and the row in the editor; see `utils/pollUiMode.ts`.

### The rest
`detail`, `editor`, `home`, `newPoll`, `share`, `invitePanel`, `contactsTab`, `course`, `participant`, `commentComposer`, `wysiwyg`,
`common`, `close`, `copy`, `remove`, `tasks`, `notice`, `deleted`, `panel`, `poll`, `admin`, `dashboard`, `api`: the texts of the screens.
Where the classic UI has the same text, the wording is classic's; the English is new throughout.
