fix: use singular 'Fahrzeug' when only 1 car available
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user