fix: use singular 'Fahrzeug' when only 1 car available
This commit is contained in:
@@ -123,6 +123,8 @@ async function loadVehicles() {
|
||||
|
||||
state.vehicles = data || [];
|
||||
statCarsCount.textContent = state.vehicles.length;
|
||||
statCarsLabel.dataset.i18n = state.vehicles.length === 1 ? 'statCar' : 'statCars';
|
||||
applyI18n();
|
||||
|
||||
const brands = [...new Set(state.vehicles.map(v => v.brand))].sort();
|
||||
brandFilter.innerHTML = `<option value="all">${t("all")}</option>` +
|
||||
|
||||
Reference in New Issue
Block a user