fix: use singular 'Fahrzeug' when only 1 car available

This commit is contained in:
2026-05-31 14:07:02 +02:00
parent 2f90534877
commit 557528d85a
3 changed files with 6 additions and 1 deletions
+2
View File
@@ -124,6 +124,8 @@ async function loadVehicles() {
state.vehicles = data || [];
statCarsCount.textContent = state.vehicles.length;
statCarsLabel.dataset.i18n = state.vehicles.length === 1 ? 'statCar' : 'statCars';
applyI18n();
// Load vehicle photos
if (state.vehicles.length > 0) {