Nutze informelles Deutsch, also "Du" statt "Sie".
This commit is contained in:
@@ -18,7 +18,7 @@ export function AdminBookings() {
|
||||
);
|
||||
|
||||
const getTreatmentName = (treatmentId: string) => {
|
||||
return treatments?.find(t => t.id === treatmentId)?.name || "Unknown Treatment";
|
||||
return treatments?.find(t => t.id === treatmentId)?.name || "Unbekannte Behandlung";
|
||||
};
|
||||
|
||||
const getStatusColor = (status: string) => {
|
||||
@@ -138,7 +138,7 @@ export function AdminBookings() {
|
||||
<td className="px-6 py-4 whitespace-nowrap">
|
||||
<div className="text-sm text-gray-900">{getTreatmentName(booking.treatmentId)}</div>
|
||||
{booking.notes && (
|
||||
<div className="text-sm text-gray-500">Notes: {booking.notes}</div>
|
||||
<div className="text-sm text-gray-500">Notizen: {booking.notes}</div>
|
||||
)}
|
||||
</td>
|
||||
<td className="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
|
||||
@@ -202,8 +202,8 @@ export function AdminBookings() {
|
||||
{!filteredBookings?.length && (
|
||||
<div className="text-center py-8 text-gray-500">
|
||||
{selectedDate
|
||||
? `No bookings found for ${new Date(selectedDate).toLocaleDateString()}`
|
||||
: "No bookings available."
|
||||
? `Keine Buchungen für ${new Date(selectedDate).toLocaleDateString()} gefunden`
|
||||
: "Keine Buchungen verfügbar."
|
||||
}
|
||||
</div>
|
||||
)}
|
||||
|
@@ -245,7 +245,7 @@ export function AdminTreatments() {
|
||||
</button>
|
||||
<button
|
||||
onClick={() => {
|
||||
if (confirm("Are you sure you want to delete this treatment?")) {
|
||||
if (confirm("Bist du sicher, dass du diese Behandlung löschen möchtest?")) {
|
||||
deleteTreatment(treatment.id);
|
||||
}
|
||||
}}
|
||||
@@ -261,7 +261,7 @@ export function AdminTreatments() {
|
||||
|
||||
{!treatments?.length && (
|
||||
<div className="text-center py-8 text-gray-500">
|
||||
No treatments available. Add your first treatment to get started.
|
||||
Keine Behandlungen verfügbar. Füge deine erste Behandlung hinzu, um zu starten.
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
@@ -64,7 +64,7 @@ export function BookingForm() {
|
||||
const handleSubmit = (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
if (!selectedTreatment || !customerName || !customerEmail || !customerPhone || !appointmentDate || !appointmentTime) {
|
||||
alert("Bitte füllen Sie alle erforderlichen Felder aus");
|
||||
alert("Bitte fülle alle erforderlichen Felder aus");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ export function BookingForm() {
|
||||
setAppointmentDate("");
|
||||
setAppointmentTime("");
|
||||
setNotes("");
|
||||
alert("Buchung erfolgreich erstellt! Wir werden Sie kontaktieren, um Ihren Termin zu bestätigen.");
|
||||
alert("Buchung erfolgreich erstellt! Wir werden dich kontaktieren, um deinen Termin zu bestätigen.");
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -95,7 +95,7 @@ export function BookingForm() {
|
||||
|
||||
return (
|
||||
<div className="max-w-2xl mx-auto bg-white rounded-lg shadow-lg p-6">
|
||||
<h2 className="text-2xl font-bold text-gray-900 mb-6">Buchen Sie Ihre Nagelbehandlung</h2>
|
||||
<h2 className="text-2xl font-bold text-gray-900 mb-6">Buche deine Nagelbehandlung</h2>
|
||||
|
||||
<form onSubmit={handleSubmit} className="space-y-6">
|
||||
{/* Treatment Selection */}
|
||||
@@ -109,7 +109,7 @@ export function BookingForm() {
|
||||
className="w-full p-3 border border-gray-300 rounded-md focus:ring-2 focus:ring-pink-500 focus:border-pink-500"
|
||||
required
|
||||
>
|
||||
<option value="">Wählen Sie eine Behandlung</option>
|
||||
<option value="">Wähle eine Behandlung</option>
|
||||
{treatments?.map((treatment) => (
|
||||
<option key={treatment.id} value={treatment.id}>
|
||||
{treatment.name} - ${(treatment.price / 100).toFixed(2)} ({treatment.duration} min)
|
||||
|
Reference in New Issue
Block a user