fix: default to singular Fahrzeug, plural only when >1
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ async function loadVehicles() {
|
||||
|
||||
state.vehicles = data || [];
|
||||
statCarsCount.textContent = state.vehicles.length;
|
||||
statCarsLabel.dataset.i18n = state.vehicles.length === 1 ? 'statCar' : 'statCars';
|
||||
statCarsLabel.dataset.i18n = state.vehicles.length > 1 ? 'statCars' : 'statCar';
|
||||
applyI18n();
|
||||
|
||||
// Load vehicle photos
|
||||
|
||||
Reference in New Issue
Block a user