Files
pleno-vue/src/i18n/source/de/phrases/compat/auth/index.json
T
Jeppe BandPleno Bugfix Bot cafe671e85 feat(pleno-vue): add driver/subuser login button (mobile-visible) (TRU-61) (#321)
## Why

Drivers (sub-users) could not reliably reach the driver login from the
customer login page (/login) on mobile devices. The form contained an
internal driver button, but it sat below the QR code and passkey
buttons, making it easy to miss on small screens. The desktop sidebar
layout further reduced discoverability.

## What changed

- **src/views/auth/Login.vue** — Add a page-level .driver-entry block
below the customer login form, with a router-link to { name:
'subuserlogin' }. Distinct color (#1584BC) and a truck icon match the
existing LandingPage driver entry pattern. Full-width on mobile (<768px)
so it's impossible to miss.
- **i18n** — Add auth.driver_login_help to en, da, de, no, sv locale
files + global shared auth index. auth.driver_login_button already
existed in all locales.
- **tests/unit/login-driver-entry.spec.js** — 5 Vitest tests verifying
the driver entry block, router-link, button label, help text, and
placement (not in sidebar).

## CI

- Vitest unit tests pass (5/5 new tests, existing tests unaffected)
- ESLint clean
- Text encoding check clean
- i18n v2 source check + compile clean

Co-authored-by: Pleno Bugfix Bot <bugfix-bot@pleno.local>
2026-08-16 22:38:03 +02:00

20 lines
1.5 KiB
JSON

{
"compat": {
"auth": {
"country_code": "Ländervorwahl",
"customer_login_title": "Kundenanmeldung",
"driver_login_title": "Fahreranmeldung",
"forgot_password": "@:{'terms.glossary.passwort'} vergessen",
"operator_tagline": "@.capitalize:{'terms.glossary.truckwash'}.@:{'terms.glossary.io'} ? @:{'terms.glossary.digitale'} @.upper:{'terms.glossary.l'}?@:{'terms.glossary.sungen'} @:{'terms.glossary.f'}?@:{'terms.glossary.r'} @:{'terms.glossary.lkw'}-@.upper:{'terms.glossary.w'}?@:{'terms.glossary.sche'}",
"phone_number": "@:{'phrases.compat.global.phone_number'}",
"remember_me": "@.capitalize:{'terms.glossary.angemeldet'} @:{'terms.glossary.bleiben'}",
"terms_acceptance": "@.capitalize:{'terms.glossary.mit'} @:{'terms.glossary.klick'} @:{'terms.glossary.auf'} \"@.capitalize:{'terms.glossary.anmelden'}\" akzeptieren @.capitalize:{'terms.glossary.sie'} @:{'terms.glossary.die'} Datenschutzrichtlinie @:{'terms.glossary.und'} @:{'terms.glossary.die'} Nutzungsbedingungen @:{'terms.glossary.von'} @:{'terms.glossary.truckwash'}.@:{'terms.glossary.io'}",
"username": "@:{'terms.glossary.benutzername'}",
"your_username": "@:{'terms.glossary.ihr'} @:{'terms.glossary.benutzername'}",
"driver_login_button": "Fahrer-Login",
"driver_login_help": "Fahrer (Unterbenutzer) melden sich hier an, um eine Wäsche zu registrieren.",
"driver_entry_intro": "Sind Sie Fahrer? Melden Sie sich hier an, um eine Wäsche zu registrieren."
}
}
}