diff --git a/tax.html b/tax.html index 7b1d033..13866af 100644 --- a/tax.html +++ b/tax.html @@ -858,10 +858,14 @@ "tab.basic": "Setup", "tab.advanced": "Options", "tab.custom": "Cars", + "section.required": "📝 Required Information", + "section.vehicles": "🚗 Select Your Company Cars", + "section.calculated": "⚙️ Calculated Parameters (Adjustable)", + "section.advancedOptions": "Advanced Options", + "section.options": "Display Options", "section.personal": "Personal Information", "section.time": "Time Parameters", "section.growth": "Growth & Inflation Parameters", - "section.options": "Calculation Options", "section.company": "Company Contributions", "section.customVehicle": "Add Custom Vehicle", "section.presetVehicles": "Preset Vehicles", @@ -922,7 +926,29 @@ "results.title": "Monthly Pension Impact by Vehicle Type", "chart.title": "Year-by-Year Projection", "assumptions.title": "Calculation Assumptions", - "assumptions.details": "• Pension calculation: 60% (single) or 75% (married) of average career salary
• Employee RSZ contribution: 13.07% (7.5% for pension)
• CO2 coefficients for 2025: Diesel 67g/km, Petrol 82g/km
• Minimum BIK: €1,650/year
• Electric vehicles: 4% coefficient (minimum)
• Solidarity contribution factor 2025: 2.75x
• Calculations based on current regulations" + "assumptions.details": "• Pension calculation: 60% (single) or 75% (married) of average career salary
• Employee RSZ contribution: 13.07% (7.5% for pension)
• CO2 coefficients for 2025: Diesel 67g/km, Petrol 82g/km
• Minimum BIK: €1,650/year
• Electric vehicles: 4% coefficient (minimum)
• Solidarity contribution factor 2025: 2.75x
• Calculations based on current regulations", + "filter.year": "Year", + "filter.fuelType": "Fuel Type", + "filter.priceRange": "Price Range", + "filter.allYears": "All Years", + "filter.allFuelTypes": "All Fuel Types", + "filter.allPrices": "All Prices", + "filter.electric": "⚡ Electric", + "filter.hybrid": "🔋 Hybrid", + "filter.petrol": "⛽ Petrol", + "filter.diesel": "🛢️ Diesel", + "filter.under30k": "Under €30,000", + "filter.30k50k": "€30,000 - €50,000", + "filter.50k75k": "€50,000 - €75,000", + "filter.75k100k": "€75,000 - €100,000", + "filter.above100k": "Above €100,000", + "search.placeholder": "Type to search... (e.g., BMW X1, Mercedes C200, Audi Q5)", + "search.label": "Search Vehicle", + "manual.override": "Enter vehicle details manually", + "manual.vehicleName": "Vehicle Name", + "manual.listPrice": "List Price (€)", + "manual.co2Emissions": "CO2 Emissions (g/km)", + "manual.fuelType": "Fuel Type" }, fr: { title: "Calculateur d'Impôt sur les Voitures de Société", @@ -932,10 +958,14 @@ "tab.basic": "Config", "tab.advanced": "Options", "tab.custom": "Véhicules", + "section.required": "📝 Informations Obligatoires", + "section.vehicles": "🚗 Sélectionnez vos Voitures de Société", + "section.calculated": "⚙️ Paramètres Calculés (Ajustables)", + "section.advancedOptions": "Options Avancées", + "section.options": "Options d'Affichage", "section.personal": "Informations Personnelles", "section.time": "Paramètres Temporels", "section.growth": "Paramètres de Croissance et d'Inflation", - "section.options": "Options de Calcul", "section.company": "Contributions de l'Entreprise", "section.customVehicle": "Ajouter un Véhicule Personnalisé", "section.presetVehicles": "Véhicules Prédéfinis", @@ -996,7 +1026,29 @@ "results.title": "Impact Mensuel sur la Pension par Type de Véhicule", "chart.title": "Projection Année par Année", "assumptions.title": "Hypothèses de Calcul", - "assumptions.details": "• Calcul de pension : 60% (célibataire) ou 75% (marié) du salaire moyen de carrière
• Cotisation RSZ employé : 13,07% (7,5% pour pension)
• Coefficients CO2 pour 2025 : Diesel 67g/km, Essence 82g/km
• AEN minimum : €1,650/an
• Véhicules électriques : coefficient 4% (minimum)
• Facteur contribution solidarité 2025 : 2,75x
• Calculs basés sur la réglementation actuelle" + "assumptions.details": "• Calcul de pension : 60% (célibataire) ou 75% (marié) du salaire moyen de carrière
• Cotisation RSZ employé : 13,07% (7,5% pour pension)
• Coefficients CO2 pour 2025 : Diesel 67g/km, Essence 82g/km
• AEN minimum : €1,650/an
• Véhicules électriques : coefficient 4% (minimum)
• Facteur contribution solidarité 2025 : 2,75x
• Calculs basés sur la réglementation actuelle", + "filter.year": "Année", + "filter.fuelType": "Type de Carburant", + "filter.priceRange": "Gamme de Prix", + "filter.allYears": "Toutes les Années", + "filter.allFuelTypes": "Tous les Carburants", + "filter.allPrices": "Tous les Prix", + "filter.electric": "⚡ Électrique", + "filter.hybrid": "🔋 Hybride", + "filter.petrol": "⛽ Essence", + "filter.diesel": "🛢️ Diesel", + "filter.under30k": "Moins de €30,000", + "filter.30k50k": "€30,000 - €50,000", + "filter.50k75k": "€50,000 - €75,000", + "filter.75k100k": "€75,000 - €100,000", + "filter.above100k": "Plus de €100,000", + "search.placeholder": "Tapez pour rechercher... (ex: BMW X1, Mercedes C200, Audi Q5)", + "search.label": "Rechercher Véhicule", + "manual.override": "Saisir les détails du véhicule manuellement", + "manual.vehicleName": "Nom du Véhicule", + "manual.listPrice": "Prix Catalogue (€)", + "manual.co2Emissions": "Émissions CO2 (g/km)", + "manual.fuelType": "Type de Carburant" }, nl: { title: "Bedrijfswagen Belasting Calculator", @@ -1006,10 +1058,14 @@ "tab.basic": "Basis", "tab.advanced": "Opties", "tab.custom": "Auto's", + "section.required": "📝 Verplichte Informatie", + "section.vehicles": "🚗 Selecteer uw Bedrijfswagens", + "section.calculated": "⚙️ Berekende Parameters (Aanpasbaar)", + "section.advancedOptions": "Geavanceerde Opties", + "section.options": "Weergaveopties", "section.personal": "Persoonlijke Informatie", "section.time": "Tijd Parameters", "section.growth": "Groei & Inflatie Parameters", - "section.options": "Berekeningsopties", "section.company": "Bedrijfsbijdragen", "section.customVehicle": "Aangepast Voertuig Toevoegen", "section.presetVehicles": "Vooraf Ingestelde Voertuigen", @@ -1070,7 +1126,29 @@ "results.title": "Maandelijkse Pensioenimpact per Voertuigtype", "chart.title": "Jaar-op-Jaar Projectie", "assumptions.title": "Berekeningsveronderstellingen", - "assumptions.details": "• Pensioenberekening: 60% (alleenstaand) of 75% (getrouwd) van gemiddeld loopbaansalaris
• Werknemer RSZ bijdrage: 13,07% (7,5% voor pensioen)
• CO2 coëfficiënten voor 2025: Diesel 67g/km, Benzine 82g/km
• Minimum VAA: €1,650/jaar
• Elektrische voertuigen: 4% coëfficiënt (minimum)
• Solidariteitsbijdrage factor 2025: 2,75x
• Berekeningen gebaseerd op huidige regelgeving" + "assumptions.details": "• Pensioenberekening: 60% (alleenstaand) of 75% (getrouwd) van gemiddeld loopbaansalaris
• Werknemer RSZ bijdrage: 13,07% (7,5% voor pensioen)
• CO2 coëfficiënten voor 2025: Diesel 67g/km, Benzine 82g/km
• Minimum VAA: €1,650/jaar
• Elektrische voertuigen: 4% coëfficiënt (minimum)
• Solidariteitsbijdrage factor 2025: 2,75x
• Berekeningen gebaseerd op huidige regelgeving", + "filter.year": "Jaar", + "filter.fuelType": "Brandstoftype", + "filter.priceRange": "Prijsklasse", + "filter.allYears": "Alle Jaren", + "filter.allFuelTypes": "Alle Brandstoffen", + "filter.allPrices": "Alle Prijzen", + "filter.electric": "⚡ Elektrisch", + "filter.hybrid": "🔋 Hybride", + "filter.petrol": "⛽ Benzine", + "filter.diesel": "🛢️ Diesel", + "filter.under30k": "Onder €30,000", + "filter.30k50k": "€30,000 - €50,000", + "filter.50k75k": "€50,000 - €75,000", + "filter.75k100k": "€75,000 - €100,000", + "filter.above100k": "Boven €100,000", + "search.placeholder": "Type om te zoeken... (bijv. BMW X1, Mercedes C200, Audi Q5)", + "search.label": "Zoek Voertuig", + "manual.override": "Voertuigdetails handmatig invoeren", + "manual.vehicleName": "Voertuignaam", + "manual.listPrice": "Catalogusprijs (€)", + "manual.co2Emissions": "CO2 Uitstoot (g/km)", + "manual.fuelType": "Brandstoftype" } }; @@ -1144,8 +1222,10 @@ // Update language buttons document.querySelectorAll('.language-btn').forEach(btn => { btn.classList.remove('active'); + if (btn.textContent.toLowerCase() === lang) { + btn.classList.add('active'); + } }); - event.target.classList.add('active'); // Update all translatable elements document.querySelectorAll('[data-i18n]').forEach(element => { @@ -1194,6 +1274,11 @@ fuelOptions[3].textContent = translations[currentLanguage]['fuel.hybrid']; } } + + // Update vehicle search component if available + if (typeof vehicleAutocomplete !== 'undefined' && vehicleAutocomplete && vehicleAutocomplete.updateTranslations) { + vehicleAutocomplete.updateTranslations(); + } } // Auto-calculate years to work - will be set up in DOMContentLoaded @@ -1689,13 +1774,15 @@ // Initialize when DOM is ready document.addEventListener('DOMContentLoaded', function() { + // Initialize translation system first + switchLanguage('en'); + // Setup event listeners setupEventListeners(); // Initialize basic calculations updateYearsToWork(); updateRetirementYears(); - updateSelectOptions(); // Initialize vehicle search system immediately since it's now in the main interface vehicleAutocomplete = new VehicleSearchAutocomplete('vehicle-autocomplete-container', function(vehicleData) { diff --git a/vehicle-search.js b/vehicle-search.js index 4a881bf..fe89fd5 100644 --- a/vehicle-search.js +++ b/vehicle-search.js @@ -21,9 +21,9 @@ class VehicleSearchAutocomplete {
- + - - - - - + + + + +
- +
- + @@ -70,34 +71,34 @@ class VehicleSearchAutocomplete {