feat: Translate result
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
moanos [he/him] 2024-07-31 19:51:28 +02:00
parent 6897db4bbf
commit bc7f32b57d
4 changed files with 5 additions and 3 deletions

View File

@ -124,6 +124,7 @@
</div>
<div class="container output-element" id="resultsDiv">
<strong data-i18n-key="result">Ergebnis</strong>
</div>
</div>

View File

@ -20,5 +20,6 @@
"cage-measurements": "Käfigmaße",
"cage-complies-with-all-criteria": "Der Käfig erfüllt alle Kriterien!",
"cage-for-x-rats": "Käfig für {{ num_rats }} Ratten",
"change-language": "Sprache ändern"
"change-language": "Sprache ändern",
"result": "Ergebnis"
}

View File

@ -20,5 +20,6 @@
"cage-measurements": "Cage measurements",
"cage-complies-with-all-criteria": "This cage complies with all criteria!",
"cage-for-x-rats": "Cage for {{ num_rats }} rats",
"change-language": "Change language"
"change-language": "Change language",
"result": "Result"
}

View File

@ -281,7 +281,6 @@ function update() {
const validator = new Validator();
const failed_checks = validator.cageCheck(dimensions, ratSlider.value, fullFloorNum.value);
let resultsDiv = document.getElementById("resultsDiv");
resultsDiv.innerHTML = `<strong>Ergebnis</strong>`;
const result = getResultFromChecks(failed_checks);