Compare commits

..

4 Commits

3 changed files with 6 additions and 1 deletions
+2
View File
@@ -124,6 +124,8 @@ async function loadVehicles() {
state.vehicles = data || []; state.vehicles = data || [];
statCarsCount.textContent = state.vehicles.length; statCarsCount.textContent = state.vehicles.length;
statCarsLabel.dataset.i18n = state.vehicles.length > 1 ? 'statCars' : 'statCar';
applyI18n();
// Load vehicle photos // Load vehicle photos
if (state.vehicles.length > 0) { if (state.vehicles.length > 0) {
+2
View File
@@ -12,6 +12,7 @@ export const translations = {
statDeposit: "Faire Kaution", statDeposit: "Faire Kaution",
statCars: "Fahrzeuge", statCars: "Fahrzeuge",
statCar: "Fahrzeug",
fleetTitle: "Handverlesen. Gepflegt. Startklar.", fleetTitle: "Handverlesen. Gepflegt. Startklar.",
fleetSub: "Filtern Sie nach Marke und Preis. Klicken Sie für Details oder buchen Sie direkt.", fleetSub: "Filtern Sie nach Marke und Preis. Klicken Sie für Details oder buchen Sie direkt.",
@@ -248,6 +249,7 @@ export const translations = {
statDeposit: "Fair Deposit", statDeposit: "Fair Deposit",
statCars: "Vehicles", statCars: "Vehicles",
statCar: "Vehicle",
fleetTitle: "Hand-picked. Maintained. Ready.", fleetTitle: "Hand-picked. Maintained. Ready.",
fleetSub: "Filter by brand or price. Click for details or book directly.", fleetSub: "Filter by brand or price. Click for details or book directly.",
+2 -1
View File
@@ -135,7 +135,8 @@
<div class="hero-stats"> <div class="hero-stats">
<div><strong data-i18n="statDeposit">Faire Kaution</strong><span>Fair Deposit</span></div> <div><strong data-i18n="statDeposit">Faire Kaution</strong><span>Fair Deposit</span></div>
<div><strong id="statCarsCount"></strong><span data-i18n="statCars">Fahrzeuge</span></div> <div><strong id="statCarsCount"></strong><span id="statCarsLabel" data-i18n="statCar">Fahrzeug</span></div>
<div><strong>24/7</strong><span data-i18n="statSupport">Support</span></div>
</div> </div>
</div> </div>
</section> </section>